]>
Commit | Line | Data |
---|---|---|
89448daa MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: A cross-platform library for parsing flash media stream | |
88480b33 | 6 | Summary(pl.UTF-8): Wieloplatformowa biblioteka do analizy flashowych strumieni multimedialnych |
89448daa MB |
7 | Name: libquvi |
8 | Version: 0.4.1 | |
c9a6a768 | 9 | Release: 2 |
89448daa MB |
10 | License: LGPL v2+ |
11 | Group: Libraries | |
12 | Source0: http://downloads.sourceforge.net/quvi/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: acc5a5da25a7f89c6ff5338d00eaaf58 | |
14 | Patch0: %{name}-automake-1.12.patch | |
15 | URL: http://quvi.sourceforge.net/ | |
16 | BuildRequires: autoconf >= 2.68 | |
17 | BuildRequires: automake | |
18 | BuildRequires: curl-devel >= 7.18.2 | |
19 | BuildRequires: libquvi-scripts >= 0.4.0 | |
20 | BuildRequires: libtool >= 2:2.2 | |
88480b33 | 21 | BuildRequires: lua51-devel >= 5.1 |
89448daa MB |
22 | BuildRequires: pkgconfig |
23 | BuildRequires: tar >= 1:1.22 | |
24 | BuildRequires: xz | |
25 | Requires: libquvi-scripts >= 0.4.0 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | libquvi is a cross-platform library for parsing flash media stream. | |
30 | ||
88480b33 JB |
31 | %description -l pl.UTF-8 |
32 | libquvi to wieloplatformowa biblioteka do analizy flashowych strumieni | |
33 | multimedialnych. | |
34 | ||
89448daa MB |
35 | %package devel |
36 | Summary: Header files for libquvi library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libquvi | |
38 | Group: Development/Libraries | |
39 | Requires: %{name} = %{version}-%{release} | |
40 | Requires: lua51-devel | |
41 | Provides: quvi-devel = %{version}-%{release} | |
42 | Obsoletes: quvi-devel < 0.2.16.2-2 | |
43 | ||
44 | %description devel | |
45 | Header files for libquvi library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe biblioteki libquvi. | |
49 | ||
50 | %package static | |
51 | Summary: Static libquvi library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka libquvi | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | Provides: quvi-static = %{version}-%{release} | |
56 | Obsoletes: quvi-static < 0.2.16.2-2 | |
57 | ||
58 | %description static | |
59 | Static libquvi library. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczna biblioteka libquvi. | |
63 | ||
64 | %prep | |
65 | %setup -q | |
66 | %patch0 -p1 | |
67 | ||
68 | %build | |
69 | %{__libtoolize} | |
70 | %{__aclocal} -I m4 | |
71 | %{__autoconf} | |
72 | %{__autoheader} | |
73 | %{__automake} | |
74 | %configure \ | |
75 | %{!?with_static_libs:--disable-static} \ | |
76 | --disable-silent-rules | |
77 | %{__make} | |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %{__make} install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
85 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post -p /sbin/ldconfig | |
91 | %postun -p /sbin/ldconfig | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
95 | %doc AUTHORS ChangeLog NEWS README | |
96 | %attr(755,root,root) %{_libdir}/libquvi.so.*.*.* | |
97 | %attr(755,root,root) %ghost %{_libdir}/libquvi.so.7 | |
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %attr(755,root,root) %{_libdir}/libquvi.so | |
102 | %{_mandir}/man3/libquvi.3* | |
103 | %{_includedir}/quvi | |
104 | %{_pkgconfigdir}/libquvi.pc | |
105 | ||
106 | %if %{with static_libs} | |
107 | %files static | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libquvi.a | |
110 | %endif |