r41826 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41825‎ | r41826 | r41827 >
Date:01:57, 8 October 2008
Author:river
Status:old
Tags:
Comment:
TSlighttpd: new spec
TScurl: new version 7.19.0
TSapc, TSphp: fix build dependencies
Modified paths:
  • /trunk/tools/ts-specs/TSapc.spec (modified) (history)
  • /trunk/tools/ts-specs/TScurl.spec (modified) (history)
  • /trunk/tools/ts-specs/TSlighttpd.spec (added) (history)
  • /trunk/tools/ts-specs/TSphp.spec (modified) (history)

Diff [purge]

Index: trunk/tools/ts-specs/TSphp.spec
@@ -12,6 +12,12 @@
1313 BuildRoot: %{_tmppath}/%{name}-%{version}-build
1414 %include default-depend.inc
1515
 16+BuildRequires: TSpcre-devel
 17+BuildRequires: TScurl-devel
 18+
 19+Requires: TSpcre
 20+Requires: TScurl
 21+
1622 %package root
1723 Summary: %{summary} - / filesystem
1824 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 @@
1111 %include default-depend.inc
1212
1313 BuildRequires: TSphp
 14+BuildRequires: TSautoconf
1415
1516 %prep
1617 %setup -q -n APC-%version
Index: trunk/tools/ts-specs/TScurl.spec
@@ -9,7 +9,7 @@
1010
1111 Name: TScurl
1212 Summary: curl - Get a file from FTP or HTTP server.
13 -Version: 7.18.2
 13+Version: 7.19.0
1414 URL: http://curl.haxx.se/
1515 Source: http://curl.haxx.se/download/curl-%{version}.tar.bz2
1616 SUNW_BaseDir: %{_basedir}

Status & tagging log