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 URL: http://gmerlin.sourceforge.net/gavl_frame.html
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake
18 %{?with_apidocs:BuildRequires: doxygen}
19 BuildRequires: libpng-devel
20 BuildRequires: libtool
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define specflags -fomit-frame-pointer -ffast-math
26 GMerlin Audio Video Library.
28 %description -l pl.UTF-8
29 Biblioteka audio/video GMerlin.
32 Summary: Header files for gavl library
33 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gavl
34 Group: Development/Libraries
35 Requires: %{name} = %{version}-%{release}
38 This is the package containing the header files for gavl library.
40 %description devel -l pl.UTF-8
41 Ten pakiet zawiera pliki nagłówkowe biblioteki gavl.
44 Summary: Static gavl library
45 Summary(pl.UTF-8): Statyczna biblioteka gavl
46 Group: Development/Libraries
47 Requires: %{name}-devel = %{version}-%{release}
52 %description static -l pl.UTF-8
53 Statyczna biblioteka gavl.
67 %{!?with_apidocs:--without-doxygen} \
72 rm -rf $RPM_BUILD_ROOT
75 DESTDIR=$RPM_BUILD_ROOT
77 # obsoleted by pkg-config
78 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
80 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/share/doc/%{name}
83 rm -rf $RPM_BUILD_ROOT
85 %post -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
89 %defattr(644,root,root,755)
90 %doc AUTHORS README TODO
91 %attr(755,root,root) %{_libdir}/libgavl.so.*.*.*
92 %attr(755,root,root) %ghost %{_libdir}/libgavl.so.1
95 %defattr(644,root,root,755)
96 %{?with_apidocs:%doc doc/apiref}
97 %attr(755,root,root) %{_libdir}/libgavl.so
99 %{_pkgconfigdir}/gavl.pc
102 %defattr(644,root,root,755)