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: https://downloads.xiph.org/releases/ogg/%{realname}-%{version}.tar.xz
10 # Source0-md5: 3178c98341559657a15b185bf5d700a5
11 Patch0: %{realname}-ac_fixes.patch
12 URL: https://www.xiph.org/ogg/
13 BuildRequires: autoconf >= 2.50
14 BuildRequires: automake >= 1:1.11
15 BuildRequires: crossmingw32-gcc
16 BuildRequires: crossmingw32-w32api
17 BuildRequires: libtool >= 2:2
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
24 %define _enable_debug_packages 0
26 %define target i386-mingw32
27 %define target_platform %{target}
29 %define _sysprefix /usr
30 %define _prefix %{_sysprefix}/%{target}
31 %define _libdir %{_prefix}/lib
32 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
33 %define _dlldir /usr/share/wine/windows/system
34 %define __pkgconfig_provides %{nil}
35 %define __pkgconfig_requires %{nil}
36 %define __cc %{target}-gcc
37 %define __cxx %{target}-g++
40 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
43 # -z options are invalid for mingw linker, most of -f options are Linux-specific
44 %define filterout_ld -Wl,-z,.*
45 %define filterout_c -f[-a-z0-9=]*
48 Libogg is a library for manipulating Ogg bitstreams. It handles both
49 making Ogg bitstreams and getting packets from Ogg bitstreams.
51 This package contains the cross version for Win32.
53 %description -l pl.UTF-8
54 Libogg jest biblioteką do manipulacji strumieniami bitowymi Ogg.
55 Obsługuje ona zarówno tworzenie strumieni jak i uzyskiwanie pakietów
58 Ten pakiet zawiera wersję skrośną dla Win32.
61 Summary: Static libogg library (cross MinGW32 version)
62 Summary(pl.UTF-8): Statyczna biblioteka libogg (wersja skrośna MinGW32)
63 Group: Development/Libraries
64 Requires: %{name} = %{version}-%{release}
67 Static libogg library (cross MinGW32 version).
69 %description static -l pl.UTF-8
70 Statyczna biblioteka libogg (wersja skrośna MinGW32).
73 Summary: DLL libogg library for Windows
74 Summary(pl.UTF-8): Biblioteka DLL libogg dla Windows
75 Group: Applications/Emulators
79 DLL libogg library for Windows.
81 %description dll -l pl.UTF-8
82 Biblioteka DLL libogg dla Windows.
85 %setup -q -n %{realname}-%{version}
100 rm -rf $RPM_BUILD_ROOT
103 DESTDIR=$RPM_BUILD_ROOT
105 install -d $RPM_BUILD_ROOT%{_dlldir}
106 %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
109 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
110 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
113 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc}
116 rm -rf $RPM_BUILD_ROOT
119 %defattr(644,root,root,755)
120 %doc AUTHORS CHANGES COPYING README.md
121 %{_libdir}/libogg.dll.a
124 %{_pkgconfigdir}/ogg.pc
127 %defattr(644,root,root,755)
131 %defattr(644,root,root,755)
132 %{_dlldir}/libogg-*.dll