[pipelight] create common-subpackage the %%ghost install-dependency must have 0755-perms

Björn Esser besser82 at fedoraproject.org
Fri Jul 11 13:41:54 UTC 2014


commit 67bc7eb4522847ec1eb95e4fddaa614eb3703025
Author: Björn Esser <bjoern.esser at gmail.com>
Date:   Fri Jul 11 15:40:31 2014 +0200

    create common-subpackage
    the %%ghost install-dependency must have 0755-perms

 pipelight.spec |   49 ++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 38 insertions(+), 11 deletions(-)
---
diff --git a/pipelight.spec b/pipelight.spec
index b259a22..f63d879 100644
--- a/pipelight.spec
+++ b/pipelight.spec
@@ -15,7 +15,7 @@
 
 Name:			pipelight
 Version:		0.2.7.1.1
-Release:		0.3%{?gitrel}%{?dist}
+Release:		0.4%{?gitrel}%{?dist}
 Summary:		NPAPI Wrapper Plugin for using Windows plugins in Linux browsers
 
 # No license-files in src-tarball.  Upstream is informed, see:
@@ -46,10 +46,8 @@ BuildRequires:		mingw64-winpthreads
 %endif # 0%{?fedora} >= 20 || 0%{?rhel} >= 7
 %endif # arch x86_64
 
-Requires:		%{_bindir}/gpg
-Requires:		%{_bindir}/wget
-Requires:		%{_bindir}/zenity
 Requires:		mozilla-filesystem%{?_isa}
+Requires:		%{name}-common			== %{version}-%{release}
 Requires:		wine%{?_isa}
 
 %description
@@ -75,6 +73,20 @@ For further information about all supported plugins, their installation,
 configuration and usage, please visit %{url}.
 
 
+%package common
+Summary:		Common files needed by %{name}
+BuildArch:		noarch
+
+Requires:		%{_bindir}/gpg
+Requires:		%{_bindir}/wget
+Requires:		%{_bindir}/zenity
+Requires:		%{name}				== %{version}-%{release}
+Requires:		wine
+
+%description common
+This package contains common files needed by %{name}.
+
+
 %prep
 %setup -qn mmueller2012-%{name}-%{shortcommit}
 %patch0 -b .buildsys -p 1
@@ -123,14 +135,17 @@ _file="share/install-dependency"
 	%{buildroot}%{_datadir}/%{name}/install-dependency.real
 %{_bindir}/touch %{buildroot}%{_datadir}/%{name}/install-dependency	\
 	%{buildroot}%{_datadir}/%{name}/install-dependency.sig
+%{__chmod} 0755 %{buildroot}%{_datadir}/%{name}/install-dependency
 
 
 %post
-# This will not enable any plugins and restore the dependency-installer-script
-# shipped inside the recent package.
+# This will not enable any plugins.
+%{_bindir}/%{name}-plugin --create-mozilla-plugins &>/dev/null
+
+%post common
+# Restore the dependency-installer-script shipped inside the recent package.
 %{__cp} -af %{_datadir}/%{name}/install-dependency.real			\
 	%{_datadir}/%{name}/install-dependency
-%{_bindir}/%{name}-plugin --create-mozilla-plugins &>/dev/null
 
 %preun
 # This will disable and remove all plugins, if the last instance of this
@@ -143,21 +158,33 @@ fi
 
 
 %files
-%dir %{_datadir}/%{name}
 %doc bsd-3.txt ChangeLog COPYRIGHT LICENSE
+%{_bindir}/%{name}-plugin
+%ifarch x86_64
+%{_datadir}/%{name}/*64*
+%endif # arch x86_64
+%{_libdir}/%{name}
+%{_mandir}/man1/%{name}-plugin.1*
+
+%files common
+%dir %{_datadir}/%{name}
+%ifarch x86_64
+%exclude %{_datadir}/%{name}/*64*
+%endif # arch x86_64
 %ghost %{_datadir}/%{name}/install-dependency
 %ghost %{_datadir}/%{name}/install-dependency.sig
-%{_bindir}/%{name}-plugin
 %{_datadir}/%{name}/*/
 %{_datadir}/%{name}/install-dependency.real
 %{_datadir}/%{name}/pluginloader*
 %{_datadir}/%{name}/sig-install-dependency.gpg
 %{_datadir}/%{name}/wine*
-%{_libdir}/%{name}
-%{_mandir}/man1/%{name}-plugin.1*
 
 
 %changelog
+* Fri Jul 11 2014 Björn Esser <bjoern.esser at gmail.com> - 0.2.7.1.1-0.4.git20140711.8b41e9505f7a
+- create common-subpackage
+- the %%ghost install-dependency must have 0755-perms
+
 * Fri Jul 11 2014 Björn Esser <bjoern.esser at gmail.com> - 0.2.7.1.1-0.3.git20140711.8b41e9505f7a
 - package the %%ghost files to be 0-size
 


More information about the scm-commits mailing list