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