Skip to content

Commit

Permalink
introduce option to avoid building devel package
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Rosenauer committed Oct 14, 2019
1 parent 11acc15 commit 31a6643
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions firefox/MozillaFirefox.spec
Expand Up @@ -24,6 +24,7 @@
%define orig_suffix %{nil}
%define update_channel release
%define branding 1
%define devpkg 1
%define releasedate 20191001234643

# always build with GCC as SUSE Security Team requires that
Expand Down Expand Up @@ -201,6 +202,9 @@ Recommends: libcanberra0
Recommends: libpulse0
# addon leads to startup crash (bnc#908892)
Obsoletes: tracker-miner-firefox < 0.15
%if 0%{?devpkg} == 0
Obsoletes: %{name}-devel < %{version}
%endif
# libproxy's mozjs pacrunner crashes FF (bnc#759123)
%if 0%{?suse_version} < 1220
Obsoletes: libproxy1-pacrunner-mozjs <= 0.4.7
Expand All @@ -212,6 +216,7 @@ Mozilla Firefox is a standalone web browser, designed for standards
compliance and performance. Its functionality can be enhanced via a
plethora of extensions.

%if 0%{?devpkg}
%package devel
Summary: Devel package for %{appname}
Group: Development/Tools/Other
Expand All @@ -222,6 +227,7 @@ Requires: perl(XML::Simple)

%description devel
Development files for %{appname} to make packaging of addons easier.
%endif

%if %localize
%package translations-common
Expand Down Expand Up @@ -595,6 +601,7 @@ rm -f %{buildroot}%{progdir}/run-mozilla.sh
rm -f %{buildroot}%{progdir}/LICENSE
rm -f %{buildroot}%{progdir}/precomplete
rm -f %{buildroot}%{progdir}/update-settings.ini
%if 0%{?devpkg}
# devel
mkdir -p %{buildroot}%{_bindir}
install -m 755 %SOURCE12 %{buildroot}%{_bindir}
Expand All @@ -616,12 +623,7 @@ cat <<'FIN' >%{buildroot}%{_sysconfdir}/rpm/macros.%{progname}
%%{__unzip} -q -d "$extdir" "%%1" \
%%{nil}
FIN
# just dumping an xpi file there doesn't work...
#%%firefox_ext_install() \
# extdir="%%{buildroot}%%{firefox_extdir}" \
# mkdir -p "$extdir" \
# cp "%%1" "$extdir" \
# %%{nil}
%endif
# fdupes
%fdupes %{buildroot}%{progdir}
%fdupes %{buildroot}%{_datadir}
Expand Down Expand Up @@ -707,13 +709,14 @@ exit 0
%doc %{_mandir}/man1/%{progname}.1.gz
%{_datadir}/appdata/

%if 0%{?devpkg}
%files devel
%defattr(-,root,root)
%{_bindir}/mozilla-get-app-id
%config %{_sysconfdir}/rpm/macros.%{progname}
%endif

%if %localize

%files translations-common -f %{_tmppath}/translations.common
%defattr(-,root,root)
%dir %{progdir}
Expand Down

0 comments on commit 31a6643

Please sign in to comment.