summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2018-09-20 11:56:24 +0000
committerB Stack <bgstack15@gmail.com>2018-09-20 11:56:24 +0000
commit00fc60685ecf7c1ffca388183b94526c6db3e7b1 (patch)
treee406d080c9b664302f337419478a35095f5e5448
parentMerge branch 'add-waterfox' into 'master' (diff)
downloadstackrpms-00fc60685ecf7c1ffca388183b94526c6db3e7b1.tar.gz
stackrpms-00fc60685ecf7c1ffca388183b94526c6db3e7b1.tar.bz2
stackrpms-00fc60685ecf7c1ffca388183b94526c6db3e7b1.zip
Add waterfox-filesystem
-rw-r--r--waterfox-filesystem/waterfox-filesystem.spec47
1 files changed, 47 insertions, 0 deletions
diff --git a/waterfox-filesystem/waterfox-filesystem.spec b/waterfox-filesystem/waterfox-filesystem.spec
new file mode 100644
index 0000000..f67a59d
--- /dev/null
+++ b/waterfox-filesystem/waterfox-filesystem.spec
@@ -0,0 +1,47 @@
+Name: waterfox-filesystem
+Version: 1.0
+Release: 1%{?dist}
+Summary: Waterfox filesytem layout
+License: MPLv1.1
+
+Requires: mozilla-filesystem
+
+%description
+This package provides some directories required by packages which use
+Waterfox technologies such as NPAPI plugins or toolkit extensions.
+
+%prep
+
+%build
+
+%install
+mkdir -p %{buildroot}%{_libdir}/waterfox/extensions
+mkdir -p %{buildroot}%{_datadir}/waterfox/extensions
+mkdir -p %{buildroot}%{_sysconfdir}/skel/.waterfox/{plugins,extensions}
+
+ln -sf ../mozilla/plugins %{buildroot}%{_libdir}/waterfox/plugins
+%ifarch x86_64
+ mkdir -p %{buildroot}/usr/lib/waterfox/extensions
+ # This still can be used for the time
+ ln -s ../mozilla/plugins %{buildroot}/usr/lib/waterfox/plugins
+%endif
+
+%preun
+# is it a final removal?
+if [ $1 -eq 0 ]; then
+ rm -rf %{_libdir}/waterfox/extensions
+ rm -rf %{_libdir}/waterfox/plugins
+fi
+
+%files
+/usr/lib*/waterfox/extensions
+%{_libdir}/waterfox/plugins
+%ifarch x86_64
+/usr/lib/waterfox/plugins
+%endif
+%{_datadir}/waterfox
+%{_sysconfdir}/skel/.waterfox
+
+%changelog
+* Wed Dec 27 2017 Phantom X <megaphantomx at bol dot com dot br> - 1.0-1
+- Initial spec
bgstack15