r47592 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47591‎ | r47592 | r47593 >
Date:22:12, 20 February 2009
Author:river
Status:deferred
Tags:
Comment:
TSlibogg, TSlibvorbis: new specs
Modified paths:
  • /trunk/tools/ts-specs/TSlibogg.spec (added) (history)
  • /trunk/tools/ts-specs/TSlibvorbis.spec (added) (history)
  • /trunk/tools/ts-specs/base-specs/libogg.spec (added) (history)
  • /trunk/tools/ts-specs/base-specs/libvorbis.spec (added) (history)

Diff [purge]

Index: trunk/tools/ts-specs/TSlibogg.spec
@@ -0,0 +1,110 @@
 2+#
 3+# spec file for package TSlibogg
 4+#
 5+# includes module(s): libogg
 6+
 7+%include Solaris.inc
 8+
 9+Name: TSlibogg
 10+Summary: Xiph Ogg library
 11+Version: 1.1.3
 12+Source: http://downloads.xiph.org/releases/ogg/libogg-%{version}.tar.gz
 13+SUNW_BaseDir: %{_basedir}
 14+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 15+
 16+%include default-depend.inc
 17+
 18+%ifarch amd64 sparcv9
 19+%include arch64.inc
 20+%use libogg64=libogg.spec
 21+%endif
 22+%include base.inc
 23+%use libogg=libogg.spec
 24+
 25+%package devel
 26+Summary: %{summary} - development files
 27+SUNW_BaseDir: %{_basedir}
 28+%include default-depend.inc
 29+Requires: %name
 30+
 31+%prep
 32+rm -rf %name-%version
 33+mkdir %name-%version
 34+
 35+%ifarch amd64 sparcv9
 36+mkdir %name-%version/%_arch64
 37+%libogg64.prep -d %name-%version/%_arch64
 38+%endif
 39+
 40+mkdir %name-%version/%{base_arch}
 41+%libogg.prep -d %name-%version/%{base_arch}
 42+
 43+%build
 44+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
 45+if test "x$CPUS" = "x" -o $CPUS = 0; then
 46+ CPUS=1
 47+fi
 48+
 49+export CC="cc"
 50+export CXX="CC"
 51+export CPPFLAGS="-I/usr/sfw/include"
 52+export MSGFMT="/usr/bin/msgfmt"
 53+
 54+%ifarch amd64 sparcv9
 55+%include arch64.inc
 56+export CFLAGS="%optflags -m64 -I/usr/sfw/include -DANSICPP -L/usr/sfw/lib/%_arch64"
 57+export RPM_OPT_FLAGS="$CFLAGS"
 58+export LDFLAGS="-m64 -L/usr/sfw/lib/%_arch64 -R/usr/sfw/lib/%_arch64"
 59+%libogg64.build -d %name-%version/%_arch64
 60+%endif
 61+%include base.inc
 62+export LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib"
 63+export CFLAGS="%optflags -I/usr/sfw/include -DANSICPP -L/usr/sfw/lib"
 64+export RPM_OPT_FLAGS="$CFLAGS"
 65+%libogg.build -d %name-%version/%{base_arch}
 66+
 67+%install
 68+%ifarch amd64 sparcv9
 69+%libogg64.install -d %name-%version/%_arch64
 70+rm -f $RPM_BUILD_ROOT%{_libdir}/%_arch64/*.la
 71+rm -f $RPM_BUILD_ROOT%{_libdir}/%_arch64/*.a
 72+%endif
 73+
 74+%libogg.install -d %name-%version/%{base_arch}
 75+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 76+rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
 77+
 78+%clean
 79+rm -rf $RPM_BUILD_ROOT
 80+
 81+%files
 82+%defattr (-, root, bin)
 83+%dir %attr (0755, root, bin) %{_libdir}
 84+%{_libdir}/lib*.so*
 85+%dir %attr(0755, root, sys) %{_datadir}
 86+%ifarch amd64 sparcv9
 87+%dir %attr (0755, root, bin) %{_libdir}/%_arch64
 88+%{_libdir}/%_arch64/lib*.so*
 89+%endif
 90+
 91+%files devel
 92+%defattr (-, root, bin)
 93+%dir %attr (0755, root, bin) %{_includedir}
 94+%{_includedir}/*
 95+%dir %attr(0755, root, sys) %{_datadir}
 96+%dir %attr(0755, root, other) %{_datadir}/doc
 97+%dir %attr(0755, root, other) %{_datadir}/doc/libogg-%{version}
 98+%{_datadir}/doc/libogg-%{version}/*
 99+%dir %attr(0755, root, other) %{_datadir}/aclocal
 100+%{_datadir}/aclocal/*
 101+%dir %attr (0755, root, bin) %{_libdir}
 102+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
 103+%{_libdir}/pkgconfig/*
 104+%ifarch amd64 sparcv9
 105+%dir %attr (0755, root, other) %{_libdir}/%_arch64/pkgconfig
 106+%{_libdir}/%_arch64/pkgconfig/*
 107+%endif
 108+
 109+%changelog
 110+* Fri Feb 20 2009 - river@loreley.flyingparchment.org.uk
 111+- initial spec
Index: trunk/tools/ts-specs/base-specs/libvorbis.spec
@@ -0,0 +1,35 @@
 2+#
 3+# spec file for package TSlibvorbis
 4+#
 5+# includes module(s): libvorbis
 6+#
 7+Name: TSlibvorbis
 8+Summary: Xiph Vorbis library
 9+Version: 1.2.0
 10+Source: http://downloads.xiph.org/releases/vorbis/libvorbis-%{version}.tar.gz
 11+SUNW_BaseDir: %{_basedir}
 12+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 13+
 14+%include default-depend.inc
 15+
 16+%prep
 17+rm -rf %name-%version
 18+%setup -q -n libvorbis-%version
 19+
 20+%build
 21+
 22+./configure --prefix=%{_prefix} \
 23+ --bindir=%{_bindir} \
 24+ --includedir=%{_includedir} \
 25+ --mandir=%{_mandir} \
 26+ --libdir=%{_libdir} \
 27+ --enable-rpath \
 28+ %{?configure_options}
 29+
 30+dmake -j$CPUS all
 31+
 32+%install
 33+make DESTDIR=${RPM_BUILD_ROOT} install
 34+
 35+%clean
 36+rm -rf $RPM_BUILD_ROOT
Index: trunk/tools/ts-specs/base-specs/libogg.spec
@@ -0,0 +1,35 @@
 2+#
 3+# spec file for package TSlibogg
 4+#
 5+# includes module(s): libogg
 6+#
 7+Name: TSlibogg
 8+Summary: Xiph Ogg library
 9+Version: 1.1.3
 10+Source: http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
 11+SUNW_BaseDir: %{_basedir}
 12+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 13+
 14+%include default-depend.inc
 15+
 16+%prep
 17+rm -rf %name-%version
 18+%setup -q -n libogg-%version
 19+
 20+%build
 21+
 22+./configure --prefix=%{_prefix} \
 23+ --bindir=%{_bindir} \
 24+ --includedir=%{_includedir} \
 25+ --mandir=%{_mandir} \
 26+ --libdir=%{_libdir} \
 27+ --enable-rpath \
 28+ %{?configure_options}
 29+
 30+dmake -j$CPUS all
 31+
 32+%install
 33+make DESTDIR=${RPM_BUILD_ROOT} install
 34+
 35+%clean
 36+rm -rf $RPM_BUILD_ROOT
Index: trunk/tools/ts-specs/TSlibvorbis.spec
@@ -0,0 +1,110 @@
 2+#
 3+# spec file for package TSlibvorbis
 4+#
 5+# includes module(s): libvorbis
 6+
 7+%include Solaris.inc
 8+
 9+Name: TSlibvorbis
 10+Summary: Xiph Vorbis library
 11+Version: 1.2.0
 12+Source: http://downloads.xiph.org/releases/vorbis/libvorbis-%{version}.tar.gz
 13+SUNW_BaseDir: %{_basedir}
 14+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 15+
 16+%include default-depend.inc
 17+
 18+%ifarch amd64 sparcv9
 19+%include arch64.inc
 20+%use libvorbis64=libvorbis.spec
 21+%endif
 22+%include base.inc
 23+%use libvorbis=libvorbis.spec
 24+
 25+%package devel
 26+Summary: %{summary} - development files
 27+SUNW_BaseDir: %{_basedir}
 28+%include default-depend.inc
 29+Requires: %name
 30+
 31+%prep
 32+rm -rf %name-%version
 33+mkdir %name-%version
 34+
 35+%ifarch amd64 sparcv9
 36+mkdir %name-%version/%_arch64
 37+%libvorbis64.prep -d %name-%version/%_arch64
 38+%endif
 39+
 40+mkdir %name-%version/%{base_arch}
 41+%libvorbis.prep -d %name-%version/%{base_arch}
 42+
 43+%build
 44+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
 45+if test "x$CPUS" = "x" -o $CPUS = 0; then
 46+ CPUS=1
 47+fi
 48+
 49+export CC="cc"
 50+export CXX="CC"
 51+export CPPFLAGS="-I/usr/sfw/include"
 52+export MSGFMT="/usr/bin/msgfmt"
 53+
 54+%ifarch amd64 sparcv9
 55+%include arch64.inc
 56+export CFLAGS="%optflags -m64 -I/usr/sfw/include -DANSICPP -L/usr/sfw/lib/%_arch64 -I%{_includedir}"
 57+export RPM_OPT_FLAGS="$CFLAGS"
 58+export LDFLAGS="-m64 -L/usr/sfw/lib/%_arch64 -R/usr/sfw/lib/%_arch64 -L%{_libdir} -R%{_libdir}"
 59+%libvorbis64.build -d %name-%version/%_arch64
 60+%endif
 61+%include base.inc
 62+export LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib -L%{_libdir} -R%{_libdir}"
 63+export CFLAGS="%optflags -I/usr/sfw/include -DANSICPP -I%{_includedir}"
 64+export RPM_OPT_FLAGS="$CFLAGS"
 65+%libvorbis.build -d %name-%version/%{base_arch}
 66+
 67+%install
 68+%ifarch amd64 sparcv9
 69+%libvorbis64.install -d %name-%version/%_arch64
 70+rm -f $RPM_BUILD_ROOT%{_libdir}/%_arch64/*.la
 71+rm -f $RPM_BUILD_ROOT%{_libdir}/%_arch64/*.a
 72+%endif
 73+
 74+%libvorbis.install -d %name-%version/%{base_arch}
 75+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 76+rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
 77+
 78+%clean
 79+rm -rf $RPM_BUILD_ROOT
 80+
 81+%files
 82+%defattr (-, root, bin)
 83+%dir %attr (0755, root, bin) %{_libdir}
 84+%{_libdir}/lib*.so*
 85+%dir %attr(0755, root, sys) %{_datadir}
 86+%ifarch amd64 sparcv9
 87+%dir %attr (0755, root, bin) %{_libdir}/%_arch64
 88+%{_libdir}/%_arch64/lib*.so*
 89+%endif
 90+
 91+%files devel
 92+%defattr (-, root, bin)
 93+%dir %attr (0755, root, bin) %{_includedir}
 94+%{_includedir}/*
 95+%dir %attr(0755, root, sys) %{_datadir}
 96+%dir %attr(0755, root, other) %{_datadir}/doc
 97+%dir %attr(0755, root, other) %{_datadir}/doc/libvorbis-%{version}
 98+%{_datadir}/doc/libvorbis-%{version}/*
 99+%dir %attr(0755, root, other) %{_datadir}/aclocal
 100+%{_datadir}/aclocal/*
 101+%dir %attr (0755, root, bin) %{_libdir}
 102+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
 103+%{_libdir}/pkgconfig/*
 104+%ifarch amd64 sparcv9
 105+%dir %attr (0755, root, other) %{_libdir}/%_arch64/pkgconfig
 106+%{_libdir}/%_arch64/pkgconfig/*
 107+%endif
 108+
 109+%changelog
 110+* Fri Feb 20 2009 - river@loreley.flyingparchment.org.uk
 111+- initial spec

Status & tagging log