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