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
16 URL: http://gmerlin.sourceforge.net/gavl_frame.html
17 BuildRequires: autoconf >= 2.50
18 BuildRequires: automake
19 %{?with_apidocs:BuildRequires: doxygen}
20 BuildRequires: libpng-devel
21 BuildRequires: libtool
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define specflags -fomit-frame-pointer -ffast-math
27 GMerlin Audio Video Library.
29 %description -l pl.UTF-8
30 Biblioteka audio/video GMerlin.
33 Summary: Header files for gavl library
34 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gavl
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
39 This is the package containing the header files for gavl library.
41 %description devel -l pl.UTF-8
42 Ten pakiet zawiera pliki nagłówkowe biblioteki gavl.
45 Summary: Static gavl library
46 Summary(pl.UTF-8): Statyczna biblioteka gavl
47 Group: Development/Libraries
48 Requires: %{name}-devel = %{version}-%{release}
53 %description static -l pl.UTF-8
54 Statyczna biblioteka gavl.
69 %{!?with_apidocs:--without-doxygen} \
74 rm -rf $RPM_BUILD_ROOT
77 DESTDIR=$RPM_BUILD_ROOT
79 # obsoleted by pkg-config
80 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
82 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/share/doc/%{name}
85 rm -rf $RPM_BUILD_ROOT
87 %post -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
91 %defattr(644,root,root,755)
92 %doc AUTHORS README TODO
93 %attr(755,root,root) %{_libdir}/libgavl.so.*.*.*
94 %attr(755,root,root) %ghost %{_libdir}/libgavl.so.1
97 %defattr(644,root,root,755)
98 %{?with_apidocs:%doc doc/apiref}
99 %attr(755,root,root) %{_libdir}/libgavl.so
101 %{_pkgconfigdir}/gavl.pc
104 %defattr(644,root,root,755)