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