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