]> git.pld-linux.org Git - packages/gavl.git/blob - gavl.spec
- soname change
[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.2.0
9 Release:        1
10 License:        GPL v3
11 Group:          Libraries
12 Source0:        http://dl.sourceforge.net/gmerlin/%{name}-%{version}.tar.gz
13 # Source0-md5:  f7dd25d3ef26a8d22f947e9383d251e7
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-shared \
67         --enable-static \
68         %{!?with_apidocs:--without-doxygen} \
69         --with-cpuflags=none
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 %{__rm} -r $RPM_BUILD_ROOT{%{_libdir}/*.la,%{_prefix}/share/doc/%{name}}
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc AUTHORS README TODO
89 %attr(755,root,root) %ghost %{_libdir}/libgavl.so.?
90 %attr(755,root,root) %{_libdir}/libgavl.so.*.*.*
91
92 %files devel
93 %defattr(644,root,root,755)
94 %{?with_apidocs:%doc doc/apiref}
95 %attr(755,root,root) %{_libdir}/libgavl.so
96 %{_includedir}/gavl
97 %{_pkgconfigdir}/gavl.pc
98
99 %files static
100 %defattr(644,root,root,755)
101 %{_libdir}/libgavl.a
This page took 0.04876 seconds and 3 git commands to generate.