From 20cd04d03be5edef83a021d547cb2a9a3a268159 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:19:41 +0100 Subject: [PATCH] update to 2.1.3 [release 2.1.3-1mamba;Tue Oct 08 2013] --- README.md | 2 + ...er-1.14.3-xscreensaver-molecule-path.patch | 11 ++++ mozplugger-2.1.3-Makefile_in-root.patch | 32 +++++++++ mozplugger.spec | 65 +++++++++++++++++++ 4 files changed, 110 insertions(+) create mode 100644 mozplugger-1.14.3-xscreensaver-molecule-path.patch create mode 100644 mozplugger-2.1.3-Makefile_in-root.patch create mode 100644 mozplugger.spec diff --git a/README.md b/README.md index 2bb22ed..8008ffc 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # mozplugger +MozPlugger is a generic Mozilla plug-in that allows the use of standard Linux programs as plug-ins for media types on the Internet. + diff --git a/mozplugger-1.14.3-xscreensaver-molecule-path.patch b/mozplugger-1.14.3-xscreensaver-molecule-path.patch new file mode 100644 index 0000000..9516d8f --- /dev/null +++ b/mozplugger-1.14.3-xscreensaver-molecule-path.patch @@ -0,0 +1,11 @@ +--- mozpluggerrc 2011-03-03 22:40:50.000000000 +0100 ++++ mozpluggerrc-gil 2011-03-07 03:12:09.000000000 +0100 +@@ -353,7 +353,7 @@ + chemical/x-pdb:pdb: Protein Data Bank file + model/x-pdb:pdb: Protein Data Bank file + swallow(rasmol) fill: rasmol "$file" +- swallow(molecule) fill: /usr/X11R6/lib/xscreensaver/molecule -delay 20000 -geometry +9000+9000 -no-spin -molecule "$file" ++ swallow(molecule) fill: /usr/libexec/xscreensaver/molecule -delay 20000 -geometry +9000+9000 -no-spin -molecule "$file" + + application/bge:blend:Blender Game Engine + swallow(%f): blenderplayer $file diff --git a/mozplugger-2.1.3-Makefile_in-root.patch b/mozplugger-2.1.3-Makefile_in-root.patch new file mode 100644 index 0000000..601a779 --- /dev/null +++ b/mozplugger-2.1.3-Makefile_in-root.patch @@ -0,0 +1,32 @@ +diff -Nru mozplugger-2.1.3.orig/Makefile.in mozplugger-2.1.3/Makefile.in +--- mozplugger-2.1.3.orig/Makefile.in 2013-02-18 20:42:08.000000000 +0100 ++++ mozplugger-2.1.3/Makefile.in 2013-10-08 22:25:57.592862812 +0200 +@@ -266,17 +266,17 @@ + make localinstall BROWSERDIR=.opera + + install: +- -install -d @bindir@ +- install mozplugger-helper @bindir@ +- install mozplugger-controller @bindir@ +- install mozplugger-linker @bindir@ +- install mozplugger-update @bindir@ ++ -install -d $(root)@bindir@ ++ install mozplugger-helper $(root)@bindir@ ++ install mozplugger-controller $(root)@bindir@ ++ install mozplugger-linker $(root)@bindir@ ++ install mozplugger-update $(root)@bindir@ +- -for a in ${PLUGINDIRS}; do install -d $$a ; done +- for a in ${PLUGINDIRS}; do install mozplugger.so $$a ; done +- -install -d @sysconfdir@ +- install $(srcdir)/mozpluggerrc @sysconfdir@ +- -install -d @mandir@/man7 +- install $(srcdir)/mozplugger.7 @mandir@/man7/ ++ -for a in ${PLUGINDIRS}; do install -d $(root)$$a ; done ++ for a in ${PLUGINDIRS}; do install mozplugger.so $(root)$$a ; done ++ -install -d $(root)@sysconfdir@ ++ install $(srcdir)/mozpluggerrc $(root)@sysconfdir@ ++ -install -d $(root)@mandir@/man7 ++ install $(srcdir)/mozplugger.7 $(root)@mandir@/man7/ + + uninstall: + -rm -f @sysconfdir@/mozpluggerrc diff --git a/mozplugger.spec b/mozplugger.spec new file mode 100644 index 0000000..a86403b --- /dev/null +++ b/mozplugger.spec @@ -0,0 +1,65 @@ +Name: mozplugger +Version: 2.1.3 +Release: 1mamba +Summary: A plugin allowing external viewers to be launched inside Mozilla +Group: Applications/Networking +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://mozplugger.mozdev.org/ +Source: http://mozplugger.mozdev.org/files/mozplugger-%{version}.tar.gz +Patch0: mozplugger-1.14.3-xscreensaver-molecule-path.patch +Patch1: mozplugger-2.1.3-Makefile_in-root.patch +License: GPL +BuildRequires: coreutils +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libX11-devel +## AUTOBUILDREQ-END +BuildRequires: libXt-devel +Requires: m4 +Requires: sox +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +MozPlugger is a generic Mozilla plug-in that allows the use of standard Linux programs as plug-ins for media types on the Internet. + +%prep +%setup -q +%patch0 -p0 +%patch1 -p1 + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +make install libprefix=/%{_lib} root=%{buildroot} + +iconv -f iso-8859-1 -t utf-8 < "%{buildroot}%{_mandir}/man7/mozplugger.7" > "%{buildroot}%{_mandir}/man7/mozplugger.7_" +mv "%{buildroot}%{_mandir}/man7/mozplugger.7_" "%{buildroot}%{_mandir}/man7/mozplugger.7" +iconv -f iso-8859-1 -t utf-8 < README > README_ +mv README_ README + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/mozpluggerrc +%{_bindir}/mozplugger-controller +%{_bindir}/mozplugger-helper +%{_bindir}/mozplugger-linker +%{_bindir}/mozplugger-update +%{_libdir}/mozilla/plugins/mozplugger.so +%{_mandir}/man7/mozplugger.7* +%doc COPYING +#ChangeLog README + +%changelog +* Tue Oct 08 2013 Silvan Calarco 2.1.3-1mamba +- update to 2.1.3 + +* Mon Mar 07 2011 gil 1.14.3-1mamba +- package created by autospec