]>
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 |
8f8e0c77 | 8 | Version: 1.2.0 |
e0b01846 | 9 | Release: 1 |
8f8e0c77 | 10 | License: GPL v3 |
c933f0fe | 11 | Group: Libraries |
4562df28 | 12 | Source0: http://dl.sourceforge.net/gmerlin/%{name}-%{version}.tar.gz |
8f8e0c77 | 13 | # Source0-md5: f7dd25d3ef26a8d22f947e9383d251e7 |
c933f0fe | 14 | Patch0: %{name}-make.patch |
4562df28 | 15 | URL: http://gmerlin.sourceforge.net/gavl_frame.html |
c933f0fe JB |
16 | BuildRequires: autoconf >= 2.50 |
17 | BuildRequires: automake | |
e0b01846 | 18 | %{?with_apidocs:BuildRequires: doxygen} |
1e7afee3 | 19 | BuildRequires: libpng-devel |
c933f0fe | 20 | BuildRequires: libtool |
4562df28 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
e0b01846 TP |
23 | %define specflags -fomit-frame-pointer -ffast-math |
24 | ||
4562df28 | 25 | %description |
bcf4a5be JB |
26 | GMerlin Audio Video Library. |
27 | ||
942b201b | 28 | %description -l pl.UTF-8 |
bcf4a5be | 29 | Biblioteka audio/video GMerlin. |
4562df28 | 30 | |
31 | %package devel | |
32 | Summary: Header files for gavl library | |
e0788c4a | 33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gavl |
4562df28 | 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 | ||
942b201b JR |
40 | %description devel -l pl.UTF-8 |
41 | Ten pakiet zawiera pliki nagłówkowe biblioteki gavl. | |
4562df28 | 42 | |
43 | %package static | |
44 | Summary: Static gavl library | |
e0788c4a | 45 | Summary(pl.UTF-8): Statyczna biblioteka gavl |
4562df28 | 46 | Group: Development/Libraries |
47 | Requires: %{name}-devel = %{version}-%{release} | |
48 | ||
49 | %description static | |
50 | Static gavl library. | |
51 | ||
942b201b | 52 | %description static -l pl.UTF-8 |
bcf4a5be | 53 | Statyczna biblioteka gavl. |
4562df28 | 54 | |
55 | %prep | |
56 | %setup -q | |
c933f0fe | 57 | %patch0 -p1 |
4562df28 | 58 | |
59 | %build | |
c933f0fe JB |
60 | %{__libtoolize} |
61 | %{__aclocal} -I m4 | |
62 | %{__autoconf} | |
63 | %{__autoheader} | |
64 | %{__automake} | |
1e7afee3 AM |
65 | %configure \ |
66 | --enable-shared \ | |
67 | --enable-static \ | |
e0b01846 | 68 | %{!?with_apidocs:--without-doxygen} \ |
1e7afee3 | 69 | --with-cpuflags=none |
4562df28 | 70 | %{__make} |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
8f8e0c77 TP |
77 | |
78 | %{__rm} -r $RPM_BUILD_ROOT{%{_libdir}/*.la,%{_prefix}/share/doc/%{name}} | |
4562df28 | 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) | |
c933f0fe | 88 | %doc AUTHORS README TODO |
6d7a3b59 | 89 | %attr(755,root,root) %ghost %{_libdir}/libgavl.so.? |
bcf4a5be | 90 | %attr(755,root,root) %{_libdir}/libgavl.so.*.*.* |
4562df28 | 91 | |
92 | %files devel | |
bcf4a5be | 93 | %defattr(644,root,root,755) |
e0b01846 | 94 | %{?with_apidocs:%doc doc/apiref} |
bcf4a5be | 95 | %attr(755,root,root) %{_libdir}/libgavl.so |
bcf4a5be | 96 | %{_includedir}/gavl |
c933f0fe | 97 | %{_pkgconfigdir}/gavl.pc |
4562df28 | 98 | |
99 | %files static | |
bcf4a5be JB |
100 | %defattr(644,root,root,755) |
101 | %{_libdir}/libgavl.a |