]>
Commit | Line | Data |
---|---|---|
e0b01846 TP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # without doc | |
4 | # | |
4562df28 | 5 | Summary: GMerlin Audio Video Library |
e0788c4a | 6 | Summary(pl.UTF-8): Biblioteka audio/video GMerlin |
4562df28 | 7 | Name: gavl |
5dc14943 | 8 | Version: 1.4.0 |
b3be8f08 | 9 | Release: 2 |
55ca8c59 | 10 | License: GPL v2+ |
c933f0fe | 11 | Group: Libraries |
55ca8c59 | 12 | Source0: http://downloads.sourceforge.net/gmerlin/%{name}-%{version}.tar.gz |
5dc14943 | 13 | # Source0-md5: 2752013a817fbc43ddf13552215ec2c0 |
c933f0fe | 14 | Patch0: %{name}-make.patch |
358a34a0 | 15 | Patch1: %{name}-am.patch |
b3be8f08 | 16 | Patch2: x32.patch |
4562df28 | 17 | URL: http://gmerlin.sourceforge.net/gavl_frame.html |
c933f0fe JB |
18 | BuildRequires: autoconf >= 2.50 |
19 | BuildRequires: automake | |
e0b01846 | 20 | %{?with_apidocs:BuildRequires: doxygen} |
1e7afee3 | 21 | BuildRequires: libpng-devel |
c933f0fe | 22 | BuildRequires: libtool |
4562df28 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
e0b01846 TP |
25 | %define specflags -fomit-frame-pointer -ffast-math |
26 | ||
4562df28 | 27 | %description |
bcf4a5be JB |
28 | GMerlin Audio Video Library. |
29 | ||
942b201b | 30 | %description -l pl.UTF-8 |
bcf4a5be | 31 | Biblioteka audio/video GMerlin. |
4562df28 | 32 | |
33 | %package devel | |
34 | Summary: Header files for gavl library | |
e0788c4a | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gavl |
4562df28 | 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 | ||
942b201b JR |
42 | %description devel -l pl.UTF-8 |
43 | Ten pakiet zawiera pliki nagłówkowe biblioteki gavl. | |
4562df28 | 44 | |
45 | %package static | |
46 | Summary: Static gavl library | |
e0788c4a | 47 | Summary(pl.UTF-8): Statyczna biblioteka gavl |
4562df28 | 48 | Group: Development/Libraries |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static gavl library. | |
53 | ||
942b201b | 54 | %description static -l pl.UTF-8 |
bcf4a5be | 55 | Statyczna 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 | |
76 | rm -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 | |
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) | |
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 |