r47997 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47996‎ | r47997 | r47998 >
Date:22:38, 3 March 2009
Author:river
Status:deferred
Tags:
Comment:
TSdjvulibre, TSjasper: new specs
Modified paths:
  • /trunk/tools/ts-specs/TSdjvulibre.spec (added) (history)
  • /trunk/tools/ts-specs/TSjasper.spec (added) (history)
  • /trunk/tools/ts-specs/base-specs/djvu.spec (added) (history)
  • /trunk/tools/ts-specs/base-specs/jasper.spec (added) (history)

Diff [purge]

Index: trunk/tools/ts-specs/TSjasper.spec
@@ -0,0 +1,85 @@
 2+%include Solaris.inc
 3+
 4+%include arch64.inc
 5+%use jasper64=jasper.spec
 6+%include base.inc
 7+%use jasper=jasper.spec
 8+
 9+Name: %{jasper.name}
 10+Summary: %{jasper.summary}
 11+Version: %{jasper.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+%jasper64.prep -d %name-%version/%_arch64
 29+
 30+mkdir %name-%version/%{base_arch}
 31+%jasper.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+%jasper64.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+%jasper.build -d %name-%version/%{base_arch}
 53+
 54+%install
 55+%jasper64.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+%jasper64.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, bin) %{_includedir}
 84+%{_includedir}/*
 85+%dir %attr (0755, root, bin) %{_libdir}/%_arch64
 86+%{_libdir}/%_arch64/lib*.so
Index: trunk/tools/ts-specs/TSdjvulibre.spec
@@ -0,0 +1,105 @@
 2+#
 3+# spec file for package TSdjvulibre
 4+
 5+%include Solaris.inc
 6+
 7+%include arch64.inc
 8+%use djvu64=djvu.spec
 9+%include base.inc
 10+%use djvu=djvu.spec
 11+
 12+Name: %{djvu.name}
 13+Summary: %{djvu.summary}
 14+Version: %{djvu.version}
 15+SUNW_BaseDir: %{_basedir}
 16+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 17+
 18+%include default-depend.inc
 19+
 20+%package devel
 21+Summary: %{summary} - development files
 22+SUNW_BaseDir: %{_basedir}
 23+%include default-depend.inc
 24+Requires: %name
 25+
 26+%prep
 27+rm -rf %name-%version
 28+mkdir %name-%version
 29+
 30+mkdir %name-%version/%_arch64
 31+%djvu64.prep -d %name-%version/%_arch64
 32+
 33+mkdir %name-%version/%{base_arch}
 34+%djvu.prep -d %name-%version/%{base_arch}
 35+
 36+%build
 37+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
 38+if test "x$CPUS" = "x" -o $CPUS = 0; then
 39+ CPUS=1
 40+fi
 41+
 42+export CC="cc"
 43+export CXX="CC"
 44+export PTHREAD_CFLAGS=-mt
 45+export PTHREAD_LIBS=-mt
 46+export CPPFLAGS="-I/usr/sfw/include"
 47+export MSGFMT="/usr/bin/msgfmt"
 48+
 49+%include arch64.inc
 50+export CFLAGS="%optflags -m64"
 51+export CXXFLAGS="%cxx_optflags -m64"
 52+export RPM_OPT_FLAGS="$CFLAGS"
 53+export LDFLAGS="-m64 -L/usr/sfw/lib/%_arch64 -R/usr/sfw/lib/%_arch64:%{_libdir}"
 54+%djvu64.build -d %name-%version/%_arch64
 55+%
 56+%include base.inc
 57+export LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib:%{_libdir}"
 58+export CFLAGS="%optflags -DANSICPP"
 59+export CXXFLAGS="%cxx_optflags"
 60+export RPM_OPT_FLAGS="$CFLAGS"
 61+%djvu.build -d %name-%version/%{base_arch}
 62+
 63+%install
 64+%djvu64.install -d %name-%version/%_arch64
 65+rm -f $RPM_BUILD_ROOT%{_libdir}/%_arch64/*.la
 66+
 67+%djvu64.install -d %name-%version/%{base_arch}
 68+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 69+rm -rf $RPM_BUILD_ROOT%{_bindir}/%_arch64
 70+
 71+%clean
 72+rm -rf $RPM_BUILD_ROOT
 73+
 74+%files
 75+%defattr (-, root, bin)
 76+%dir %attr (0755, root, bin) %{_bindir}
 77+%{_bindir}/*
 78+%dir %attr (0755, root, bin) %{_libdir}
 79+%{_libdir}/lib*.so.*
 80+%dir %attr(0755, root, sys) %{_datadir}
 81+%dir %attr(0755, root, sys) %{_datadir}/djvu
 82+%{_datadir}/djvu/*
 83+%dir %attr(0755, root, bin) %{_mandir}
 84+%{_mandir}/*
 85+
 86+%dir %attr (0755, root, bin) %{_libdir}/%_arch64
 87+%{_libdir}/%_arch64/lib*.so*
 88+
 89+%files devel
 90+%defattr (-, root, bin)
 91+%dir %attr (0755, root, bin) %{_libdir}
 92+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
 93+%{_libdir}/lib*.so
 94+%{_libdir}/pkgconfig/ddjvuapi.pc
 95+%dir %attr (0755, root, bin) %{_includedir}
 96+%{_includedir}/*
 97+%dir %attr(0755, root, sys) %{_datadir}
 98+
 99+%dir %attr (0755, root, bin) %{_libdir}/%_arch64
 100+%dir %attr (0755, root, other) %{_libdir}/%_arch64/pkgconfig
 101+%{_libdir}/%_arch64/pkgconfig/ddjvuapi.pc
 102+%{_libdir}/%_arch64/lib*.so
 103+
 104+%changelog
 105+* Sun Oct 5 2008 - river@wikimedia.org
 106+- initial spec
Index: trunk/tools/ts-specs/base-specs/djvu.spec
@@ -0,0 +1,30 @@
 2+Name: TSdjvulibre
 3+Summary: DjVu libraries and utilities
 4+Version: 3.5.21
 5+Source: http://garr.dl.sourceforge.net/sourceforge/djvu/djvulibre-%{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 djvulibre-%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+ %{?configure_options}
 24+
 25+gmake -j$CPUS all
 26+
 27+%install
 28+gmake DESTDIR=${RPM_BUILD_ROOT} install
 29+
 30+%clean
 31+rm -rf $RPM_BUILD_ROOT
Index: trunk/tools/ts-specs/base-specs/jasper.spec
@@ -0,0 +1,32 @@
 2+Name: TSjasper
 3+Summary: JPEG2000 implementation
 4+Version: 1.900.1
 5+Source: http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-%{version}.zip
 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 jasper-%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+ %{?configure_options}
 26+
 27+gmake -j$CPUS all
 28+
 29+%install
 30+gmake DESTDIR=${RPM_BUILD_ROOT} install
 31+
 32+%clean
 33+rm -rf $RPM_BUILD_ROOT

Status & tagging log