]>
Commit | Line | Data |
---|---|---|
d7237645 TP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # without doc | |
4 | Summary: Multiformat decoding library | |
5 | Name: gmerlin-avdecoder | |
6 | Version: 1.1.0 | |
7 | Release: 1 | |
8 | License: GPL v2 | |
9 | Group: Libraries | |
10 | Source0: http://dl.sourceforge.net/gmerlin/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: c1ea663e9da631453eec4ac79138b6c5 | |
12 | Patch0: %{name}-cflags.patch | |
13 | URL: http://gmerlin.sourceforge.net/avdec_frame.html | |
14 | BuildRequires: a52dec-libs-devel | |
15 | BuildRequires: autoconf >= 2.50 | |
16 | BuildRequires: automake | |
17 | %{?with_apidocs:BuildRequires: doxygen} | |
18 | BuildRequires: faad2-devel | |
19 | BuildRequires: ffmpeg-devel | |
20 | BuildRequires: flac-devel | |
21 | BuildRequires: gavl-devel | |
22 | #BuildRequires: gmerlin-devel | |
23 | BuildRequires: libcdio-devel | |
24 | BuildRequires: libdts-devel | |
a85010c5 | 25 | #BuildRequires: libdvdread-devel >= 0.9.5 |
d7237645 TP |
26 | BuildRequires: libmad-devel |
27 | BuildRequires: libmpcdec-devel | |
28 | BuildRequires: libmpeg2-devel | |
29 | BuildRequires: libpng-devel | |
30 | BuildRequires: libtheora-devel | |
31 | BuildRequires: libtiff-devel | |
32 | BuildRequires: libtool | |
a85010c5 | 33 | BuildRequires: libvdpau-devel |
d7237645 TP |
34 | BuildRequires: libvorbis-devel |
35 | BuildRequires: mjpegtools-devel | |
36 | BuildRequires: openjpeg-devel | |
37 | BuildRequires: pkgconfig >= 0.9.0 | |
38 | BuildRequires: samba-devel | |
39 | #BuildRequires: schroedinger-devel | |
40 | BuildRequires: speex-devel | |
41 | BuildRequires: zlib-devel | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %define specflags -fomit-frame-pointer -ffast-math | |
45 | ||
46 | %description | |
47 | General purpose media decoding library. It is one of the most complete | |
48 | general purpose media decoding libraries. The supported formats and | |
49 | codecs span a wide range of applications from consumer level (mp3, | |
50 | divx etc.) to high end production formats like 32 bit PCM and some | |
51 | professional uncompressed video codecs. | |
52 | Using gmerlin_avdecoder in your playback for transcoding application | |
53 | means rock solid media format support with an ever growing list of | |
54 | supported codecs and formats | |
55 | ||
56 | %package devel | |
57 | Summary: Header files for %{name} library | |
58 | Group: Development/Libraries | |
59 | Requires: %{name} = %{version}-%{release} | |
60 | ||
61 | %description devel | |
62 | This package contains the header files, static libraries and | |
63 | development documentation for %{name}. | |
64 | ||
65 | %package static | |
66 | Summary: Static %{name} library | |
67 | Group: Development/Libraries | |
68 | Requires: %{name}-devel = %{version}-%{release} | |
69 | ||
70 | %description static | |
71 | Static %{name} library. | |
72 | ||
73 | %prep | |
74 | %setup -q | |
75 | %patch0 -p1 | |
76 | ||
77 | %build | |
78 | %{__libtoolize} | |
79 | %{__aclocal} -I m4 | |
80 | %{__autoconf} | |
81 | %{__autoheader} | |
82 | %{__automake} | |
83 | %configure \ | |
84 | --enable-shared \ | |
85 | --enable-static \ | |
86 | %{!?with_apidocs:--without-doxygen} \ | |
87 | --with-cpuflags=none | |
88 | %{__make} | |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
96 | %{__rm} -r $RPM_BUILD_ROOT{%{_libdir}/*.la,%{_prefix}/share/doc/%{name}} | |
97 | ||
a85010c5 TP |
98 | %find_lang %{name} |
99 | ||
d7237645 TP |
100 | %clean |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %post -p /sbin/ldconfig | |
104 | %postun -p /sbin/ldconfig | |
105 | ||
a85010c5 | 106 | %files -f %{name}.lang |
d7237645 TP |
107 | %defattr(644,root,root,755) |
108 | %doc AUTHORS NEWS README | |
109 | %attr(755,root,root) %ghost %{_libdir}/libgmerlin_avdec.so.? | |
110 | %attr(755,root,root) %{_libdir}/libgmerlin_avdec.so.*.*.* | |
111 | ||
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %{?with_apidocs:%doc doc/apiref} | |
a85010c5 | 115 | %attr(755,root,root) %{_bindir}/bgavd* |
d7237645 TP |
116 | %attr(755,root,root) %{_libdir}/libgmerlin_avdec.so |
117 | %{_includedir}/gmerlin | |
118 | %{_pkgconfigdir}/gmerlin_avdec.pc | |
119 | ||
120 | %files static | |
121 | %defattr(644,root,root,755) | |
122 | %{_libdir}/libgmerlin_avdec.a |