]> git.pld-linux.org Git - packages/gavl.git/blame - gavl.spec
- x32 fix from debian-x32.org
[packages/gavl.git] / gavl.spec
CommitLineData
e0b01846
TP
1#
2# Conditional build:
3%bcond_without apidocs # without doc
4#
4562df28 5Summary: GMerlin Audio Video Library
e0788c4a 6Summary(pl.UTF-8): Biblioteka audio/video GMerlin
4562df28 7Name: gavl
5dc14943 8Version: 1.4.0
b3be8f08 9Release: 2
55ca8c59 10License: GPL v2+
c933f0fe 11Group: Libraries
55ca8c59 12Source0: http://downloads.sourceforge.net/gmerlin/%{name}-%{version}.tar.gz
5dc14943 13# Source0-md5: 2752013a817fbc43ddf13552215ec2c0
c933f0fe 14Patch0: %{name}-make.patch
358a34a0 15Patch1: %{name}-am.patch
b3be8f08 16Patch2: x32.patch
4562df28 17URL: http://gmerlin.sourceforge.net/gavl_frame.html
c933f0fe
JB
18BuildRequires: autoconf >= 2.50
19BuildRequires: automake
e0b01846 20%{?with_apidocs:BuildRequires: doxygen}
1e7afee3 21BuildRequires: libpng-devel
c933f0fe 22BuildRequires: libtool
4562df28 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
e0b01846
TP
25%define specflags -fomit-frame-pointer -ffast-math
26
4562df28 27%description
bcf4a5be
JB
28GMerlin Audio Video Library.
29
942b201b 30%description -l pl.UTF-8
bcf4a5be 31Biblioteka audio/video GMerlin.
4562df28 32
33%package devel
34Summary: Header files for gavl library
e0788c4a 35Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gavl
4562df28 36Group: Development/Libraries
37Requires: %{name} = %{version}-%{release}
38
39%description devel
40This is the package containing the header files for gavl library.
41
942b201b
JR
42%description devel -l pl.UTF-8
43Ten pakiet zawiera pliki nagłówkowe biblioteki gavl.
4562df28 44
45%package static
46Summary: Static gavl library
e0788c4a 47Summary(pl.UTF-8): Statyczna biblioteka gavl
4562df28 48Group: Development/Libraries
49Requires: %{name}-devel = %{version}-%{release}
50
51%description static
52Static gavl library.
53
942b201b 54%description static -l pl.UTF-8
bcf4a5be 55Statyczna biblioteka gavl.
4562df28 56
57%prep
58%setup -q
c933f0fe 59%patch0 -p1
358a34a0 60%patch1 -p1
b3be8f08 61%patch2 -p1
4562df28 62
63%build
c933f0fe
JB
64%{__libtoolize}
65%{__aclocal} -I m4
66%{__autoconf}
67%{__autoheader}
68%{__automake}
1e7afee3 69%configure \
1e7afee3 70 --enable-static \
e0b01846 71 %{!?with_apidocs:--without-doxygen} \
1e7afee3 72 --with-cpuflags=none
4562df28 73%{__make}
74
75%install
76rm -rf $RPM_BUILD_ROOT
77
78%{__make} install \
79 DESTDIR=$RPM_BUILD_ROOT
8f8e0c77 80
55ca8c59
JB
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}
4562df28 85
86%clean
87rm -rf $RPM_BUILD_ROOT
88
89%post -p /sbin/ldconfig
90%postun -p /sbin/ldconfig
91
92%files
93%defattr(644,root,root,755)
c933f0fe 94%doc AUTHORS README TODO
bcf4a5be 95%attr(755,root,root) %{_libdir}/libgavl.so.*.*.*
55ca8c59 96%attr(755,root,root) %ghost %{_libdir}/libgavl.so.1
4562df28 97
98%files devel
bcf4a5be 99%defattr(644,root,root,755)
e0b01846 100%{?with_apidocs:%doc doc/apiref}
bcf4a5be 101%attr(755,root,root) %{_libdir}/libgavl.so
bcf4a5be 102%{_includedir}/gavl
c933f0fe 103%{_pkgconfigdir}/gavl.pc
4562df28 104
105%files static
bcf4a5be
JB
106%defattr(644,root,root,755)
107%{_libdir}/libgavl.a
This page took 0.079362 seconds and 4 git commands to generate.