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.xz
10 # Source0-md5: 5c3a34309d8b98640827e5d0991a4015
11 Patch0: %{realname}-ac_fixes.patch
12 URL: http://www.xiph.org/ogg/
13 BuildRequires: autoconf
14 BuildRequires: automake >= 1:1.6
15 BuildRequires: crossmingw32-gcc
16 BuildRequires: crossmingw32-w32api
17 BuildRequires: libtool
18 BuildRequires: tar >= 1:1.22
20 Requires: crossmingw32-runtime
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define no_install_post_strip 1
25 %define target i386-mingw32
26 %define target_platform %{target}
28 %define _sysprefix /usr
29 %define _prefix %{_sysprefix}/%{target}
30 %define _libdir %{_prefix}/lib
31 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
32 %define _dlldir /usr/share/wine/windows/system
33 %define __cc %{target}-gcc
34 %define __cxx %{target}-g++
37 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
40 # -z options are invalid for mingw linker, most of -f options are Linux-specific
41 %define filterout_ld -Wl,-z,.*
42 %define filterout_c -f[-a-z0-9=]*
45 Libogg is a library for manipulating Ogg bitstreams. It handles both
46 making Ogg bitstreams and getting packets from Ogg bitstreams.
48 This package contains the cross version for Win32.
50 %description -l pl.UTF-8
51 Libogg jest biblioteką do manipulacji strumieniami bitowymi Ogg.
52 Obsługuje ona zarówno tworzenie strumieni jak i uzyskiwanie pakietów
55 Ten pakiet zawiera wersję skrośną dla Win32.
58 Summary: Static libogg library (cross MinGW32 version)
59 Summary(pl.UTF-8): Statyczna biblioteka libogg (wersja skrośna MinGW32)
60 Group: Development/Libraries
61 Requires: %{name} = %{version}-%{release}
64 Static libogg library (cross MinGW32 version).
66 %description static -l pl.UTF-8
67 Statyczna biblioteka libogg (wersja skrośna MinGW32).
70 Summary: DLL libogg library for Windows
71 Summary(pl.UTF-8): Biblioteka DLL libogg dla Windows
72 Group: Applications/Emulators
76 DLL libogg library for Windows.
78 %description dll -l pl.UTF-8
79 Biblioteka DLL libogg dla Windows.
82 %setup -q -n %{realname}-%{version}
97 rm -rf $RPM_BUILD_ROOT
100 DESTDIR=$RPM_BUILD_ROOT
102 install -d $RPM_BUILD_ROOT%{_dlldir}
103 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
106 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
107 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
110 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc}
113 rm -rf $RPM_BUILD_ROOT
116 %defattr(644,root,root,755)
117 %doc AUTHORS CHANGES COPYING README
118 %{_libdir}/libogg.dll.a
121 %{_pkgconfigdir}/ogg.pc
124 %defattr(644,root,root,755)
128 %defattr(644,root,root,755)
129 %{_dlldir}/libogg-*.dll