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