r37837 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37836‎ | r37837 | r37838 >
Date:06:54, 19 July 2008
Author:river
Status:old
Tags:
Comment:
TSgd: graphics library
TSawffull: web stats program based on webalizer
Modified paths:
  • /trunk/tools/ts-specs/TSawffull.spec (added) (history)
  • /trunk/tools/ts-specs/TSgd.spec (added) (history)

Diff [purge]

Index: trunk/tools/ts-specs/TSgd.spec
@@ -0,0 +1,86 @@
 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: TSgd
 10+Summary: library for the dynamic creation of images by programmers
 11+Version: 2.0.35
 12+Source: http://www.libgd.org/releases/gd-%{version}.tar.bz2
 13+Url: http://www.libgd.org/
 14+SUNW_BaseDir: %{_basedir}
 15+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 16+
 17+%include default-depend.inc
 18+
 19+Requires: SUNWfontconfig
 20+Requires: SUNWpng
 21+Requires: SUNWjpg
 22+Requires: SUNWxwplt
 23+
 24+%package devel
 25+Summary: %{summary} - development files
 26+SUNW_BaseDir: %{_basedir}
 27+%include default-depend.inc
 28+Requires: %name
 29+
 30+%prep
 31+%setup -q -n gd-%version
 32+
 33+%build
 34+
 35+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
 36+if test "x$CPUS" = "x" -o $CPUS = 0; then
 37+ CPUS=1
 38+fi
 39+
 40+export CC="cc"
 41+export CXX="CC"
 42+export CFLAGS="%optflags -I/opt/rt/include"
 43+export LDFLAGS="%{_ldflags} -L/opt/ts/lib -R/opt/ts/lib"
 44+
 45+./configure --prefix=%{_prefix} \
 46+ --mandir=%{_mandir} \
 47+ --enable-static=no
 48+
 49+gmake -j$CPUS
 50+
 51+%install
 52+rm -rf $RPM_BUILD_ROOT
 53+
 54+gmake install DESTDIR=$RPM_BUILD_ROOT
 55+
 56+rm ${RPM_BUILD_ROOT}%{_libdir}/libgd.la
 57+
 58+%clean
 59+rm -rf $RPM_BUILD_ROOT
 60+
 61+%files
 62+%defattr (-, root, bin)
 63+%dir %attr (0755, root, bin) %{_bindir}
 64+%{_bindir}/*
 65+%dir %attr (0755, root, bin) %{_libdir}
 66+%{_libdir}/*
 67+
 68+%files devel
 69+%defattr (-, root, bin)
 70+%dir %attr (0755, root, bin) %{_includedir}
 71+%{_includedir}/*
 72+
 73+
 74+%changelog
 75+* Sat Jul 19 2008 - river@wikimedia.org
 76+- modified for toolserver
 77+* Wed Oct 17 2007 - laca@sun.com
 78+- add /usr/gnu to CFLAGS/LDFLAGS
 79+* Sat Aug 18 2007 - trisk@acm.jhu.edu
 80+- Bump to 2.0.35
 81+* Tue Mar 22 2007 - Thomas Wagner
 82+- split into SFEgd SFEgd-devel
 83+* Tue Mar 20 2007 - Thomas Wagner
 84+- bump up version to 2.0.34
 85+- new Url / Source
 86+* Fri Sep 29 2006 - Eric Boutilier
 87+- Initial spec
Index: trunk/tools/ts-specs/TSawffull.spec
@@ -0,0 +1,61 @@
 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: TSawffull
 10+Summary: A Webalizer Fork
 11+Version: 3.8.2
 12+Source: http://www.stedee.id.au/files/awffull-%{version}.tar.gz
 13+
 14+SUNW_BaseDir: %{_basedir}
 15+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 16+%include default-depend.inc
 17+
 18+BuildRequires: TSgd-devel
 19+Requires: TSgd
 20+BuildRequires: TSpcre-devel
 21+Requires: TSpcre
 22+
 23+%prep
 24+%setup -q -n awffull-%version
 25+
 26+%build
 27+
 28+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
 29+if test "x$CPUS" = "x" -o $CPUS = 0; then
 30+ CPUS=1
 31+fi
 32+
 33+export CC="cc"
 34+export CXX="CC"
 35+export CPPFLAGS="-I/opt/ts/include"
 36+export CFLAGS="%optflags"
 37+export LDFLAGS="%{_ldflags} -L/opt/ts/lib -R/opt/ts/lib"
 38+
 39+./configure --prefix=%{_prefix} \
 40+ --sysconfdir=%{_sysconfdir} \
 41+ --mandir=%{_mandir}
 42+
 43+gmake -j$CPUS
 44+
 45+%install
 46+rm -rf $RPM_BUILD_ROOT
 47+
 48+make install DESTDIR=$RPM_BUILD_ROOT
 49+
 50+%clean
 51+rm -rf $RPM_BUILD_ROOT
 52+
 53+%files
 54+%defattr (-, root, bin)
 55+%dir %attr (0755, root, bin) %{_bindir}
 56+%{_bindir}/*
 57+%dir %attr (0755, root, sys) %{_datadir}
 58+%{_datadir}/man/man1/*
 59+
 60+%changelog
 61+* Sat Jul 19 2008 - river@wikimedia.org
 62+- initial spec

Status & tagging log