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
commitc0f9f1839080c19314db2deabd8c339ec67ea6e3 (patch)
treee406d080c9b664302f337419478a35095f5e5448
parentMerge branch 'add-waterfox' into 'master' (diff)
parentAdd waterfox-filesystem (diff)
downloadstackrpms-c0f9f1839080c19314db2deabd8c339ec67ea6e3.tar.gz
stackrpms-c0f9f1839080c19314db2deabd8c339ec67ea6e3.tar.bz2
stackrpms-c0f9f1839080c19314db2deabd8c339ec67ea6e3.zip
Merge branch 'add-waterfox-filesystem' into 'master'
Add waterfox-filesystem See merge request bgstack15/stackrpms!9
-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