Index: trunk/tools/ts-specs/TSphp.spec |
— | — | @@ -12,6 +12,12 @@ |
13 | 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
14 | 14 | %include default-depend.inc |
15 | 15 | |
| 16 | +BuildRequires: TSpcre-devel |
| 17 | +BuildRequires: TScurl-devel |
| 18 | + |
| 19 | +Requires: TSpcre |
| 20 | +Requires: TScurl |
| 21 | + |
16 | 22 | %package root |
17 | 23 | Summary: %{summary} - / filesystem |
18 | 24 | SUNW_BaseDir: / |
Index: trunk/tools/ts-specs/TSlighttpd.spec |
— | — | @@ -0,0 +1,65 @@ |
| 2 | +# |
| 3 | +# Copyright (c) 2006 Sun Microsystems, Inc. |
| 4 | +# This file and all modifications and additions to the pristine |
| 5 | +# package are under the same license as the package itself. |
| 6 | + |
| 7 | +%include Solaris.inc |
| 8 | + |
| 9 | +Name: TSlighttpd |
| 10 | +Summary: lightweight HTTP server |
| 11 | +Version: 1.4.20 |
| 12 | +Source: http://www.lighttpd.net/download/lighttpd-%{version}.tar.gz |
| 13 | + |
| 14 | +SUNW_BaseDir: %{_basedir} |
| 15 | +BuildRoot: %{_tmppath}/%{name}-%{version}-build |
| 16 | +%include default-depend.inc |
| 17 | + |
| 18 | +%prep |
| 19 | +%setup -q -n lighttpd-%version |
| 20 | + |
| 21 | +%build |
| 22 | + |
| 23 | +CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
| 24 | +if test "x$CPUS" = "x" -o $CPUS = 0; then |
| 25 | + CPUS=1 |
| 26 | +fi |
| 27 | + |
| 28 | +export CC="cc" |
| 29 | +export CXX="CC" |
| 30 | +export CFLAGS="%optflags -I%{_includedir}" |
| 31 | +export LDFLAGS="%{_ldflags} -R/usr/sfw/lib:/opt/ts/lib -L%{_libdir}" |
| 32 | +export CPPFLAGS="-I/usr/sfw/include" |
| 33 | + |
| 34 | +./configure --prefix=%{_prefix} \ |
| 35 | + --mandir=%{_mandir} \ |
| 36 | + --sysconfdir=%{_sysconfdir} \ |
| 37 | + --with-openssl \ |
| 38 | + --with-pcre \ |
| 39 | + --with-zlib |
| 40 | + |
| 41 | +gmake -j$CPUS |
| 42 | + |
| 43 | +%install |
| 44 | +rm -rf $RPM_BUILD_ROOT |
| 45 | + |
| 46 | +gmake install DESTDIR=$RPM_BUILD_ROOT |
| 47 | + |
| 48 | +%clean |
| 49 | +rm -rf $RPM_BUILD_ROOT |
| 50 | + |
| 51 | +%files |
| 52 | +%defattr (-, root, bin) |
| 53 | +%dir %attr (0755, root, bin) %{_bindir} |
| 54 | +%{_bindir}/* |
| 55 | +%dir %attr (0755, root, bin) %{_sbindir} |
| 56 | +%{_sbindir}/* |
| 57 | +%dir %attr (0755, root, bin) %{_libdir} |
| 58 | +%{_libdir}/* |
| 59 | +%dir %attr (0755, root, sys) %{_datadir} |
| 60 | +%dir %attr (0755, root, bin) %{_mandir} |
| 61 | +%dir %attr (0755, root, bin) %{_mandir}/man1 |
| 62 | +%{_mandir}/man1/*.1 |
| 63 | + |
| 64 | +%changelog |
| 65 | +* Mon Sep 29 2008 - river@wikimedia.org |
| 66 | +- initial spec |
Index: trunk/tools/ts-specs/TSapc.spec |
— | — | @@ -10,6 +10,7 @@ |
11 | 11 | %include default-depend.inc |
12 | 12 | |
13 | 13 | BuildRequires: TSphp |
| 14 | +BuildRequires: TSautoconf |
14 | 15 | |
15 | 16 | %prep |
16 | 17 | %setup -q -n APC-%version |
Index: trunk/tools/ts-specs/TScurl.spec |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | |
11 | 11 | Name: TScurl |
12 | 12 | Summary: curl - Get a file from FTP or HTTP server. |
13 | | -Version: 7.18.2 |
| 13 | +Version: 7.19.0 |
14 | 14 | URL: http://curl.haxx.se/ |
15 | 15 | Source: http://curl.haxx.se/download/curl-%{version}.tar.bz2 |
16 | 16 | SUNW_BaseDir: %{_basedir} |