]>
Commit | Line | Data |
---|---|---|
37186cd0 JB |
1 | Summary: Spice-XPI plugin for Mozilla compatible browsers |
2 | Summary(pl.UTF-8): Wtyczka Spice-XPI dla przeglądarek WWW kompatybilnych z Mozillą | |
3 | Name: browser-plugin-spice | |
dc90771f | 4 | Version: 2.8 |
37186cd0 JB |
5 | Release: 0.1 |
6 | License: MPL v1.1 or GPL v2.0 or LGPL v2.1 | |
7 | Group: X11/Applications | |
8 | Source0: http://spice-space.org/download/releases/spice-xpi-%{version}.tar.bz2 | |
dc90771f | 9 | # Source0-md5: b9075ed8c4c308cb076f2152b8655d69 |
37186cd0 JB |
10 | URL: http://spice-space.org/ |
11 | BuildRequires: autoconf >= 2.57 | |
12 | BuildRequires: automake | |
dc90771f | 13 | BuildRequires: glib2-devel >= 2.0 |
37186cd0 JB |
14 | BuildRequires: libstdc++-devel |
15 | BuildRequires: libtool | |
37186cd0 | 16 | BuildRequires: nspr-devel >= 4.7.1 |
5081592d | 17 | BuildRequires: pkgconfig |
37186cd0 | 18 | BuildRequires: rpmbuild(macros) >= 1.357 |
37186cd0 JB |
19 | BuildRequires: xulrunner-devel >= 1.9.1 |
20 | Requires: browser-plugins >= 2.0 | |
dc90771f JB |
21 | Requires: nspr >= 4.7.1 |
22 | Requires: xulrunner >= 1.9.1 | |
37186cd0 JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | Spice-XPI plugin for Mozilla compatible browsers. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Wtyczka Spice-XPI dla przeglądarek WWW kompatybilnych z Mozillą. | |
30 | ||
31 | %prep | |
32 | %setup -q -n spice-xpi-%{version} | |
37186cd0 JB |
33 | |
34 | %build | |
35 | %{__libtoolize} | |
36 | %{__aclocal} | |
37 | %{__autoconf} | |
38 | %{__autoheader} | |
39 | %{__automake} | |
40 | %configure \ | |
dc90771f | 41 | --enable-generator \ |
6706a264 | 42 | --disable-silent-rules \ |
37186cd0 JB |
43 | --disable-static |
44 | ||
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | install -d $RPM_BUILD_ROOT%{_browserpluginsdir} | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT \ | |
53 | plugindir=%{_browserpluginsdir} | |
54 | ||
55 | install SpiceXPI/src/plugin/nsISpicec.xpt $RPM_BUILD_ROOT%{_browserpluginsdir} | |
56 | %{__rm} $RPM_BUILD_ROOT%{_browserpluginsdir}/libnsISpicec.la | |
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) | |
dc90771f JB |
71 | %doc NEWS README |
72 | %attr(755,root,root) %{_bindir}/spice-xpi-generator | |
37186cd0 JB |
73 | %attr(755,root,root) %{_browserpluginsdir}/libnsISpicec.so |
74 | %{_browserpluginsdir}/nsISpicec.xpt | |
dc90771f | 75 | %{_datadir}/spice-xpi |