3 %bcond_without apidocs # without doc
5 Summary: GMerlin Audio Video Library
6 Summary(pl.UTF-8): Biblioteka audio/video GMerlin
12 Source0: http://downloads.sourceforge.net/gmerlin/%{name}-%{version}.tar.gz
13 # Source0-md5: 2752013a817fbc43ddf13552215ec2c0
14 Patch0: %{name}-make.patch
15 Patch1: %{name}-am.patch
17 URL: http://gmerlin.sourceforge.net/gavl_frame.html
18 BuildRequires: autoconf >= 2.50
19 BuildRequires: automake
20 %{?with_apidocs:BuildRequires: doxygen}
21 BuildRequires: libpng-devel
22 BuildRequires: libtool
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define specflags -fomit-frame-pointer -ffast-math
28 GMerlin Audio Video Library.
30 %description -l pl.UTF-8
31 Biblioteka audio/video GMerlin.
34 Summary: Header files for gavl library
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gavl
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
40 This is the package containing the header files for gavl library.
42 %description devel -l pl.UTF-8
43 Ten pakiet zawiera pliki nagłówkowe biblioteki gavl.
46 Summary: Static gavl library
47 Summary(pl.UTF-8): Statyczna biblioteka gavl
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
54 %description static -l pl.UTF-8
55 Statyczna biblioteka gavl.
71 %{!?with_apidocs:--without-doxygen} \
76 rm -rf $RPM_BUILD_ROOT
79 DESTDIR=$RPM_BUILD_ROOT
81 # obsoleted by pkg-config
82 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
84 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/share/doc/%{name}
87 rm -rf $RPM_BUILD_ROOT
89 %post -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
93 %defattr(644,root,root,755)
94 %doc AUTHORS README TODO
95 %attr(755,root,root) %{_libdir}/libgavl.so.*.*.*
96 %attr(755,root,root) %ghost %{_libdir}/libgavl.so.1
99 %defattr(644,root,root,755)
100 %{?with_apidocs:%doc doc/apiref}
101 %attr(755,root,root) %{_libdir}/libgavl.so
103 %{_pkgconfigdir}/gavl.pc
106 %defattr(644,root,root,755)