summaryrefslogtreecommitdiff
path: root/palemoon/palemoon.spec
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-02-15 15:09:27 -0500
committerB Stack <bgstack15@gmail.com>2019-02-15 15:09:27 -0500
commit82a7112ab782890de2f954f3e8a7e5ed76118f0a (patch)
tree414ca8487bf3bf6e2fb0ffae8d040d439c54850d /palemoon/palemoon.spec
parentsplit palemoon spec into normal and custom (diff)
downloadstackrpms-82a7112ab782890de2f954f3e8a7e5ed76118f0a.tar.gz
stackrpms-82a7112ab782890de2f954f3e8a7e5ed76118f0a.tar.bz2
stackrpms-82a7112ab782890de2f954f3e8a7e5ed76118f0a.zip
WIP: pm custom rpm for prefs
Diffstat (limited to 'palemoon/palemoon.spec')
-rw-r--r--palemoon/palemoon.spec33
1 files changed, 17 insertions, 16 deletions
diff --git a/palemoon/palemoon.spec b/palemoon/palemoon.spec
index 52040d1..fea1009 100644
--- a/palemoon/palemoon.spec
+++ b/palemoon/palemoon.spec
@@ -1,6 +1,6 @@
%global tarballdir UXP-PM%{version}_Release
%global dummy_package 0
-%global pkgname palemoon
+%global appname palemoon
%global prettyname Pale Moon Web Browser
%global stackrpms_custom 0
@@ -29,7 +29,8 @@
%if 0%{stackrpms_custom}
Name: palemoon-stackrpms
-Summary: Pale Moon web browser with stackrpm customization
+Summary: Pale Moon web browser with stackrpms prefs
+%global prettyname Pale Moon with stackrpms prefs
%else
Name: palemoon
Summary: Pale Moon web browser
@@ -141,18 +142,18 @@ EOF
%endif
# cleanup
-%{__rm} -rf %{buildroot}%{_datadir}/idl/%{pkgname} \
- %{buildroot}%{_includedir}/%{pkgname} \
- %{buildroot}%{_libdir}/%{pkgname}-devel
+%{__rm} -rf %{buildroot}%{_datadir}/idl/%{appname} \
+ %{buildroot}%{_includedir}/%{appname} \
+ %{buildroot}%{_libdir}/%{appname}-devel
# desktop files
%{__mkdir_p} %{buildroot}%{_datadir}/applications
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE2}
%{__sed} -i -r -e "s/@NAME@/%{prettyname}/;" \
- -e "s/@EXEC@/%{pkgname}/;" \
- -e "s/@ICON@/%{pkgname}/;" \
- %{buildroot}%{_datadir}/applications/%{pkgname}.desktop
+ -e "s/@EXEC@/%{appname}/;" \
+ -e "s/@ICON@/%{appname}/;" \
+ %{buildroot}%{_datadir}/applications/%{appname}.desktop
# application start script
# none
@@ -162,25 +163,25 @@ desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE2}
# mimetypes
%{__install} -Dm0644 %{SOURCE3} \
- %{buildroot}%{_datadir}/mime/packages/%{pkgname}.xml
+ %{buildroot}%{_datadir}/mime/packages/%{name}.xml
# icons
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
for s in 16 22 24 32 48 256 ;
do
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
- %{__cp} -p application/%{pkgname}/branding/official/default${s}.png \
- %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{pkgname}.png
+ %{__cp} -p application/%{appname}/branding/official/default${s}.png \
+ %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{appname}.png
done
# Register as an application to be visible in the software center
# EXPERIMENTAL
mkdir -p %{buildroot}%{_datadir}/appdata
-cat > %{buildroot}%{_datadir}/appdata/%{pkgname}.appdata.xml <<EOF
+cat > %{buildroot}%{_datadir}/appdata/%{appname}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Adapted from content by Richard Hughes <richard-at-hughsie-dot-com> -->
<application>
- <id type="desktop">%{pkgname}.desktop</id>
+ <id type="desktop">%{appname}.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<description>
<p>
@@ -225,12 +226,12 @@ filelist() {
}
%if 0%{stackrpms_custom}
-%{__install} -d %{buildroot}%{_libdir}/%{pkgname}/browser/defaults/preferences/
+%{__install} -d %{buildroot}%{_libdir}/%{name}/browser/defaults/preferences/
%{__install} -Dm0644 %{SOURCE4} \
- %{buildroot}%{_libdir}/%{pkgname}/browser/defaults/preferences/
+ %{buildroot}%{_libdir}/%{name}/browser/defaults/preferences/
%endif
-filelist file.lst %{pkgname} usr langpack
+filelist file.lst %{appname} usr langpack
%clean
%{__rm} -rf %{buildroot} || :
bgstack15