]>
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 | |
03984a48 | 4 | Version: 2.6 |
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 | |
03984a48 | 9 | # Source0-md5: e1099df16c66a762c2cc176c39ff8561 |
37186cd0 JB |
10 | Patch0: spice-xpi-sh.patch |
11 | URL: http://spice-space.org/ | |
12 | BuildRequires: autoconf >= 2.57 | |
13 | BuildRequires: automake | |
14 | BuildRequires: libstdc++-devel | |
15 | BuildRequires: libtool | |
16 | BuildRequires: log4cpp-devel | |
17 | BuildRequires: nspr-devel >= 4.7.1 | |
5081592d | 18 | BuildRequires: pkgconfig |
37186cd0 | 19 | BuildRequires: rpmbuild(macros) >= 1.357 |
37186cd0 JB |
20 | BuildRequires: xulrunner-devel >= 1.9.1 |
21 | Requires: browser-plugins >= 2.0 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Spice-XPI plugin for Mozilla compatible browsers. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Wtyczka Spice-XPI dla przeglądarek WWW kompatybilnych z Mozillą. | |
29 | ||
30 | %prep | |
31 | %setup -q -n spice-xpi-%{version} | |
32 | %patch0 -p1 | |
33 | ||
34 | %build | |
35 | %{__libtoolize} | |
36 | %{__aclocal} | |
37 | %{__autoconf} | |
38 | %{__autoheader} | |
39 | %{__automake} | |
40 | %configure \ | |
41 | --disable-static | |
42 | ||
43 | %{__make} | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | install -d $RPM_BUILD_ROOT%{_browserpluginsdir} | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT \ | |
51 | plugindir=%{_browserpluginsdir} | |
52 | ||
53 | install SpiceXPI/src/plugin/nsISpicec.xpt $RPM_BUILD_ROOT%{_browserpluginsdir} | |
54 | %{__rm} $RPM_BUILD_ROOT%{_browserpluginsdir}/libnsISpicec.la | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %post | |
60 | %update_browser_plugins | |
61 | ||
62 | %postun | |
63 | if [ "$1" = 0 ]; then | |
64 | %update_browser_plugins | |
65 | fi | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
69 | %doc README | |
70 | %attr(755,root,root) %{_browserpluginsdir}/libnsISpicec.so | |
71 | %{_browserpluginsdir}/nsISpicec.xpt | |
72 | %{_datadir}/spice |