r44183 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44182‎ | r44183 | r44184 >
Date:19:10, 3 December 2008
Author:river
Status:deferred
Tags:
Comment:
TSsdl: new spec
Modified paths:
  • /trunk/tools/ts-specs/TSsdl.spec (added) (history)
  • /trunk/tools/ts-specs/base-specs/sdl.spec (added) (history)

Diff [purge]

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

Status & tagging log