]>
Commit | Line | Data |
---|---|---|
d7237645 TP |
1 | # |
2 | # Conditional build: | |
4836da25 JB |
3 | %bcond_without apidocs # without doc |
4 | %bcond_without smb # SMB support | |
5 | # | |
6 | Summary: Multiformat media decoding library | |
7 | Summary(pl.UTF-8): Biblioteka dekodująca wiele formatów multimedialnych | |
d7237645 | 8 | Name: gmerlin-avdecoder |
0edf9fba JR |
9 | Version: 1.2.0 |
10 | Release: 1 | |
4836da25 | 11 | License: GPL v2+ |
d7237645 | 12 | Group: Libraries |
4836da25 | 13 | Source0: http://downloads.sourceforge.net/gmerlin/%{name}-%{version}.tar.gz |
0edf9fba | 14 | # Source0-md5: 37b19266b098d9d05bb05ebef138ffbd |
d7237645 | 15 | Patch0: %{name}-cflags.patch |
4836da25 JB |
16 | Patch1: %{name}-ffmpeg-0.8.patch |
17 | Patch2: %{name}-link.patch | |
d7237645 | 18 | URL: http://gmerlin.sourceforge.net/avdec_frame.html |
4836da25 | 19 | BuildRequires: a52dec-libs-devel >= 0.7.4 |
d7237645 | 20 | BuildRequires: autoconf >= 2.50 |
4836da25 | 21 | BuildRequires: automake >= 1:1.8.5 |
d7237645 | 22 | %{?with_apidocs:BuildRequires: doxygen} |
4836da25 JB |
23 | BuildRequires: faad2-devel >= 2.0 |
24 | BuildRequires: ffmpeg-devel >= 0.7 | |
25 | BuildRequires: flac-devel >= 1.1.0 | |
26 | BuildRequires: gavl-devel >= 1.2.0 | |
27 | BuildRequires: gettext-devel | |
0edf9fba | 28 | BuildRequires: gmerlin-devel >= 1.2.0 |
4836da25 JB |
29 | BuildRequires: libcdio-devel >= 0.76 |
30 | BuildRequires: libdts-devel >= 0.0.2 | |
a85010c5 | 31 | #BuildRequires: libdvdread-devel >= 0.9.5 |
4836da25 JB |
32 | BuildRequires: libmad-devel >= 0.15.0 |
33 | BuildRequires: libmpcdec-devel >= 1.1 | |
34 | BuildRequires: libmpeg2-devel >= 0.4.0 | |
35 | BuildRequires: libogg-devel >= 1.0 | |
36 | BuildRequires: libpng-devel >= 1.2.2 | |
fde7ee3e | 37 | %{?with_smb:BuildRequires: libsmbclient-devel >= 3.0.0} |
4836da25 JB |
38 | BuildRequires: libtheora-devel >= 1.0.0 |
39 | BuildRequires: libtiff-devel >= 3.5.0 | |
d7237645 | 40 | BuildRequires: libtool |
a85010c5 | 41 | BuildRequires: libvdpau-devel |
4836da25 JB |
42 | BuildRequires: libvorbis-devel >= 1.0 |
43 | BuildRequires: mjpegtools-devel >= 1.9.0 | |
44 | BuildRequires: openjpeg-devel >= 1.3 | |
45 | BuildRequires: pkgconfig >= 1:0.9.0 | |
4836da25 JB |
46 | BuildRequires: schroedinger-devel >= 1.0.5 |
47 | BuildRequires: speex-devel >= 1.0.4 | |
48 | BuildRequires: xorg-lib-libX11-devel >= 1.0.0 | |
49 | BuildRequires: xorg-lib-libXext-devel | |
d7237645 | 50 | BuildRequires: zlib-devel |
cf34670a | 51 | Requires: a52dec-libs >= 0.7.4 |
fde7ee3e JB |
52 | Requires: faad2-libs >= 2.0 |
53 | Requires: ffmpeg-libs >= 0.7 | |
54 | Requires: flac >= 1.1.0 | |
4836da25 | 55 | Requires: gavl >= 1.2.0 |
fde7ee3e JB |
56 | Requires: libcdio >= 0.76 |
57 | Requires: libdts >= 0.0.2 | |
58 | #Requires: libdvdread >= 0.9.5 | |
59 | Requires: libmad >= 0.15.0 | |
60 | Requires: libmpcdec >= 1.1 | |
61 | Requires: libmpeg2 >= 0.4.0 | |
62 | Requires: libogg >= 1.0 | |
63 | Requires: libpng >= 1.2.2 | |
64 | %{?with_smb:Requires: libsmbclient >= 3.0.0} | |
65 | Requires: libtheora >= 1.0.0 | |
66 | Requires: libtiff >= 3.5.0 | |
67 | Requires: libvorbis >= 1.0 | |
68 | Requires: mjpegtools-libs >= 1.9.0 | |
69 | Requires: openjpeg >= 1.3 | |
70 | Requires: schroedinger >= 1.0.5 | |
71 | Requires: speex >= 1.0.4 | |
d7237645 TP |
72 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
73 | ||
74 | %define specflags -fomit-frame-pointer -ffast-math | |
75 | ||
76 | %description | |
77 | General purpose media decoding library. It is one of the most complete | |
78 | general purpose media decoding libraries. The supported formats and | |
79 | codecs span a wide range of applications from consumer level (mp3, | |
80 | divx etc.) to high end production formats like 32 bit PCM and some | |
81 | professional uncompressed video codecs. | |
4836da25 JB |
82 | |
83 | %description -l pl.UTF-8 | |
84 | Ogólnego przeznaczenia biblioteka dekodująca multimedia. Jest to jedna | |
85 | z najbardziej kompletnych bibliotek tego typu. Obsługiwane formaty | |
86 | obejmują wiele zastosowań od poziomu konsumenckiego (mp3, divx itp.) | |
87 | do formatów wysokiej jakości produkcji, jak 32-bitowy PCM i różne | |
88 | profesjonalne kodeki obrazu bez kompresji. | |
d7237645 TP |
89 | |
90 | %package devel | |
4836da25 JB |
91 | Summary: Header files for gmerlin_avdec library |
92 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gmerlin_avdec | |
d7237645 TP |
93 | Group: Development/Libraries |
94 | Requires: %{name} = %{version}-%{release} | |
fde7ee3e JB |
95 | Requires: a52dec-libs-devel >= 0.7.4 |
96 | Requires: faad2-devel >= 2.0 | |
97 | Requires: ffmpeg-devel >= 0.7 | |
98 | Requires: flac-devel >= 1.1.0 | |
99 | Requires: gavl-devel >= 1.2.0 | |
100 | Requires: libcdio-devel >= 0.76 | |
101 | Requires: libdts-devel >= 0.0.2 | |
102 | #Requires: libdvdread-devel >= 0.9.5 | |
103 | Requires: libmad-devel >= 0.15.0 | |
104 | Requires: libmpcdec-devel >= 1.1 | |
105 | Requires: libmpeg2-devel >= 0.4.0 | |
106 | Requires: libogg-devel >= 1.0 | |
107 | Requires: libpng-devel >= 1.2.2 | |
108 | %{?with_smb:Requires: libsmbclient-devel >= 3.0.0} | |
109 | Requires: libtheora-devel >= 1.0.0 | |
110 | Requires: libtiff-devel >= 3.5.0 | |
111 | Requires: libvdpau-devel | |
112 | Requires: libvorbis-devel >= 1.0 | |
113 | Requires: mjpegtools-devel >= 1.9.0 | |
114 | Requires: openjpeg-devel >= 1.3 | |
115 | Requires: schroedinger-devel >= 1.0.5 | |
116 | Requires: speex-devel >= 1.0.4 | |
117 | Requires: xorg-lib-libX11-devel >= 1.0.0 | |
118 | Requires: xorg-lib-libXext-devel | |
119 | Requires: zlib-devel | |
d7237645 TP |
120 | |
121 | %description devel | |
4836da25 JB |
122 | Header files for gmerlin_avdec library. |
123 | ||
124 | %description devel -l pl.UTF-8 | |
125 | Pliki nagłówkowe biblioteki gmerlin_avdec. | |
d7237645 TP |
126 | |
127 | %package static | |
4836da25 JB |
128 | Summary: Static gmerlin_avdec library |
129 | Summary(pl.UTF-8): Statyczna biblioteka gmerlin_avdec | |
d7237645 TP |
130 | Group: Development/Libraries |
131 | Requires: %{name}-devel = %{version}-%{release} | |
132 | ||
133 | %description static | |
4836da25 JB |
134 | Static gmerlin_avdec library. |
135 | ||
136 | %description static -l pl.UTF-8 | |
137 | Statyczna biblioteka gmerlin_avdec. | |
d7237645 | 138 | |
fde7ee3e JB |
139 | %package -n gmerlin-plugin-avdec |
140 | Summary: avdec plugins for Gmerlin library | |
141 | Summary(pl.UTF-8): Wtyczki avdec dla biblioteki Gmerlin | |
142 | Group: Libraries | |
143 | Requires: %{name} = %{version}-%{release} | |
0edf9fba | 144 | Requires: gmerlin >= 1.2.0 |
fde7ee3e JB |
145 | |
146 | %description -n gmerlin-plugin-avdec | |
147 | avdec plugins for Gmerlin library. | |
148 | ||
149 | %description -n gmerlin-plugin-avdec -l pl.UTF-8 | |
150 | Wtyczki avdec dla biblioteki Gmerlin. | |
151 | ||
d7237645 TP |
152 | %prep |
153 | %setup -q | |
154 | %patch0 -p1 | |
4836da25 JB |
155 | %patch1 -p1 |
156 | %patch2 -p1 | |
d7237645 TP |
157 | |
158 | %build | |
159 | %{__libtoolize} | |
160 | %{__aclocal} -I m4 | |
161 | %{__autoconf} | |
162 | %{__autoheader} | |
163 | %{__automake} | |
164 | %configure \ | |
4836da25 | 165 | %{!?with_smb:--disable-samba} \ |
d7237645 TP |
166 | --enable-static \ |
167 | %{!?with_apidocs:--without-doxygen} \ | |
168 | --with-cpuflags=none | |
169 | %{__make} | |
170 | ||
171 | %install | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
174 | %{__make} install \ | |
175 | DESTDIR=$RPM_BUILD_ROOT | |
176 | ||
fde7ee3e JB |
177 | # .la kept for now - .pc is missing proper {Libs,Requires}.private |
178 | #%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgmerlin_avdec.la | |
179 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gmerlin/plugins/*.{la,a} | |
180 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/share/doc/%{name}/apiref | |
d7237645 | 181 | |
a85010c5 TP |
182 | %find_lang %{name} |
183 | ||
d7237645 TP |
184 | %clean |
185 | rm -rf $RPM_BUILD_ROOT | |
186 | ||
187 | %post -p /sbin/ldconfig | |
188 | %postun -p /sbin/ldconfig | |
189 | ||
a85010c5 | 190 | %files -f %{name}.lang |
d7237645 TP |
191 | %defattr(644,root,root,755) |
192 | %doc AUTHORS NEWS README | |
4836da25 JB |
193 | %attr(755,root,root) %{_bindir}/bgavdemux |
194 | %attr(755,root,root) %{_bindir}/bgavdump | |
d7237645 | 195 | %attr(755,root,root) %{_libdir}/libgmerlin_avdec.so.*.*.* |
4836da25 | 196 | %attr(755,root,root) %ghost %{_libdir}/libgmerlin_avdec.so.1 |
d7237645 TP |
197 | |
198 | %files devel | |
199 | %defattr(644,root,root,755) | |
200 | %{?with_apidocs:%doc doc/apiref} | |
201 | %attr(755,root,root) %{_libdir}/libgmerlin_avdec.so | |
fde7ee3e JB |
202 | %{_libdir}/libgmerlin_avdec.la |
203 | # NOTE: dir shared with gmerlin-devel | |
204 | %dir %{_includedir}/gmerlin | |
205 | %{_includedir}/gmerlin/avdec.h | |
206 | %{_includedir}/gmerlin/bgav_version.h | |
207 | %{_includedir}/gmerlin/bgavdefs.h | |
d7237645 TP |
208 | %{_pkgconfigdir}/gmerlin_avdec.pc |
209 | ||
210 | %files static | |
211 | %defattr(644,root,root,755) | |
212 | %{_libdir}/libgmerlin_avdec.a | |
fde7ee3e JB |
213 | |
214 | %files -n gmerlin-plugin-avdec | |
215 | %defattr(644,root,root,755) | |
216 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_avdec.so | |
217 | # separate packages? | |
218 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_dvb.so | |
219 | #%attr(755,root,root) %{_libdir}/gmerlin/plugins/i_dvd.so | |
220 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_vcd.so |