[packages/pipelight] new package
jajcus
jajcus at pld-linux.org
Sat May 3 17:52:10 CEST 2014
commit f43748a5e1bc296f4fb23e78cfa5d8632ef508f9
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat May 3 17:52:06 2014 +0200
new package
Allows using the Microsoft Silverlight plugins (with DRM) in Linux
browsers.
pipelight-lib64.patch | 48 ++++++++++++++++++++++++++++++
pipelight-pld.patch | 47 ++++++++++++++++++++++++++++++
pipelight.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 176 insertions(+)
---
diff --git a/pipelight.spec b/pipelight.spec
new file mode 100644
index 0000000..f323cdb
--- /dev/null
+++ b/pipelight.spec
@@ -0,0 +1,81 @@
+
+%define commit 487f8db5a03d
+
+Summary: Browser plugin to load Windows browser plugins
+Name: pipelight
+Version: 0.2.6
+Release: 0.1
+License: MPL 1.1/GPL 2.0/LGPL 2.1
+Group: Applications
+Source0: https://bitbucket.org/mmueller2012/pipelight/get/v%{version}.tar.bz2
+# Source0-md5: 265747e08a3b2dd806c47a228f03df5b
+Source1: http://repos.fds-team.de/pluginloader/v%{version}/pluginloader.tar.gz
+# Source1-md5: 5931da0500aed46f875b28cec2160cfe
+Patch0: %{name}-lib64.patch
+Patch1: %{name}-pld.patch
+URL: https://launchpad.net/pipelight
+BuildRequires: libstdc++-devel
+BuildRequires: xorg-lib-libX11-devel
+Requires: browser-plugins
+Requires: wine
+Suggests: wine(compholio)(32bit)
+ExclusiveArch: %{ix86} %{x8664}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Pipelight is a special browser plugin which allows one to use windows
+only plugins inside Linux browsers. We are currently focusing on
+Silverlight, Flash, Shockwave and the Unity Webplayer. The project
+needs a patched version of Wine to execute the Silverlight DLL.
+
+%prep
+%setup -q -a1 -n mmueller2012-%{name}-%{commit}
+
+%ifarch %{x8664}
+%patch0 -p1
+%endif
+
+%patch1 -p1
+
+%build
+
+# not autoconf-generated
+./configure \
+ --prefix=%{_prefix} \
+ --wine-path=%{_bindir}/wine \
+ --moz-plugin-path=%{_browserpluginsdir} \
+ --win32-prebuilt \
+%ifarch %{x8664}
+ --with-win64 \
+%endif
+ --win64-prebuilt
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/pipelight-plugin
+%dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/libpipelight.so
+%{_mandir}/man1/*.1*
+%dir %{_datadir}/%{name}
+%attr(755,root,root) %{_datadir}/%{name}/hw-accel-default
+%attr(755,root,root) %{_datadir}/%{name}/install-dependency
+%attr(755,root,root) %{_datadir}/%{name}/pluginloader.exe
+%ifarch %{x8664}
+%attr(755,root,root) %{_datadir}/%{name}/pluginloader64.exe
+%endif
+%{_datadir}/%{name}/sig-install-dependency.gpg
+%{_datadir}/%{name}/configs
+%{_datadir}/%{name}/licenses
+%dir %{_datadir}/%{name}/scripts
+%attr(755,root,root) %{_datadir}/%{name}/scripts/*
diff --git a/pipelight-lib64.patch b/pipelight-lib64.patch
new file mode 100644
index 0000000..bb5ecfd
--- /dev/null
+++ b/pipelight-lib64.patch
@@ -0,0 +1,48 @@
+diff -dur mmueller2012-pipelight-487f8db5a03d.orig/Makefile mmueller2012-pipelight-487f8db5a03d/Makefile
+--- mmueller2012-pipelight-487f8db5a03d.orig/Makefile 2014-04-06 04:43:13.000000000 +0200
++++ mmueller2012-pipelight-487f8db5a03d/Makefile 2014-05-03 17:11:42.350768574 +0200
+@@ -51,7 +51,7 @@
+ mkdir -p "$(DESTDIR)$(prefix)/share/pipelight/configs"
+ mkdir -p "$(DESTDIR)$(prefix)/share/pipelight/licenses"
+ mkdir -p "$(DESTDIR)$(prefix)/share/pipelight/scripts"
+- mkdir -p "$(DESTDIR)$(prefix)/lib/pipelight"
++ mkdir -p "$(DESTDIR)$(prefix)/lib64/pipelight"
+ mkdir -p "$(DESTDIR)$(prefix)/bin"
+ mkdir -p "$(DESTDIR)$(prefix)/share/man/man1"
+
+@@ -88,10 +88,10 @@
+ rm pipelight-license.tmp; \
+ done
+
+- install -m 0644 src/linux/libpipelight.so "$(DESTDIR)$(prefix)/lib/pipelight/libpipelight.so"
++ install -m 0644 src/linux/libpipelight.so "$(DESTDIR)$(prefix)/lib64/pipelight/libpipelight.so"
+
+ sed 's|@@VERSION@@|$(version)|g' bin/pipelight-plugin > pipelight-plugin.tmp
+- sed -i'' -e 's|@@LIBRARY_PATH@@|$(prefix)/lib/pipelight/|g' pipelight-plugin.tmp
++ sed -i'' -e 's|@@LIBRARY_PATH@@|$(prefix)/lib64/pipelight/|g' pipelight-plugin.tmp
+ sed -i'' -e 's|@@CONFIG_PATH@@|$(prefix)/share/pipelight/configs|g' pipelight-plugin.tmp
+ sed -i'' -e 's|@@LICENSE_PATH@@|$(prefix)/share/pipelight/licenses|g' pipelight-plugin.tmp
+ sed -i'' -e 's|@@DEPENDENCY_INSTALLER@@|$(prefix)/share/pipelight/install-dependency|g' pipelight-plugin.tmp
+@@ -116,7 +116,7 @@
+ rm -f $(DESTDIR)$(prefix)/share/pipelight/scripts/configure-*
+ rm -f $(DESTDIR)$(prefix)/share/pipelight/configs/pipelight-*
+ rm -f $(DESTDIR)$(prefix)/share/pipelight/licenses/license-*
+- rm -f "$(DESTDIR)$(prefix)/lib/pipelight/libpipelight.so"
++ rm -f "$(DESTDIR)$(prefix)/lib64/pipelight/libpipelight.so"
+ rm -f "$(DESTDIR)$(prefix)/bin/pipelight-plugin"
+ rm -f "$(DESTDIR)$(prefix)/share/man/man1/pipelight-plugin.1"
+
+@@ -124,10 +124,10 @@
+ rmdir --ignore-fail-on-non-empty "$(DESTDIR)$(prefix)/share/pipelight/licenses"
+ rmdir --ignore-fail-on-non-empty "$(DESTDIR)$(prefix)/share/pipelight/scripts"
+ rmdir --ignore-fail-on-non-empty "$(DESTDIR)$(prefix)/share/pipelight"
+- rmdir --ignore-fail-on-non-empty "$(DESTDIR)$(prefix)/lib/pipelight"
++ rmdir --ignore-fail-on-non-empty "$(DESTDIR)$(prefix)/lib64/pipelight"
+
+ .PHONY: clean
+ clean:
+ for dir in src/linux src/windows; do \
+ $(MAKE) -C $$dir $@; \
+- done
+\ No newline at end of file
++ done
diff --git a/pipelight-pld.patch b/pipelight-pld.patch
new file mode 100644
index 0000000..21bd756
--- /dev/null
+++ b/pipelight-pld.patch
@@ -0,0 +1,47 @@
+diff -dur mmueller2012-pipelight-487f8db5a03d.orig/bin/pipelight-plugin mmueller2012-pipelight-487f8db5a03d/bin/pipelight-plugin
+--- mmueller2012-pipelight-487f8db5a03d.orig/bin/pipelight-plugin 2014-04-06 04:43:13.000000000 +0200
++++ mmueller2012-pipelight-487f8db5a03d/bin/pipelight-plugin 2014-05-03 17:21:35.797421889 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env bash
++#!/bin/bash
+ VERSION="@@VERSION@@"
+
+ # Global configuration
+@@ -101,7 +101,7 @@
+ PLUGIN_PATH=$(readlink -m "$PLUGIN_PATH")
+
+ # Global installation
+- if [ $(/usr/bin/id -u) -eq 0 ]; then
++ if [ $(/bin/id -u) -eq 0 ]; then
+ INSTALLDIR="$PLUGIN_PATH"
+
+ # Use environment variable (only if it doesn't point to the global directory)
+@@ -436,6 +436,10 @@
+ return 1
+ fi
+ done
++
++ if [ "$INSTALLDIR" = "$PLUGIN_PATH" ] ; then
++ /usr/sbin/update-browser-plugins || :
++ fi
+
+ return 0
+ }
+@@ -460,6 +464,10 @@
+
+ done
+
++ if [ "$INSTALLDIR" = "$PLUGIN_PATH" ] ; then
++ /usr/sbin/update-browser-plugins || :
++ fi
++
+ return 0
+ }
+
+@@ -647,4 +655,4 @@
+ esac
+ done
+
+-exit "$RET"
+\ No newline at end of file
++exit "$RET"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pipelight.git/commitdiff/f43748a5e1bc296f4fb23e78cfa5d8632ef508f9
More information about the pld-cvs-commit
mailing list