]> git.pld-linux.org Git - packages/gmerlin-avdecoder.git/blame - gmerlin-avdecoder.spec
- BR: libvdpau-devel, supports original libdvdread not mplayer fork,
[packages/gmerlin-avdecoder.git] / gmerlin-avdecoder.spec
CommitLineData
d7237645
TP
1#
2# Conditional build:
3%bcond_without apidocs # without doc
4Summary: Multiformat decoding library
5Name: gmerlin-avdecoder
6Version: 1.1.0
7Release: 1
8License: GPL v2
9Group: Libraries
10Source0: http://dl.sourceforge.net/gmerlin/%{name}-%{version}.tar.gz
11# Source0-md5: c1ea663e9da631453eec4ac79138b6c5
12Patch0: %{name}-cflags.patch
13URL: http://gmerlin.sourceforge.net/avdec_frame.html
14BuildRequires: a52dec-libs-devel
15BuildRequires: autoconf >= 2.50
16BuildRequires: automake
17%{?with_apidocs:BuildRequires: doxygen}
18BuildRequires: faad2-devel
19BuildRequires: ffmpeg-devel
20BuildRequires: flac-devel
21BuildRequires: gavl-devel
22#BuildRequires: gmerlin-devel
23BuildRequires: libcdio-devel
24BuildRequires: libdts-devel
a85010c5 25#BuildRequires: libdvdread-devel >= 0.9.5
d7237645
TP
26BuildRequires: libmad-devel
27BuildRequires: libmpcdec-devel
28BuildRequires: libmpeg2-devel
29BuildRequires: libpng-devel
30BuildRequires: libtheora-devel
31BuildRequires: libtiff-devel
32BuildRequires: libtool
a85010c5 33BuildRequires: libvdpau-devel
d7237645
TP
34BuildRequires: libvorbis-devel
35BuildRequires: mjpegtools-devel
36BuildRequires: openjpeg-devel
37BuildRequires: pkgconfig >= 0.9.0
38BuildRequires: samba-devel
39#BuildRequires: schroedinger-devel
40BuildRequires: speex-devel
41BuildRequires: zlib-devel
42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44%define specflags -fomit-frame-pointer -ffast-math
45
46%description
47General purpose media decoding library. It is one of the most complete
48general purpose media decoding libraries. The supported formats and
49codecs span a wide range of applications from consumer level (mp3,
50divx etc.) to high end production formats like 32 bit PCM and some
51professional uncompressed video codecs.
52Using gmerlin_avdecoder in your playback for transcoding application
53means rock solid media format support with an ever growing list of
54supported codecs and formats
55
56%package devel
57Summary: Header files for %{name} library
58Group: Development/Libraries
59Requires: %{name} = %{version}-%{release}
60
61%description devel
62This package contains the header files, static libraries and
63development documentation for %{name}.
64
65%package static
66Summary: Static %{name} library
67Group: Development/Libraries
68Requires: %{name}-devel = %{version}-%{release}
69
70%description static
71Static %{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
91rm -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
101rm -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
This page took 0.040197 seconds and 4 git commands to generate.