1 | %define svn_url http://svn.netlabs.org/repos/ports/libvorbis/trunk
|
---|
2 | %define svn_rev 1480
|
---|
3 |
|
---|
4 | Name: libvorbis
|
---|
5 | Version: 1.3.5
|
---|
6 | Release: 1%{?dist}
|
---|
7 | Summary: The Vorbis General Audio Compression Codec.
|
---|
8 |
|
---|
9 | Group: System Environment/Libraries
|
---|
10 | License: BSD
|
---|
11 | URL: http://www.xiph.org/
|
---|
12 | Vendor: Xiph.org Foundation <team@xiph.org>
|
---|
13 | #Source: http://downloads.xiph.org/releases/vorbis/%{name}-%{version}.tar.gz
|
---|
14 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
---|
16 |
|
---|
17 | # We're forced to use an epoch since both Red Hat and Ximian use it in their
|
---|
18 | # rc packages
|
---|
19 | #Epoch: 2
|
---|
20 | # Dirty trick to tell rpm that this package actually provides what the
|
---|
21 | # last rc and beta was offering
|
---|
22 | #Provides: %{name} = %{epoch}:1.0rc3-%{release}
|
---|
23 | #Provides: %{name} = %{epoch}:1.0beta4-%{release}
|
---|
24 |
|
---|
25 | Requires: libogg >= 1.1
|
---|
26 | BuildRequires: libogg-devel >= 1.1
|
---|
27 |
|
---|
28 | %description
|
---|
29 | Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free,
|
---|
30 | general-purpose compressed audio format for audio and music at fixed
|
---|
31 | and variable bitrates from 16 to 128 kbps/channel.
|
---|
32 |
|
---|
33 | %package devel
|
---|
34 | Summary: Vorbis Library Development
|
---|
35 | Group: Development/Libraries
|
---|
36 | Requires: libogg-devel >= 1.1
|
---|
37 | Requires: libvorbis = %{version}
|
---|
38 | # Dirty trick to tell rpm that this package actually provides what the
|
---|
39 | # last rc and beta was offering
|
---|
40 | #Provides: %{name}-devel = %{epoch}:1.0rc3-%{release}
|
---|
41 | #Provides: %{name}-devel = %{epoch}:1.0beta4-%{release}
|
---|
42 |
|
---|
43 | %description devel
|
---|
44 | The libvorbis-devel package contains the header files, static libraries
|
---|
45 | and documentation needed to develop applications with libvorbis.
|
---|
46 |
|
---|
47 | %debug_package
|
---|
48 |
|
---|
49 | %prep
|
---|
50 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
|
---|
51 | %setup -q
|
---|
52 | %else
|
---|
53 | %setup -q -n "%{name}-%{version}" -Tc
|
---|
54 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
---|
55 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
---|
56 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
---|
57 | %endif
|
---|
58 |
|
---|
59 | #%patch0 -p1
|
---|
60 |
|
---|
61 | %build
|
---|
62 | export CFLAGS="-g -DBUILD_SDL" LDFLAGS="-g -Zhigh-mem"
|
---|
63 |
|
---|
64 | ./autogen.sh \
|
---|
65 | --prefix=%{_prefix} \
|
---|
66 | --enable-shared \
|
---|
67 | --disable-static
|
---|
68 |
|
---|
69 | %{__make} %{?_smp_mflags}
|
---|
70 |
|
---|
71 | %install
|
---|
72 | rm -rf $RPM_BUILD_ROOT
|
---|
73 | %{__make} install DESTDIR=%{buildroot}
|
---|
74 |
|
---|
75 | #mkdir -p %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}/doc/libogg
|
---|
76 | #install -m 644 doc/*.html doc/*.png doc/*.txt \
|
---|
77 | # %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}/
|
---|
78 | #install -m 644 -d doc/vorbisfile doc/vorbisenc \
|
---|
79 | # %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}/
|
---|
80 |
|
---|
81 | # create import libs
|
---|
82 | emximp -o %{buildroot}%{_libdir}/vorbis_dll.lib %{buildroot}%{_libdir}/vorbis0.dll
|
---|
83 | emximp -o %{buildroot}%{_libdir}/vorbis0_dll.lib %{buildroot}%{_libdir}/vorbis0.dll
|
---|
84 | emximp -o %{buildroot}%{_libdir}/vorbisenc_dll.lib %{buildroot}%{_libdir}/vorbise2.dll
|
---|
85 | emximp -o %{buildroot}%{_libdir}/vorbisenc2_dll.lib %{buildroot}%{_libdir}/vorbise2.dll
|
---|
86 | emximp -o %{buildroot}%{_libdir}/vorbisfile_dll.lib %{buildroot}%{_libdir}/vorbisf3.dll
|
---|
87 | emximp -o %{buildroot}%{_libdir}/vorbisfile3_dll.lib %{buildroot}%{_libdir}/vorbisf3.dll
|
---|
88 |
|
---|
89 | %clean
|
---|
90 | rm -rf $RPM_BUILD_ROOT
|
---|
91 |
|
---|
92 | #%post -p /sbin/ldconfig
|
---|
93 |
|
---|
94 | #%postun -p /sbin/ldconfig
|
---|
95 |
|
---|
96 | %files
|
---|
97 | %defattr(-,root,root)
|
---|
98 | %doc AUTHORS COPYING README
|
---|
99 | %{_libdir}/vorbis*.dll
|
---|
100 |
|
---|
101 | %files devel
|
---|
102 | %doc doc/*.html
|
---|
103 | %doc doc/*.png
|
---|
104 | %doc doc/*.txt
|
---|
105 | %doc doc/vorbisfile
|
---|
106 | %doc doc/vorbisenc
|
---|
107 | %{_datadir}/aclocal/vorbis.m4
|
---|
108 | %dir %{_includedir}/vorbis
|
---|
109 | %{_includedir}/vorbis/codec.h
|
---|
110 | %{_includedir}/vorbis/vorbisfile.h
|
---|
111 | %{_includedir}/vorbis/vorbisenc.h
|
---|
112 | %{_libdir}/vorbis*.a
|
---|
113 | %exclude %{_libdir}/libvorbis.la*
|
---|
114 | %{_libdir}/vorbis*.lib
|
---|
115 | %{_libdir}/vorbisfile*.a
|
---|
116 | %exclude %{_libdir}/libvorbisfile.la*
|
---|
117 | %{_libdir}/vorbisfile*.lib
|
---|
118 | %{_libdir}/vorbisenc*.a
|
---|
119 | %exclude %{_libdir}/libvorbisenc.la*
|
---|
120 | %{_libdir}/vorbisenc*.lib
|
---|
121 | %{_libdir}/pkgconfig/vorbis.pc
|
---|
122 | %{_libdir}/pkgconfig/vorbisfile.pc
|
---|
123 | %{_libdir}/pkgconfig/vorbisenc.pc
|
---|
124 |
|
---|
125 | %changelog
|
---|
126 | * Tue Mar 15 2016 Valery V.Sedletski <_valerius@mail.ru> - 1.3.5-1
|
---|
127 | - Initial OS/2 packaging
|
---|