]> git.pld-linux.org Git - packages/browser-plugin-spice.git/commitdiff
- initial
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 20 Jul 2011 09:46:52 +0000 (09:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- sh patch to fix build with sh not being bash

Changed files:
    browser-plugin-spice.spec -> 1.1
    spice-xpi-sh.patch -> 1.1

browser-plugin-spice.spec [new file with mode: 0644]
spice-xpi-sh.patch [new file with mode: 0644]

diff --git a/browser-plugin-spice.spec b/browser-plugin-spice.spec
new file mode 100644 (file)
index 0000000..3587cb8
--- /dev/null
@@ -0,0 +1,72 @@
+Summary:       Spice-XPI plugin for Mozilla compatible browsers
+Summary(pl.UTF-8):     Wtyczka Spice-XPI dla przeglądarek WWW kompatybilnych z Mozillą
+Name:          browser-plugin-spice
+Version:       2.5
+Release:       0.1
+License:       MPL v1.1 or GPL v2.0 or LGPL v2.1
+Group:         X11/Applications
+Source0:       http://spice-space.org/download/releases/spice-xpi-%{version}.tar.bz2
+# Source0-md5: 39b16babf4d1a12a345d92a8fcbf0998
+Patch0:                spice-xpi-sh.patch
+URL:           http://spice-space.org/
+BuildRequires: autoconf >= 2.57
+BuildRequires: automake
+BuildRequires: libstdc++-devel
+BuildRequires: libtool
+BuildRequires: log4cpp-devel
+BuildRequires: nspr-devel >= 4.7.1
+BuildRequires: rpmbuild(macros) >= 1.357
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xulrunner-devel >= 1.9.1
+Requires:      browser-plugins >= 2.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Spice-XPI plugin for Mozilla compatible browsers.
+
+%description -l pl.UTF-8
+Wtyczka Spice-XPI dla przeglądarek WWW kompatybilnych z Mozillą.
+
+%prep
+%setup -q -n spice-xpi-%{version}
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --disable-static
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_browserpluginsdir}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       plugindir=%{_browserpluginsdir}
+
+install SpiceXPI/src/plugin/nsISpicec.xpt $RPM_BUILD_ROOT%{_browserpluginsdir}
+%{__rm} $RPM_BUILD_ROOT%{_browserpluginsdir}/libnsISpicec.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%update_browser_plugins
+
+%postun
+if [ "$1" = 0 ]; then
+       %update_browser_plugins
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_browserpluginsdir}/libnsISpicec.so
+%{_browserpluginsdir}/nsISpicec.xpt
+%{_datadir}/spice
diff --git a/spice-xpi-sh.patch b/spice-xpi-sh.patch
new file mode 100644 (file)
index 0000000..d3f4397
--- /dev/null
@@ -0,0 +1,34 @@
+--- spice-xpi-2.5/configure.ac.orig    2011-06-07 10:36:54.000000000 +0200
++++ spice-xpi-2.5/configure.ac 2011-07-20 11:04:03.150855074 +0200
+@@ -96,19 +96,19 @@
+    )
+ AC_SUBST(LIBRT)
+-SPICE_NONPKGCONFIG_LIBS+=" $LIBM $LIBRT"
++SPICE_NONPKGCONFIG_LIBS="$SPICE_NONPKGCONFIG_LIBS $LIBM $LIBRT"
+ SPICE_REQUIRES=""
+ PKG_CHECK_MODULES(LOG4CPP, log4cpp)
+ AC_SUBST(LOG4CPP_CFLAGS)
+ AC_SUBST(LOG4CPP_LIBS)
+-SPICE_REQUIRES+=" log4cpp"
++SPICE_REQUIRES="$SPICE_REQUIRES log4cpp"
+ PKG_CHECK_MODULES(X11, x11)
+ AC_SUBST(X11_CFLAGS)
+ AC_SUBST(X11_LIBS)
+-SPICE_REQUIRES+=" x11"
++SPICE_REQUIRES="$SPICE_REQUIRES x11"
+ # Add parameter for (partial) static linkage of spice client.
+ # this is used to achive single binary package for all (?) distros.
+@@ -122,7 +122,7 @@
+ PKG_CHECK_MODULES(XUL, libxul-embedding >= 1.9 nspr >= 4.7.1)
+ AC_SUBST(XUL_CFLAGS)
+ AC_SUBST(XUL_LIBS)
+-SPICE_REQUIRES+=" libxul-embedding >= 1.9 nspr >= 4.7.1"
++SPICE_REQUIRES="$SPICE_REQUIRES libxul-embedding >= 1.9 nspr >= 4.7.1"
+ # Find xpidl
+ for i in `pkg-config --variable=libdir libxul`/xpidl ; do
This page took 0.072873 seconds and 4 git commands to generate.