]> git.pld-linux.org Git - packages/crossmingw32-libvorbis.git/blame - crossmingw32-libvorbis.spec
- updated to 1.3.1
[packages/crossmingw32-libvorbis.git] / crossmingw32-libvorbis.spec
CommitLineData
fefa06f9 1%define realname libvorbis
2Summary: The Vorbis General Audio Compression Codec - Mingw32 cross version
46df40d7 3Summary(pl.UTF-8): Kodek kompresji audio - Vorbis - wersja skrośna dla Mingw32
fefa06f9 4Name: crossmingw32-%{realname}
40f03a91 5Version: 1.3.1
fefa06f9 6Release: 1
7License: BSD
8Group: Libraries
33cdbcdc 9Source0: http://downloads.xiph.org/releases/vorbis/%{realname}-%{version}.tar.bz2
40f03a91 10# Source0-md5: 90b1eb86e6d57694ffdfc2e4d8c7a64e
fefa06f9 11Patch0: %{realname}-ac_fixes.patch
12Patch1: %{realname}-make.patch
13URL: http://www.vorbis.com/
40f03a91
JB
14BuildRequires: crossmingw32-gcc >= 3.0
15BuildRequires: crossmingw32-libogg >= 1.0
fefa06f9 16BuildRequires: crossmingw32-w32api
b6359ee7 17BuildRequires: pkgconfig >= 1:0.15
40f03a91 18Requires: crossmingw32-libogg >= 1.0
fefa06f9 19Requires: crossmingw32-runtime
20BuildRoot: %{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
43Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free,
44general-purpose compressed audio format for audio and music at fixed
45and variable bitrates from 16 to 128 kbps/channel.
46
33cdbcdc
JB
47This package contains the cross version for Win32.
48
17e12ff9
JR
49%description -l pl.UTF-8
50Ogg Vorbis jest całkowicie otwartym, nie będącym niczyją własnością,
51wolnym od patentów, ogólnego przeznaczenia kodekiem audio i muzyki o
52stałej i zmiennej bitrate od 16 do 128 kbps/kanał.
fefa06f9 53
33cdbcdc
JB
54Ten pakiet zawiera wersję skrośną dla Win32.
55
56%package static
57Summary: Static libvorbis library (cross mingw32 version)
58Summary(pl.UTF-8): Statyczna biblioteka libvorbis (wersja skrośna mingw32)
59Group: Development/Libraries
60Requires: %{name} = %{version}-%{release}
61
62%description static
63Static libvorbis library (cross mingw32 version).
64
65%description static -l pl.UTF-8
66Statyczna biblioteka libvorbis (wersja skrośna mingw32).
67
fefa06f9 68%package dll
33cdbcdc
JB
69Summary: DLL libvorbis library for Windows
70Summary(pl.UTF-8): Biblioteka DLL libvorbis dla Windows
fefa06f9 71Group: Applications/Emulators
40f03a91 72Requires: crossmingw32-libogg-dll >= 1.0
33cdbcdc 73Requires: wine
fefa06f9 74
75%description dll
33cdbcdc 76DLL libvorbis library for Windows.
fefa06f9 77
17e12ff9 78%description dll -l pl.UTF-8
33cdbcdc 79Biblioteka DLL libvorbis dla Windows.
fefa06f9 80
81%prep
82%setup -q -n %{realname}-%{version}
83%patch0 -p1
84%patch1 -p1
85
86%build
b6359ee7 87export 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
101rm -rf $RPM_BUILD_ROOT
fefa06f9 102
33cdbcdc
JB
103%{__make} install \
104 DESTDIR=$RPM_BUILD_ROOT
fefa06f9 105
33cdbcdc
JB
106install -d $RPM_BUILD_ROOT%{_dlldir}
107mv -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
117rm -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
This page took 0.15493 seconds and 4 git commands to generate.