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: ca25d8da0ddfc8c6cbbf78d847a209fe
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
41 %define filterout_ld -Wl,-z,.*
44 Libogg is a library for manipulating Ogg bitstreams. It handles both
45 making Ogg bitstreams and getting packets from Ogg bitstreams.
47 This package contains the cross version for Win32.
49 %description -l pl.UTF-8
50 Libogg jest biblioteką do manipulacji strumieniami bitowymi Ogg.
51 Obsługuje ona zarówno tworzenie strumieni jak i uzyskiwanie pakietów
54 Ten pakiet zawiera wersję skrośną dla Win32.
57 Summary: Static libogg library (cross MinGW32 version)
58 Summary(pl.UTF-8): Statyczna biblioteka libogg (wersja skrośna MinGW32)
59 Group: Development/Libraries
60 Requires: %{name} = %{version}-%{release}
63 Static libogg library (cross MinGW32 version).
65 %description static -l pl.UTF-8
66 Statyczna biblioteka libogg (wersja skrośna MinGW32).
69 Summary: DLL libogg library for Windows
70 Summary(pl.UTF-8): Biblioteka DLL libogg dla Windows
71 Group: Applications/Emulators
75 DLL libogg library for Windows.
77 %description dll -l pl.UTF-8
78 Biblioteka DLL libogg dla Windows.
81 %setup -q -n %{realname}-%{version}
96 rm -rf $RPM_BUILD_ROOT
99 DESTDIR=$RPM_BUILD_ROOT
101 install -d $RPM_BUILD_ROOT%{_dlldir}
102 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
105 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
106 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
109 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc}
112 rm -rf $RPM_BUILD_ROOT
115 %defattr(644,root,root,755)
116 %doc AUTHORS CHANGES COPYING README
117 %{_libdir}/libogg.dll.a
120 %{_pkgconfigdir}/ogg.pc
123 %defattr(644,root,root,755)
127 %defattr(644,root,root,755)
128 %{_dlldir}/libogg-*.dll