r48011 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48010‎ | r48011 | r48012 >
Date:05:06, 4 March 2009
Author:river
Status:deferred
Tags:
Comment:
TSautomake: BuildRequires TSautoconf
TSliblqr, TSglib: new specs
Modified paths:
  • /trunk/tools/ts-specs/TSautomake.spec (modified) (history)
  • /trunk/tools/ts-specs/TSglib.spec (added) (history)
  • /trunk/tools/ts-specs/TSliblqr.spec (added) (history)
  • /trunk/tools/ts-specs/TSpkgconfig.spec (modified) (history)
  • /trunk/tools/ts-specs/base-specs/glib.spec (added) (history)
  • /trunk/tools/ts-specs/base-specs/liblqr.spec (added) (history)
  • /trunk/tools/ts-specs/base-specs/pkgconfig.spec (added) (history)

Diff [purge]

Index: trunk/tools/ts-specs/TSliblqr.spec
@@ -0,0 +1,91 @@
 2+%include Solaris.inc
 3+
 4+%include arch64.inc
 5+%use liblqr64=liblqr.spec
 6+%include base.inc
 7+%use liblqr=liblqr.spec
 8+
 9+Name: %{liblqr.name}
 10+Summary: %{liblqr.summary}
 11+Version: %{liblqr.version}
 12+SUNW_BaseDir: %{_basedir}
 13+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 14+
 15+%include default-depend.inc
 16+
 17+%package devel
 18+Summary: %{summary} - development files
 19+SUNW_BaseDir: %{_basedir}
 20+%include default-depend.inc
 21+Requires: %name
 22+
 23+%prep
 24+rm -rf %name-%version
 25+mkdir %name-%version
 26+
 27+mkdir %name-%version/%_arch64
 28+%liblqr64.prep -d %name-%version/%_arch64
 29+
 30+mkdir %name-%version/%{base_arch}
 31+%liblqr.prep -d %name-%version/%{base_arch}
 32+
 33+%build
 34+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
 35+if test "x$CPUS" = "x" -o $CPUS = 0; then
 36+ CPUS=1
 37+fi
 38+
 39+export CC="cc"
 40+export CXX="CC"
 41+
 42+%include arch64.inc
 43+export CFLAGS="%optflags"
 44+export RPM_OPT_FLAGS="$CFLAGS"
 45+export LDFLAGS="%_ldflags -L/usr/sfw/lib/%_arch64 -R/usr/sfw/lib/%_arch64:%{_libdir}"
 46+%liblqr64.build -d %name-%version/%_arch64
 47+
 48+%include base.inc
 49+export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib:%{_libdir}"
 50+export CFLAGS="%optflags"
 51+export RPM_OPT_FLAGS="$CFLAGS"
 52+%liblqr.build -d %name-%version/%{base_arch}
 53+
 54+%install
 55+%liblqr64.install -d %name-%version/%_arch64
 56+rm -f $RPM_BUILD_ROOT%{_libdir}/%_arch64/*.la
 57+rm -f $RPM_BUILD_ROOT%{_libdir}/%_arch64/*.a
 58+
 59+%liblqr64.install -d %name-%version/%{base_arch}
 60+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 61+rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
 62+rm -rf $RPM_BUILD_ROOT%{_bindir}/%_arch64
 63+
 64+%clean
 65+rm -rf $RPM_BUILD_ROOT
 66+
 67+%files
 68+%defattr (-, root, bin)
 69+%dir %attr (0755, root, bin) %{_libdir}
 70+%{_libdir}/lib*.so.*
 71+%dir %attr (0755, root, bin) %{_libdir}/%_arch64
 72+%{_libdir}/%_arch64/lib*.so*
 73+
 74+%files devel
 75+%defattr (-, root, bin)
 76+%dir %attr(0755, root, sys) %{_datadir}
 77+%dir %attr(0755, root, sys) %{_mandir}
 78+%dir %attr(0755, root, bin) %{_mandir}/man3
 79+%{_mandir}/man3/*
 80+%defattr (-, root, bin)
 81+%dir %attr (0755, root, bin) %{_libdir}
 82+%{_libdir}/lib*.so
 83+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
 84+%{_libdir}/pkgconfig/*
 85+%dir %attr (0755, root, bin) %{_includedir}
 86+%dir %attr (0755, root, bin) %{_includedir}/lqr-1/lqr
 87+%{_includedir}/lqr-1/lqr/*
 88+%{_includedir}/lqr-1/lqr.h
 89+%dir %attr (0755, root, bin) %{_libdir}/%_arch64
 90+%{_libdir}/%_arch64/lib*.so
 91+%dir %attr (0755, root, other) %{_libdir}/%_arch64/pkgconfig
 92+%{_libdir}/%_arch64/pkgconfig/*
Index: trunk/tools/ts-specs/TSglib.spec
@@ -0,0 +1,113 @@
 2+%include Solaris.inc
 3+
 4+%include arch64.inc
 5+%use glib64=glib.spec
 6+%include base.inc
 7+%use glib=glib.spec
 8+
 9+Name: %{glib.name}
 10+Summary: %{glib.summary}
 11+Version: %{glib.version}
 12+SUNW_BaseDir: %{_basedir}
 13+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 14+
 15+%include default-depend.inc
 16+
 17+%package devel
 18+Summary: %{summary} - development files
 19+SUNW_BaseDir: %{_basedir}
 20+%include default-depend.inc
 21+Requires: %name
 22+
 23+%prep
 24+rm -rf %name-%version
 25+mkdir %name-%version
 26+
 27+mkdir %name-%version/%_arch64
 28+%glib64.prep -d %name-%version/%_arch64
 29+
 30+mkdir %name-%version/%{base_arch}
 31+%glib.prep -d %name-%version/%{base_arch}
 32+
 33+%build
 34+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
 35+if test "x$CPUS" = "x" -o $CPUS = 0; then
 36+ CPUS=1
 37+fi
 38+
 39+export CC="cc"
 40+export CXX="CC"
 41+
 42+%include arch64.inc
 43+export PATH=/opt/ts/bin/%_arch64:/opt/ts/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/bin
 44+export CFLAGS="%optflags"
 45+export RPM_OPT_FLAGS="$CFLAGS"
 46+export LDFLAGS="%_ldflags -L%{_libdir} -L/usr/sfw/lib/%_arch64 -R%{_libdir}:/usr/sfw/lib/%_arch64"
 47+export CPPFLAGS="-I%{_includedir}"
 48+%glib64.build -d %name-%version/%_arch64
 49+
 50+%include base.inc
 51+export PATH=/opt/ts/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/bin
 52+export LDFLAGS="%_ldflags -L%{_libdir} -L/usr/sfw/lib -R%{_libdir}:/usr/sfw/lib"
 53+export CFLAGS="%optflags"
 54+export CPPFLAGS="-I%{_includedir}"
 55+export RPM_OPT_FLAGS="$CFLAGS"
 56+%glib.build -d %name-%version/%{base_arch}
 57+
 58+%install
 59+%glib64.install -d %name-%version/%_arch64
 60+rm -f $RPM_BUILD_ROOT%{_libdir}/%_arch64/*.la
 61+rm -f $RPM_BUILD_ROOT%{_libdir}/%_arch64/*.a
 62+
 63+%glib.install -d %name-%version/%{base_arch}
 64+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 65+rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
 66+rm -rf $RPM_BUILD_ROOT%{_bindir}/%_arch64
 67+rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
 68+rm -f $RPM_BUILD_ROOT%{_libdir}/%_arch64/charset.alias
 69+
 70+%clean
 71+rm -rf $RPM_BUILD_ROOT
 72+
 73+%files
 74+%defattr (-, root, bin)
 75+%dir %attr (0755, root, bin) %{_bindir}
 76+%{_bindir}/*
 77+%dir %attr (0755, root, bin) %{_libdir}
 78+%{_libdir}/lib*.so.*
 79+%dir %attr (0755, root, bin) %{_libdir}/gio
 80+%dir %attr (0755, root, bin) %{_libdir}/gio/modules
 81+%dir %attr (0755, root, bin) %{_libdir}/%_arch64/gio
 82+%dir %attr (0755, root, bin) %{_libdir}/%_arch64/gio/modules
 83+%dir %attr (0755, root, bin) %{_libdir}/%_arch64
 84+%{_libdir}/%_arch64/lib*.so.*
 85+%dir %attr(0755, root, sys) %{_datadir}
 86+%dir %attr(0755, root, bin) %{_mandir}/man1
 87+%{_mandir}/man1/*
 88+%dir %attr(0755, root, other) %{_datadir}/locale
 89+%dir %attr(0755, root, other) %{_datadir}/locale/*
 90+%{_datadir}/locale/*/*
 91+%dir %attr(0755, root, other) %{_datadir}/glib-2.0
 92+%{_datadir}/glib-2.0/*
 93+
 94+%files devel
 95+%defattr (-, root, bin)
 96+%dir %attr (0755, root, bin) %{_libdir}
 97+%{_libdir}/lib*.so
 98+%dir %attr (0755, root, bin) %{_libdir}/glib-2.0
 99+%{_libdir}/glib-2.0/*
 100+%dir %attr (0755, root, bin) %{_libdir}/%_arch64/glib-2.0
 101+%{_libdir}/%_arch64/glib-2.0/*
 102+%dir %attr (0755, root, bin) %{_includedir}
 103+%{_includedir}/*
 104+%dir %attr (0755, root, bin) %{_libdir}/%_arch64
 105+%{_libdir}/%_arch64/lib*.so
 106+%dir %attr(0755, root, sys) %{_datadir}
 107+%dir %attr(0755, root, other) %{_datadir}/gtk-doc
 108+%{_datadir}/gtk-doc/*
 109+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
 110+%{_libdir}/pkgconfig/*
 111+%dir %attr (0755, root, other) %{_libdir}/%_arch64/pkgconfig
 112+%{_libdir}/%_arch64/pkgconfig/*
 113+%dir %attr(0755, root, other) %{_datadir}/aclocal
 114+%{_datadir}/aclocal/*
Index: trunk/tools/ts-specs/base-specs/liblqr.spec
@@ -0,0 +1,38 @@
 2+Name: TSliblqr
 3+Summary: Liquid Rescale Library
 4+Version: 0.3.0
 5+Source: http://liblqr.wikidot.com/local--files/en:download-page/liblqr-1-%{version}.tar.bz2
 6+SUNW_BaseDir: %{_basedir}
 7+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 8+
 9+%include default-depend.inc
 10+
 11+%prep
 12+rm -rf %name-%version
 13+%setup -q -n liblqr-1-%version
 14+
 15+%build
 16+PATH=/opt/ts/bin:$PATH
 17+export PATH
 18+
 19+aclocal
 20+automake
 21+autoconf
 22+
 23+./configure --prefix=%{_prefix} \
 24+ --bindir=%{_bindir} \
 25+ --includedir=%{_includedir} \
 26+ --mandir=%{_mandir} \
 27+ --libdir=%{_libdir} \
 28+ --disable-static \
 29+ --enable-shared \
 30+ --enable-install-man \
 31+ %{?configure_options}
 32+
 33+gmake -j$CPUS all
 34+
 35+%install
 36+gmake DESTDIR=${RPM_BUILD_ROOT} install
 37+
 38+%clean
 39+rm -rf $RPM_BUILD_ROOT
Index: trunk/tools/ts-specs/base-specs/pkgconfig.spec
@@ -0,0 +1,37 @@
 2+Name: TSpkgconfig
 3+Summary: pkgconfig
 4+Version: 0.23
 5+Source: http://pkgconfig.freedesktop.org/releases/pkg-config-%{version}.tar.gz
 6+SUNW_BaseDir: %{_basedir}
 7+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 8+%include default-depend.inc
 9+
 10+%prep
 11+%setup -q -n pkg-config-%version
 12+
 13+%build
 14+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
 15+if test "x$CPUS" = "x" -o $CPUS = 0; then
 16+ CPUS=1
 17+fi
 18+
 19+export CC="cc"
 20+export CXX="CC"
 21+export CFLAGS="%optflags"
 22+export RPM_OPT_FLAGS="$CFLAGS"
 23+export MSGFMT="/usr/bin/msgfmt"
 24+
 25+./configure --prefix=%{_prefix} \
 26+ --bindir=%{_bindir} \
 27+ --libexecdir=%{_libexecdir} \
 28+ --mandir=%{_mandir} \
 29+ --datadir=%{_datadir} \
 30+ --infodir=%{_datadir}/info
 31+
 32+gmake -j$CPUS
 33+
 34+%install
 35+gmake install DESTDIR=$RPM_BUILD_ROOT
 36+
 37+%clean
 38+rm -rf $RPM_BUILD_ROOT
Index: trunk/tools/ts-specs/base-specs/glib.spec
@@ -0,0 +1,37 @@
 2+Name: TSglib
 3+Summary: Glib utility library
 4+Version: 2.18.4
 5+Source: http://ftp.gnome.org/pub/gnome/sources/glib/2.18/glib-%{version}.tar.gz
 6+SUNW_BaseDir: %{_basedir}
 7+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 8+
 9+%include default-depend.inc
 10+
 11+%prep
 12+rm -rf %name-%version
 13+%setup -q -n glib-%version
 14+
 15+%build
 16+
 17+export PATH=/opt/ts/bin:$PATH
 18+./configure --prefix=%{_prefix} \
 19+ --bindir=%{_bindir} \
 20+ --includedir=%{_includedir} \
 21+ --mandir=%{_mandir} \
 22+ --libdir=%{_libdir} \
 23+ --disable-static \
 24+ --enable-shared \
 25+ --with-pcre=system \
 26+ --with-libiconv=gnu \
 27+ --disable-visibility \
 28+ --disable-gtk-doc \
 29+ %{?configure_options}
 30+
 31+/usr/sfw/bin/gmake -j$CPUS all
 32+
 33+%install
 34+export PATH=/opt/ts/bin:$PATH
 35+/usr/sfw/bin/gmake DESTDIR=${RPM_BUILD_ROOT} install
 36+
 37+%clean
 38+rm -rf $RPM_BUILD_ROOT
Index: trunk/tools/ts-specs/TSpkgconfig.spec
@@ -1,5 +1,10 @@
22 %include Solaris.inc
33
 4+%include arch64.inc
 5+%use pkgconfig64=pkgconfig.spec
 6+%include base.inc
 7+%use pkgconfig=pkgconfig.spec
 8+
49 Name: TSpkgconfig
510 Summary: pkgconfig
611 Version: 0.23
@@ -9,7 +14,14 @@
1015 %include default-depend.inc
1116
1217 %prep
13 -%setup -q -n pkg-config-%version
 18+rm -rf %name-%version
 19+mkdir %name-%version
 20+
 21+mkdir %name-%version/%_arch64
 22+%pkgconfig64.prep -d %name-%version/%_arch64
 23+
 24+mkdir %name-%version/%{base_arch}
 25+%pkgconfig.prep -d %name-%version/%{base_arch}
1426
1527 %build
1628 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
@@ -19,20 +31,24 @@
2032
2133 export CC="cc"
2234 export CXX="CC"
 35+
 36+%include arch64.inc
2337 export CFLAGS="%optflags"
2438 export RPM_OPT_FLAGS="$CFLAGS"
25 -export MSGFMT="/usr/bin/msgfmt"
 39+export LDFLAGS="%_ldflags -L%{_libdir} -L/usr/sfw/lib/%_arch64 -R%{_libdir}:/usr/sfw/lib/%_arch64"
 40+export CPPFLAGS="-I%{_includedir}"
 41+%pkgconfig64.build -d %name-%version/%_arch64
 42+
 43+%include base.inc
 44+export LDFLAGS="%_ldflags -L%{_libdir} -L/usr/sfw/lib -R%{_libdir}:/usr/sfw/lib"
 45+export CFLAGS="%optflags"
 46+export CPPFLAGS="-I%{_includedir}"
 47+export RPM_OPT_FLAGS="$CFLAGS"
 48+%pkgconfig.build -d %name-%version/%{base_arch}
2649
27 -./configure --prefix=%{_prefix} \
28 - --libexecdir=%{_libexecdir} \
29 - --mandir=%{_mandir} \
30 - --datadir=%{_datadir} \
31 - --infodir=%{_datadir}/info
32 -
33 -gmake -j$CPUS
34 -
3550 %install
36 -gmake install DESTDIR=$RPM_BUILD_ROOT
 51+%pkgconfig64.install -d %name-%version/%_arch64
 52+%pkgconfig.install -d %name-%version/%{base_arch}
3753
3854 %clean
3955 rm -rf $RPM_BUILD_ROOT
@@ -40,7 +56,9 @@
4157 %files
4258 %defattr (-, root, bin)
4359 %dir %attr (0755, root, bin) %{_bindir}
44 -%{_bindir}/*
 60+%{_bindir}/pkg-config
 61+%dir %attr (0755, root, bin) %{_bindir}/%_arch64
 62+%{_bindir}/%_arch64/pkg-config
4563 %dir %attr(0755, root, sys) %{_datadir}
4664 %dir %attr(0755, root, other) %{_datadir}/aclocal
4765 %{_datadir}/aclocal/*
Index: trunk/tools/ts-specs/TSautomake.spec
@@ -17,6 +17,8 @@
1818 Requires: SUNWperl584core
1919 Requires: SUNWgm4
2020 Requires: SUNWpostrun
 21+Requires: TSautoconf
 22+BuildRequires: TSautoconf
2123
2224 %prep
2325 %setup -q -n automake-%{version}

Status & tagging log