Author: wolf Date: Sun May 28 15:18:40 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - new
---- Files affected: SPECS: crossmingw32-libogg.spec (NONE -> 1.1) (NEW), crossmingw32-libvorbis.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/crossmingw32-libogg.spec diff -u /dev/null SPECS/crossmingw32-libogg.spec:1.1 --- /dev/null Sun May 28 17:18:40 2006 +++ SPECS/crossmingw32-libogg.spec Sun May 28 17:18:33 2006 @@ -0,0 +1,131 @@ +# $Revision$, $Date$ +%define realname libogg +Summary: Ogg Bitstream Library - Mingw32 cross version +Summary(pl): Biblioteka obsługi strumieni bitowych Ogg - wersja skrośna dla Mingw32 +Name: crossmingw32-%{realname} +Version: 1.1.3 +Release: 1 +License: BSD +Group: Libraries +Source0: http://downloads.xiph.org/releases/ogg/%{realname}-%{version}.tar.gz +# Source0-md5: eaf7dc6ebbff30975de7527a80831585 +Patch0: %{realname}-ac_fixes.patch +URL: http://www.xiph.org/ogg/ +BuildRequires: crossmingw32-gcc +BuildRequires: crossmingw32-w32api +Requires: crossmingw32-runtime +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define no_install_post_strip 1 + +%define target i386-mingw32 +%define target_platform i386-pc-mingw32 +%define arch %{_prefix}/%{target} +%define gccarch %{_prefix}/lib/gcc-lib/%{target} +%define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version} + +%define __cc %{target}-gcc +%define __cxx %{target}-g++ + +%ifarch alpha sparc sparc64 sparcv9 +%define optflags -O2 +%endif + +%description +Libogg is a library for manipulating Ogg bitstreams. It handles both +making Ogg bitstreams and getting packets from Ogg bitstreams. + +%description -l pl +Libogg jest biblioteką do manipulacji strumieniami bitowymi Ogg. +Obsługuje ona zarówno tworzenie strumieni jak i uzyskiwanie pakietów +ze strumieni. + +%package dll +Summary: %{realname} - DLL library for Windows +Summary(pl): %{realname} - biblioteka DLL dla Windows +Group: Applications/Emulators + +%description dll +%{realname} - DLL library for Windows. + +%description dll -l pl +%{realname} - biblioteka DLL dla Windows. + +%prep +%setup -q -n %{realname}-%{version} +%patch0 -p1 + +%build +CC=%{target}-gcc ; export CC +CXX=%{target}-g++ ; export CXX +LD=%{target}-ld ; export LD +AR=%{target}-ar ; export AR +AS=%{target}-as ; export AS +CROSS_COMPILE=1 ; export CROSS_COMPILE +CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS +RANLIB=%{target}-ranlib ; export RANLIB +LDSHARED="%{target}-gcc -shared" ; export LDSHARED +TARGET="%{target}" ; export TARGET + +%configure \ + --host=%{_host} \ + --target=%{target} + +# autoshit badly wants -lc, which is unavailable, so let's make something +# simpler + +for i in bitwise.c framing.c +do + %{__cc} %{rpmcflags} -c src/$i -Iinclude +done + +rm -f libogg.a +$AR cru libogg.a *.o +$RANLIB libogg.a + +%{__cc} --shared *.o -Wl,--enable-auto-image-base -o ogg.dll -Wl,--out-implib,libogg.dll.a + +%if 0%{!?debug:1} +%{target}-strip *.dll +%{target}-strip -g -R.comment -R.note *.a +%endif + +sed -i -e '[EMAIL PROTECTED]/usr/[EMAIL PROTECTED]/lib@' \ + -e '[EMAIL PROTECTED]/usr/[EMAIL PROTECTED]/include@' \ + ogg.pc + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{arch}/{include/ogg,lib} +install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system +install -d $RPM_BUILD_ROOT%{_pkgconfigdir} + +install include/ogg/*.h $RPM_BUILD_ROOT%{arch}/include/ogg +install libogg.a $RPM_BUILD_ROOT%{arch}/lib +install libogg.dll.a $RPM_BUILD_ROOT%{arch}/lib +install ogg.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system + +install ogg.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/i386-mingw32-ogg.pc + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%{arch}/include/ogg +%{arch}/lib/* +%{_pkgconfigdir}/* + +%files dll +%defattr(644,root,root,755) +%{_datadir}/wine/windows/system/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2006/05/28 15:18:33 wolf +- new + ================================================================ Index: SPECS/crossmingw32-libvorbis.spec diff -u /dev/null SPECS/crossmingw32-libvorbis.spec:1.1 --- /dev/null Sun May 28 17:18:40 2006 +++ SPECS/crossmingw32-libvorbis.spec Sun May 28 17:18:33 2006 @@ -0,0 +1,152 @@ +# $Revision$, $Date$ +%define realname libvorbis +Summary: The Vorbis General Audio Compression Codec - Mingw32 cross version +Summary(pl): Kodek kompresji audio - Vorbis - wersja skrośna dla Mingw32 +Name: crossmingw32-%{realname} +Version: 1.1.2 +Release: 1 +License: BSD +Group: Libraries +Source0: http://downloads.xiph.org/releases/vorbis/%{realname}-%{version}.tar.gz +# Source0-md5: 37847626b8e1b53ae79a34714c7b3211 +Patch0: %{realname}-ac_fixes.patch +Patch1: %{realname}-make.patch +URL: http://www.vorbis.com/ +BuildRequires: crossmingw32-gcc +BuildRequires: crossmingw32-libogg +BuildRequires: crossmingw32-w32api +BuildRequires: pkgconfig +Requires: crossmingw32-libogg +Requires: crossmingw32-runtime +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define no_install_post_strip 1 + +%define target i386-mingw32 +%define target_platform i386-pc-mingw32 +%define arch %{_prefix}/%{target} +%define gccarch %{_prefix}/lib/gcc-lib/%{target} +%define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version} + +%define __cc %{target}-gcc +%define __cxx %{target}-g++ + +%ifarch alpha sparc sparc64 sparcv9 +%define optflags -O2 +%endif + +%description +Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free, +general-purpose compressed audio format for audio and music at fixed +and variable bitrates from 16 to 128 kbps/channel. + +%description -l pl +Ogg Vorbis jest całkowicie otwartym, nie będącym niczyją własnością, +wolnym od patentów, ogólnego przeznaczenia kodekiem audio i muzyki o +stałej i zmiennej bitrate od 16 do 128 kbps/kanał. + +%package dll +Summary: %{realname} - DLL library for Windows +Summary(pl): %{realname} - biblioteka DLL dla Windows +Group: Applications/Emulators + +%description dll +%{realname} - DLL library for Windows. + +%description dll -l pl +%{realname} - biblioteka DLL dla Windows. + +%prep +%setup -q -n %{realname}-%{version} +%patch0 -p1 +%patch1 -p1 + +%build +CC=%{target}-gcc ; export CC +CXX=%{target}-g++ ; export CXX +LD=%{target}-ld ; export LD +AR=%{target}-ar ; export AR +AS=%{target}-as ; export AS +CROSS_COMPILE=1 ; export CROSS_COMPILE +CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS +RANLIB=%{target}-ranlib ; export RANLIB +LDSHARED="%{target}-gcc -shared" ; export LDSHARED +TARGET="%{target}" ; export TARGET + +%configure \ + --host=%{_host} \ + --target=%{target} + +for i in mdct.c smallft.c block.c envelope.c window.c lsp.c lpc.c analysis.c synthesis.c psy.c info.c floor1.c floor0.c \ + res0.c mapping0.c registry.c codebook.c sharedbook.c lookup.c bitrate.c +do + %{__cc} %{rpmcflags} -c lib/$i -Iinclude +done + +rm -f libvorbis.a +$AR cru libvorbis.a *.o +$RANLIB libvorbis.a + +%{__cc} --shared *.o -Wl,--enable-auto-image-base -o vorbis.dll -Wl,--out-implib,libvorbis.dll.a `pkg-config --libs i386-mingw32-ogg` + + +%{__cc} %{rpmcflags} -c lib/vorbisenc.c -Iinclude -Ilib +%{__cc} %{rpmcflags} -c lib/vorbisfile.c -Iinclude + +rm -f libvorbisenc.a +$AR cru libvorbisenc.a vorbisenc.o +$RANLIB libvorbisenc.a + +%{__cc} --shared vorbisenc.o -Wl,--enable-auto-image-base -o vorbisenc.dll -Wl,--out-implib,libvorbisenc.dll.a -lvorbis -L. + +rm -f libvorbisfile.a +$AR cru libvorbisfile.a vorbisfile.o +$RANLIB libvorbisfile.a + +%{__cc} --shared vorbisfile.o -Wl,--enable-auto-image-base -o vorbisfile.dll -Wl,--out-implib,libvorbisfile.dll.a `pkg-config --libs i386-mingw32-ogg` -lvorbis -L. + +%if 0%{!?debug:1} +%{target}-strip *.dll +%{target}-strip -g -R.comment -R.note *.a +%endif + +sed -i -e '[EMAIL PROTECTED]/usr/[EMAIL PROTECTED]/lib@' \ + -e '[EMAIL PROTECTED]/usr/[EMAIL PROTECTED]/include@' \ + vorbis.pc vorbisenc.pc vorbisfile.pc + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{arch}/{include/vorbis,lib} +install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system +install -d $RPM_BUILD_ROOT%{_pkgconfigdir} + +install include/vorbis/*.h $RPM_BUILD_ROOT%{arch}/include/vorbis +install libvorbis*.a $RPM_BUILD_ROOT%{arch}/lib +install vorbis*.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system + +install vorbis.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/i386-mingw32-vorbis.pc +install vorbisenc.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/i386-mingw32-vorbisenc.pc +install vorbisfile.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/i386-mingw32-vorbisfile.pc + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%{arch}/include/vorbis +%{arch}/lib/* +%{_pkgconfigdir}/* + +%files dll +%defattr(644,root,root,755) +%{_datadir}/wine/windows/system/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2006/05/28 15:18:33 wolf +- new + ================================================================ _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit