1 |
shlomif |
262677 |
# |
2 |
|
|
# spec file for package npapi-vlc |
3 |
|
|
# |
4 |
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. |
5 |
|
|
# |
6 |
|
|
# All modifications and additions to the file contributed by third parties |
7 |
|
|
# remain the property of their copyright owners, unless otherwise agreed |
8 |
|
|
# upon. The license for this file, and modifications and additions to the |
9 |
|
|
# file, is the same license as for the pristine package itself (unless the |
10 |
|
|
# license for the pristine package is not an Open Source License, in which |
11 |
|
|
# case the license is the MIT License). An "Open Source License" is a |
12 |
|
|
# license that conforms to the Open Source Definition (Version 1.9) |
13 |
|
|
# published by the Open Source Initiative. |
14 |
|
|
|
15 |
shlomif |
262679 |
# Adapted to Mageia Linux Cauldron - file bugs for this package |
16 |
|
|
# on http://bugs.mageia.org/ . |
17 |
shlomif |
262677 |
|
18 |
|
|
Name: npapi-vlc |
19 |
|
|
Version: 2.0.0 |
20 |
umeabot |
361054 |
Release: %mkrel 3 |
21 |
shlomif |
269224 |
Summary: VLC video and audio plugin for browsers |
22 |
shlomif |
262679 |
License: GPLv2+ |
23 |
|
|
Group: Video |
24 |
shlomif |
262677 |
Url: http://www.videolan.org/ |
25 |
|
|
Source0: http://download.videolan.org/pub/videolan/vlc/%{version}/npapi-vlc-%{version}.tar.xz |
26 |
|
|
Patch0: npapi-vlc-2.0.0-no_return.patch |
27 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
28 |
|
|
BuildRequires: gcc-c++ |
29 |
shlomif |
262681 |
BuildRequires: pkgconfig |
30 |
shlomif |
262677 |
BuildRequires: xz |
31 |
|
|
BuildRequires: cairo-devel |
32 |
shlomif |
262681 |
BuildRequires: pkgconfig(gdk-pixbuf-2.0) |
33 |
shlomif |
262677 |
BuildRequires: gtk2-devel |
34 |
|
|
BuildRequires: glib2-devel |
35 |
|
|
BuildRequires: glib2-devel |
36 |
|
|
BuildRequires: gtk2-devel |
37 |
|
|
BuildRequires: vlc-devel >= 1.1.0 |
38 |
shlomif |
262681 |
BuildRequires: xulrunner-devel |
39 |
shlomif |
262683 |
BuildRequires: pkgconfig(x11) |
40 |
shlomif |
262677 |
# openSUSE 12.1 was the latest version using vlc-mozillaplugin |
41 |
|
|
Provides: vlc-mozillaplugin = %{version} |
42 |
|
|
Obsoletes: vlc-mozillaplugin < 2.0.0 |
43 |
|
|
Enhances: browser(npapi) |
44 |
|
|
|
45 |
|
|
%description |
46 |
shlomif |
269224 |
This plugin allows one to watch standalone or embedded video or |
47 |
|
|
audio files, inside web browsers. |
48 |
shlomif |
262677 |
|
49 |
|
|
%prep |
50 |
|
|
%setup -q |
51 |
|
|
%patch0 |
52 |
|
|
|
53 |
|
|
%build |
54 |
|
|
%configure --disable-silent-rules |
55 |
shlomif |
262679 |
%make |
56 |
shlomif |
262677 |
|
57 |
|
|
%install |
58 |
shlomif |
262680 |
%define plug_dir %{_libdir}/mozilla/plugins |
59 |
|
|
make install DESTDIR=%{buildroot} npvlcdir=%{plug_dir} |
60 |
|
|
rm %{buildroot}%{plug_dir}/libvlcplugin.la |
61 |
shlomif |
262677 |
|
62 |
|
|
%files |
63 |
|
|
%defattr(0644,root,root,0755) |
64 |
|
|
%doc AUTHORS ChangeLog COPYING NEWS README |
65 |
shlomif |
262680 |
%{plug_dir}/libvlcplugin.so |
66 |
shlomif |
262677 |
|