1 %define realname libogg
2 Summary: Ogg Bitstream Library - MinGW32 cross version
3 Summary(pl.UTF-8): Biblioteka obsługi strumieni bitowych Ogg - wersja skrośna dla MinGW32
4 Name: crossmingw32-%{realname}
8 Group: Development/Libraries
9 Source0: http://downloads.xiph.org/releases/ogg/%{realname}-%{version}.tar.gz
10 # Source0-md5: c95b73759acfc30712beef6ce4e88efa
11 Patch0: %{realname}-ac_fixes.patch
12 URL: http://www.xiph.org/ogg/
13 BuildRequires: crossmingw32-gcc
14 BuildRequires: crossmingw32-w32api
15 Requires: crossmingw32-runtime
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define no_install_post_strip 1
20 %define target i386-mingw32
21 %define target_platform %{target}
23 %define _sysprefix /usr
24 %define _prefix %{_sysprefix}/%{target}
25 %define _libdir %{_prefix}/lib
26 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
27 %define _dlldir /usr/share/wine/windows/system
28 %define __cc %{target}-gcc
29 %define __cxx %{target}-g++
32 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
35 # -z options are invalid for mingw linker
36 %define filterout_ld -Wl,-z,.*
39 Libogg is a library for manipulating Ogg bitstreams. It handles both
40 making Ogg bitstreams and getting packets from Ogg bitstreams.
42 This package contains the cross version for Win32.
44 %description -l pl.UTF-8
45 Libogg jest biblioteką do manipulacji strumieniami bitowymi Ogg.
46 Obsługuje ona zarówno tworzenie strumieni jak i uzyskiwanie pakietów
49 Ten pakiet zawiera wersję skrośną dla Win32.
52 Summary: Static libogg library (cross MinGW32 version)
53 Summary(pl.UTF-8): Statyczna biblioteka libogg (wersja skrośna MinGW32)
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
58 Static libogg library (cross MinGW32 version).
60 %description static -l pl.UTF-8
61 Statyczna biblioteka libogg (wersja skrośna MinGW32).
64 Summary: DLL libogg library for Windows
65 Summary(pl.UTF-8): Biblioteka DLL libogg dla Windows
66 Group: Applications/Emulators
70 DLL libogg library for Windows.
72 %description dll -l pl.UTF-8
73 Biblioteka DLL libogg dla Windows.
76 %setup -q -n %{realname}-%{version}
87 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT%{_dlldir}
93 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
96 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
97 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
100 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc}
103 rm -rf $RPM_BUILD_ROOT
106 %defattr(644,root,root,755)
107 %doc AUTHORS CHANGES COPYING README
108 %{_libdir}/libogg.dll.a
111 %{_pkgconfigdir}/ogg.pc
114 %defattr(644,root,root,755)
118 %defattr(644,root,root,755)
119 %{_dlldir}/libogg-*.dll