]>
Commit | Line | Data |
---|---|---|
b92e7c04 | 1 | Summary: NPAPI plugin for libvlc |
0e3ceb10 | 2 | Summary(pl.UTF-8): Wtyczka NPAPI do libvlc |
f1a26804 | 3 | Name: browser-plugin-vlc |
402b8cfc | 4 | Version: 2.2.0 |
c7066967 | 5 | Release: 1 |
0e3ceb10 | 6 | License: GPL v2+ |
b92e7c04 | 7 | Group: Applications/Networking |
402b8cfc JB |
8 | Source0: http://download.videolan.org/pub/videolan/vlc-webplugins/%{version}/npapi-vlc-%{version}.tar.xz |
9 | # Source0-md5: e8f96d0737cf817e657405230394c20f | |
0e3ceb10 JB |
10 | URL: http://git.videolan.org/?p=npapi-vlc.git;a=summary |
11 | BuildRequires: autoconf >= 2.50 | |
12 | BuildRequires: automake | |
13 | BuildRequires: gtk+2-devel >= 2.0 | |
14 | BuildRequires: libstdc++-devel | |
15 | BuildRequires: libtool >= 2:2 | |
16 | BuildRequires: libxcb-devel | |
17 | BuildRequires: pkgconfig | |
c7066967 | 18 | BuildRequires: tar >= 1:1.22 |
b92e7c04 | 19 | BuildRequires: vlc-devel >= 2.1.0 |
0e3ceb10 JB |
20 | BuildRequires: xorg-lib-libX11-devel |
21 | BuildRequires: xulrunner-devel >= 1.9.2 | |
c7066967 | 22 | BuildRequires: xz |
b92e7c04 AM |
23 | Requires: browser-plugins >= 2.0 |
24 | Requires: browser-plugins(%{_target_base_arch}) | |
f1a26804 | 25 | Obsoletes: npapi-vlc |
b92e7c04 AM |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | NPAPI plugin for libvlc. | |
30 | ||
0e3ceb10 JB |
31 | %description -l pl.UTF-8 |
32 | Wtyczka NPAPI do libvlc. | |
33 | ||
b92e7c04 | 34 | %prep |
c7066967 | 35 | %setup -q -n npapi-vlc-%{version} |
b92e7c04 AM |
36 | |
37 | %build | |
38 | %{__libtoolize} | |
0e3ceb10 | 39 | %{__aclocal} -I m4 |
b92e7c04 | 40 | %{__autoconf} |
0e3ceb10 | 41 | %{__autoheader} |
b92e7c04 AM |
42 | %{__automake} |
43 | %configure \ | |
0e3ceb10 JB |
44 | --disable-silent-rules \ |
45 | --with-mozilla-pkg=mozilla-plugin | |
b92e7c04 AM |
46 | %{__make} |
47 | ||
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | npvlcdir=%{_browserpluginsdir} \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
0e3ceb10 | 56 | %{__rm} $RPM_BUILD_ROOT%{_browserpluginsdir}/libvlcplugin.la |
b92e7c04 AM |
57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %post | |
62 | %update_browser_plugins | |
63 | ||
64 | %postun | |
65 | if [ "$1" = 0 ]; then | |
66 | %update_browser_plugins | |
67 | fi | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
0e3ceb10 | 71 | %doc AUTHORS ChangeLog NEWS README |
b92e7c04 | 72 | %attr(755,root,root) %{_browserpluginsdir}/libvlcplugin.so |