r47999 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47998‎ | r47999 | r48000 >
Date:23:30, 3 March 2009
Author:river
Status:deferred
Tags:
Comment:
TSlcms: new spec
Tspkgconfig: new spec
TSpcre: glib requires --enable-unicode-properties
Modified paths:
  • /trunk/tools/ts-specs/TSlcms.spec (added) (history)
  • /trunk/tools/ts-specs/TSpkgconfig.spec (added) (history)
  • /trunk/tools/ts-specs/base-specs/lcms.spec (added) (history)
  • /trunk/tools/ts-specs/base-specs/pcre.spec (modified) (history)

Diff [purge]

Index: trunk/tools/ts-specs/TSlcms.spec
@@ -0,0 +1,89 @@
 2+%include Solaris.inc
 3+
 4+%include arch64.inc
 5+%use lcms64=lcms.spec
 6+%include base.inc
 7+%use lcms=lcms.spec
 8+
 9+Name: %{lcms.name}
 10+Summary: %{lcms.summary}
 11+Version: %{lcms.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+%lcms64.prep -d %name-%version/%_arch64
 29+
 30+mkdir %name-%version/%{base_arch}
 31+%lcms.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+%lcms64.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+%lcms.build -d %name-%version/%{base_arch}
 53+
 54+%install
 55+%lcms64.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+%lcms64.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) %{_bindir}
 70+%{_bindir}/*
 71+%dir %attr (0755, root, bin) %{_libdir}
 72+%{_libdir}/lib*.so.*
 73+%dir %attr(0755, root, sys) %{_datadir}
 74+%dir %attr(0755, root, bin) %{_mandir}/man1
 75+%{_mandir}/man1/*
 76+%dir %attr (0755, root, bin) %{_libdir}/%_arch64
 77+%{_libdir}/%_arch64/lib*.so*
 78+
 79+%files devel
 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+%{_includedir}/*
 87+%dir %attr (0755, root, bin) %{_libdir}/%_arch64
 88+%{_libdir}/%_arch64/lib*.so
 89+%dir %attr (0755, root, other) %{_libdir}/%_arch64/pkgconfig
 90+%{_libdir}/%_arch64/pkgconfig/*
Index: trunk/tools/ts-specs/base-specs/pcre.spec
@@ -10,7 +10,7 @@
1111 export CXXFLAGS="%cxx_optflags"
1212 export LDFLAGS="%_ldflags"
1313
14 -./configure --prefix=%{_prefix} --libdir=%{_libdir} --bindir=%{_bindir} --enable-utf8
 14+./configure --prefix=%{_prefix} --libdir=%{_libdir} --bindir=%{_bindir} --enable-utf8 --enable-unicode-properties
1515
1616 %build
1717 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
Index: trunk/tools/ts-specs/base-specs/lcms.spec
@@ -0,0 +1,33 @@
 2+Name: TSlcms
 3+Summary: Little CMS
 4+Version: 1.17
 5+Source: http://www.littlecms.com/lcms-%{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 lcms-%version
 14+
 15+%build
 16+
 17+./configure --prefix=%{_prefix} \
 18+ --bindir=%{_bindir} \
 19+ --includedir=%{_includedir} \
 20+ --mandir=%{_mandir} \
 21+ --libdir=%{_libdir} \
 22+ --enable-rpath \
 23+ --disable-static \
 24+ --enable-shared \
 25+ --without-python \
 26+ %{?configure_options}
 27+
 28+gmake -j$CPUS all
 29+
 30+%install
 31+gmake DESTDIR=${RPM_BUILD_ROOT} install
 32+
 33+%clean
 34+rm -rf $RPM_BUILD_ROOT
Index: trunk/tools/ts-specs/TSpkgconfig.spec
@@ -0,0 +1,50 @@
 2+%include Solaris.inc
 3+
 4+Name: TSpkgconfig
 5+Summary: pkgconfig
 6+Version: 0.23
 7+Source: http://pkgconfig.freedesktop.org/releases/pkg-config-%{version}.tar.gz
 8+SUNW_BaseDir: %{_basedir}
 9+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 10+%include default-depend.inc
 11+
 12+%prep
 13+%setup -q -n pkg-config-%version
 14+
 15+%build
 16+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
 17+if test "x$CPUS" = "x" -o $CPUS = 0; then
 18+ CPUS=1
 19+fi
 20+
 21+export CC="cc"
 22+export CXX="CC"
 23+export CFLAGS="%optflags"
 24+export RPM_OPT_FLAGS="$CFLAGS"
 25+export MSGFMT="/usr/bin/msgfmt"
 26+
 27+./configure --prefix=%{_prefix} \
 28+ --libexecdir=%{_libexecdir} \
 29+ --mandir=%{_mandir} \
 30+ --datadir=%{_datadir} \
 31+ --infodir=%{_datadir}/info
 32+
 33+gmake -j$CPUS
 34+
 35+%install
 36+gmake install DESTDIR=$RPM_BUILD_ROOT
 37+
 38+%clean
 39+rm -rf $RPM_BUILD_ROOT
 40+
 41+%files
 42+%defattr (-, root, bin)
 43+%dir %attr (0755, root, bin) %{_bindir}
 44+%{_bindir}/*
 45+%dir %attr(0755, root, sys) %{_datadir}
 46+%dir %attr(0755, root, other) %{_datadir}/aclocal
 47+%{_datadir}/aclocal/*
 48+%dir %attr(0755, root, bin) %{_mandir}
 49+%dir %attr(0755, root, bin) %{_mandir}/man1
 50+%{_mandir}/man1/*
 51+

Status & tagging log