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