]> git.pld-linux.org Git - packages/gavl.git/blob - gavl.spec
- up to 1.4.0
[packages/gavl.git] / gavl.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs # without doc
4 #
5 Summary:        GMerlin Audio Video Library
6 Summary(pl.UTF-8):      Biblioteka audio/video GMerlin
7 Name:           gavl
8 Version:        1.4.0
9 Release:        1
10 License:        GPL v2+
11 Group:          Libraries
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)
22
23 %define         specflags       -fomit-frame-pointer -ffast-math
24
25 %description
26 GMerlin Audio Video Library.
27
28 %description -l pl.UTF-8
29 Biblioteka audio/video GMerlin.
30
31 %package devel
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}
36
37 %description devel
38 This is the package containing the header files for gavl library.
39
40 %description devel -l pl.UTF-8
41 Ten pakiet zawiera pliki nagłówkowe biblioteki gavl.
42
43 %package static
44 Summary:        Static gavl library
45 Summary(pl.UTF-8):      Statyczna biblioteka gavl
46 Group:          Development/Libraries
47 Requires:       %{name}-devel = %{version}-%{release}
48
49 %description static
50 Static gavl library.
51
52 %description static -l pl.UTF-8
53 Statyczna biblioteka gavl.
54
55 %prep
56 %setup -q
57 %patch0 -p1
58
59 %build
60 %{__libtoolize}
61 %{__aclocal} -I m4
62 %{__autoconf}
63 %{__autoheader}
64 %{__automake}
65 %configure \
66         --enable-static \
67         %{!?with_apidocs:--without-doxygen} \
68         --with-cpuflags=none
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 # obsoleted by pkg-config
78 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
79 # packaged as %doc
80 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/share/doc/%{name}
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post   -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
87
88 %files
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
93
94 %files devel
95 %defattr(644,root,root,755)
96 %{?with_apidocs:%doc doc/apiref}
97 %attr(755,root,root) %{_libdir}/libgavl.so
98 %{_includedir}/gavl
99 %{_pkgconfigdir}/gavl.pc
100
101 %files static
102 %defattr(644,root,root,755)
103 %{_libdir}/libgavl.a
This page took 0.055083 seconds and 3 git commands to generate.