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