]>
Commit | Line | Data |
---|---|---|
fefa06f9 | 1 | %define realname libvorbis |
e25b9593 JB |
2 | Summary: The Vorbis General Audio Compression Codec - MinGW32 cross version |
3 | Summary(pl.UTF-8): Kodek kompresji audio - Vorbis - wersja skrośna dla MinGW32 | |
fefa06f9 | 4 | Name: crossmingw32-%{realname} |
53845ee3 | 5 | Version: 1.3.2 |
fefa06f9 | 6 | Release: 1 |
7 | License: BSD | |
8 | Group: Libraries | |
53845ee3 JB |
9 | Source0: http://downloads.xiph.org/releases/vorbis/%{realname}-%{version}.tar.xz |
10 | # Source0-md5: 3067484a544115257beec616a696c5b3 | |
fefa06f9 | 11 | Patch0: %{realname}-ac_fixes.patch |
12 | Patch1: %{realname}-make.patch | |
13 | URL: http://www.vorbis.com/ | |
53845ee3 JB |
14 | BuildRequires: autoconf >= 2.50 |
15 | BuildRequires: automake >= 1:1.6 | |
40f03a91 JB |
16 | BuildRequires: crossmingw32-gcc >= 3.0 |
17 | BuildRequires: crossmingw32-libogg >= 1.0 | |
fefa06f9 | 18 | BuildRequires: crossmingw32-w32api |
53845ee3 | 19 | BuildRequires: libtool |
b6359ee7 | 20 | BuildRequires: pkgconfig >= 1:0.15 |
53845ee3 JB |
21 | BuildRequires: tar >= 1:1.22 |
22 | BuildRequires: xz | |
40f03a91 | 23 | Requires: crossmingw32-libogg >= 1.0 |
fefa06f9 | 24 | Requires: crossmingw32-runtime |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %define no_install_post_strip 1 | |
28 | ||
33cdbcdc JB |
29 | %define target i386-mingw32 |
30 | %define target_platform %{target} | |
fefa06f9 | 31 | |
33cdbcdc JB |
32 | %define _sysprefix /usr |
33 | %define _prefix %{_sysprefix}/%{target} | |
cada3af0 | 34 | %define _libdir %{_prefix}/lib |
33cdbcdc JB |
35 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
36 | %define _dlldir /usr/share/wine/windows/system | |
37 | %define __cc %{target}-gcc | |
38 | %define __cxx %{target}-g++ | |
fefa06f9 | 39 | |
40f03a91 JB |
40 | %ifnarch %{ix86} |
41 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
fefa06f9 | 42 | %define optflags -O2 |
43 | %endif | |
40f03a91 JB |
44 | # -z options are invalid for mingw linker |
45 | %define filterout_ld -Wl,-z,.* | |
fefa06f9 | 46 | |
47 | %description | |
48 | Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free, | |
49 | general-purpose compressed audio format for audio and music at fixed | |
50 | and variable bitrates from 16 to 128 kbps/channel. | |
51 | ||
33cdbcdc JB |
52 | This package contains the cross version for Win32. |
53 | ||
17e12ff9 JR |
54 | %description -l pl.UTF-8 |
55 | Ogg Vorbis jest całkowicie otwartym, nie będącym niczyją własnością, | |
56 | wolnym od patentów, ogólnego przeznaczenia kodekiem audio i muzyki o | |
57 | stałej i zmiennej bitrate od 16 do 128 kbps/kanał. | |
fefa06f9 | 58 | |
33cdbcdc JB |
59 | Ten pakiet zawiera wersję skrośną dla Win32. |
60 | ||
61 | %package static | |
e25b9593 JB |
62 | Summary: Static libvorbis library (cross MinGW32 version) |
63 | Summary(pl.UTF-8): Statyczna biblioteka libvorbis (wersja skrośna MinGW32) | |
33cdbcdc JB |
64 | Group: Development/Libraries |
65 | Requires: %{name} = %{version}-%{release} | |
66 | ||
67 | %description static | |
e25b9593 | 68 | Static libvorbis library (cross MinGW32 version). |
33cdbcdc JB |
69 | |
70 | %description static -l pl.UTF-8 | |
e25b9593 | 71 | Statyczna biblioteka libvorbis (wersja skrośna MinGW32). |
33cdbcdc | 72 | |
fefa06f9 | 73 | %package dll |
33cdbcdc JB |
74 | Summary: DLL libvorbis library for Windows |
75 | Summary(pl.UTF-8): Biblioteka DLL libvorbis dla Windows | |
fefa06f9 | 76 | Group: Applications/Emulators |
40f03a91 | 77 | Requires: crossmingw32-libogg-dll >= 1.0 |
33cdbcdc | 78 | Requires: wine |
fefa06f9 | 79 | |
80 | %description dll | |
33cdbcdc | 81 | DLL libvorbis library for Windows. |
fefa06f9 | 82 | |
17e12ff9 | 83 | %description dll -l pl.UTF-8 |
33cdbcdc | 84 | Biblioteka DLL libvorbis dla Windows. |
fefa06f9 | 85 | |
86 | %prep | |
87 | %setup -q -n %{realname}-%{version} | |
88 | %patch0 -p1 | |
89 | %patch1 -p1 | |
90 | ||
91 | %build | |
b6359ee7 | 92 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
33cdbcdc | 93 | %{__libtoolize} |
40f03a91 | 94 | %{__aclocal} -I m4 |
33cdbcdc JB |
95 | %{__autoconf} |
96 | %{__autoheader} | |
97 | %{__automake} | |
fefa06f9 | 98 | %configure \ |
33cdbcdc JB |
99 | OBJDUMP=%{target}-objdump \ |
100 | --host=%{target} \ | |
fefa06f9 | 101 | --target=%{target} |
102 | ||
33cdbcdc | 103 | %{__make} |
fefa06f9 | 104 | |
33cdbcdc JB |
105 | %install |
106 | rm -rf $RPM_BUILD_ROOT | |
fefa06f9 | 107 | |
33cdbcdc JB |
108 | %{__make} install \ |
109 | DESTDIR=$RPM_BUILD_ROOT | |
fefa06f9 | 110 | |
33cdbcdc JB |
111 | install -d $RPM_BUILD_ROOT%{_dlldir} |
112 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
fefa06f9 | 113 | |
114 | %if 0%{!?debug:1} | |
33cdbcdc JB |
115 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll |
116 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
fefa06f9 | 117 | %endif |
118 | ||
40f03a91 | 119 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc} |
fefa06f9 | 120 | |
121 | %clean | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %files | |
125 | %defattr(644,root,root,755) | |
33cdbcdc JB |
126 | %doc AUTHORS CHANGES COPYING README |
127 | %{_libdir}/libvorbis.dll.a | |
128 | %{_libdir}/libvorbisenc.dll.a | |
129 | %{_libdir}/libvorbisfile.dll.a | |
130 | %{_libdir}/libvorbis.la | |
131 | %{_libdir}/libvorbisenc.la | |
132 | %{_libdir}/libvorbisfile.la | |
133 | %{_includedir}/vorbis | |
134 | %{_pkgconfigdir}/vorbis.pc | |
135 | %{_pkgconfigdir}/vorbisenc.pc | |
136 | %{_pkgconfigdir}/vorbisfile.pc | |
137 | ||
138 | %files static | |
139 | %defattr(644,root,root,755) | |
140 | %{_libdir}/libvorbis.a | |
141 | %{_libdir}/libvorbisenc.a | |
142 | %{_libdir}/libvorbisfile.a | |
fefa06f9 | 143 | |
144 | %files dll | |
145 | %defattr(644,root,root,755) | |
33cdbcdc JB |
146 | %{_dlldir}/libvorbis-*.dll |
147 | %{_dlldir}/libvorbisenc-*.dll | |
148 | %{_dlldir}/libvorbisfile-*.dll |