]>
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 | |
4 | Version: 2.5 | |
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 | |
9 | # Source0-md5: 39b16babf4d1a12a345d92a8fcbf0998 | |
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 JB |
19 | BuildRequires: rpmbuild(macros) >= 1.357 |
20 | BuildRequires: xorg-lib-libX11-devel | |
21 | BuildRequires: xulrunner-devel >= 1.9.1 | |
22 | Requires: browser-plugins >= 2.0 | |
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} | |
33 | %patch0 -p1 | |
34 | ||
35 | %build | |
36 | %{__libtoolize} | |
37 | %{__aclocal} | |
38 | %{__autoconf} | |
39 | %{__autoheader} | |
40 | %{__automake} | |
41 | %configure \ | |
42 | --disable-static | |
43 | ||
44 | %{__make} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | install -d $RPM_BUILD_ROOT%{_browserpluginsdir} | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT \ | |
52 | plugindir=%{_browserpluginsdir} | |
53 | ||
54 | install SpiceXPI/src/plugin/nsISpicec.xpt $RPM_BUILD_ROOT%{_browserpluginsdir} | |
55 | %{__rm} $RPM_BUILD_ROOT%{_browserpluginsdir}/libnsISpicec.la | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %post | |
61 | %update_browser_plugins | |
62 | ||
63 | %postun | |
64 | if [ "$1" = 0 ]; then | |
65 | %update_browser_plugins | |
66 | fi | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc README | |
71 | %attr(755,root,root) %{_browserpluginsdir}/libnsISpicec.so | |
72 | %{_browserpluginsdir}/nsISpicec.xpt | |
73 | %{_datadir}/spice |