Add changes related to Flatpak build
This commit is contained in:
parent
4db00e385a
commit
685ae11132
@ -26,6 +26,10 @@
|
|||||||
# Coverity scan can override this to 0, to skip checking in gtk-doc generated code
|
# Coverity scan can override this to 0, to skip checking in gtk-doc generated code
|
||||||
%{!?with_docs: %global with_docs 1}
|
%{!?with_docs: %global with_docs 1}
|
||||||
|
|
||||||
|
%if 0%{?flatpak}
|
||||||
|
%global with_docs 0
|
||||||
|
%endif
|
||||||
|
|
||||||
%define evo_plugin_dir %{_libdir}/evolution/plugins
|
%define evo_plugin_dir %{_libdir}/evolution/plugins
|
||||||
|
|
||||||
### Abstract ###
|
### Abstract ###
|
||||||
@ -53,20 +57,26 @@ Obsoletes: evolution-tests <= 3.31.1
|
|||||||
|
|
||||||
## Dependencies ###
|
## Dependencies ###
|
||||||
|
|
||||||
|
%if ! 0%{?flatpak}
|
||||||
Requires: %{_bindir}/killall
|
Requires: %{_bindir}/killall
|
||||||
Requires: evolution-data-server >= %{eds_version}
|
|
||||||
Requires: gvfs
|
Requires: gvfs
|
||||||
|
%endif
|
||||||
|
Requires: evolution-data-server >= %{eds_version}
|
||||||
Requires: gspell
|
Requires: gspell
|
||||||
Requires: highlight
|
Requires: highlight
|
||||||
Requires: %{name}-langpacks = %{version}-%{release}
|
Requires: %{name}-langpacks = %{version}-%{release}
|
||||||
|
|
||||||
### Build Dependencies ###
|
### Build Dependencies ###
|
||||||
|
|
||||||
|
%if ! 0%{?flatpak}
|
||||||
BuildRequires: %{_bindir}/killall
|
BuildRequires: %{_bindir}/killall
|
||||||
|
%endif
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
|
%if %{with_docs}
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
|
%endif
|
||||||
BuildRequires: highlight
|
BuildRequires: highlight
|
||||||
BuildRequires: intltool >= %{intltool_version}
|
BuildRequires: intltool >= %{intltool_version}
|
||||||
BuildRequires: itstool
|
BuildRequires: itstool
|
||||||
@ -76,7 +86,7 @@ BuildRequires: yelp-tools
|
|||||||
BuildRequires: pkgconfig(atk)
|
BuildRequires: pkgconfig(atk)
|
||||||
BuildRequires: pkgconfig(cairo-gobject)
|
BuildRequires: pkgconfig(cairo-gobject)
|
||||||
BuildRequires: pkgconfig(camel-1.2) >= %{eds_version}
|
BuildRequires: pkgconfig(camel-1.2) >= %{eds_version}
|
||||||
BuildRequires: pkgconfig(enchant)
|
BuildRequires: pkgconfig(enchant-2)
|
||||||
BuildRequires: pkgconfig(gail-3.0) >= %{gtk3_version}
|
BuildRequires: pkgconfig(gail-3.0) >= %{gtk3_version}
|
||||||
BuildRequires: pkgconfig(gcr-3)
|
BuildRequires: pkgconfig(gcr-3)
|
||||||
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
||||||
@ -143,6 +153,8 @@ Obsoletes: libgal2-devel <= %{last_libgal2_version}
|
|||||||
%description devel
|
%description devel
|
||||||
Development files needed for building things which link against %{name}.
|
Development files needed for building things which link against %{name}.
|
||||||
|
|
||||||
|
%if %{with_docs}
|
||||||
|
|
||||||
%package devel-docs
|
%package devel-docs
|
||||||
Summary: Developer documentation for Evolution
|
Summary: Developer documentation for Evolution
|
||||||
Requires: devhelp
|
Requires: devhelp
|
||||||
@ -152,6 +164,8 @@ BuildArch: noarch
|
|||||||
%description devel-docs
|
%description devel-docs
|
||||||
This package contains developer documentation for Evolution.
|
This package contains developer documentation for Evolution.
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%package langpacks
|
%package langpacks
|
||||||
Summary: Translations for %{name}
|
Summary: Translations for %{name}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -217,6 +231,11 @@ for inbox in src/mail/default/*/Inbox; do
|
|||||||
echo -n "" > $inbox
|
echo -n "" > $inbox
|
||||||
done
|
done
|
||||||
|
|
||||||
|
%if 0%{?flatpak}
|
||||||
|
mv data/org.gnome.Evolution.desktop.in.in data/org.gnome.Evolution.desktop.in.i
|
||||||
|
cat data/org.gnome.Evolution.desktop.in.i | sed -e "s/Icon=evolution/Icon=org.gnome.Evolution/" >data/org.gnome.Evolution.desktop.in.in
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
mkdir -p _build
|
mkdir -p _build
|
||||||
@ -291,9 +310,9 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
|||||||
|
|
||||||
%find_lang evolution --all-name --with-gnome
|
%find_lang evolution --all-name --with-gnome
|
||||||
|
|
||||||
grep "/usr/share/locale" evolution.lang > translations.lang
|
grep "%{_datadir}/locale" evolution.lang > translations.lang
|
||||||
%if %{with_docs}
|
%if %{with_docs}
|
||||||
grep -v "/usr/share/locale" evolution.lang > help.lang
|
grep -v "%{_datadir}/locale" evolution.lang > help.lang
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
@ -474,6 +493,8 @@ grep -v "/usr/share/locale" evolution.lang > help.lang
|
|||||||
%{_libdir}/pkgconfig/evolution-shell-3.0.pc
|
%{_libdir}/pkgconfig/evolution-shell-3.0.pc
|
||||||
%{_libdir}/pkgconfig/libemail-engine.pc
|
%{_libdir}/pkgconfig/libemail-engine.pc
|
||||||
|
|
||||||
|
%if %{with_docs}
|
||||||
|
|
||||||
%files devel-docs
|
%files devel-docs
|
||||||
%doc %{_datadir}/gtk-doc/html/evolution-mail-composer
|
%doc %{_datadir}/gtk-doc/html/evolution-mail-composer
|
||||||
%doc %{_datadir}/gtk-doc/html/evolution-mail-engine
|
%doc %{_datadir}/gtk-doc/html/evolution-mail-engine
|
||||||
@ -481,6 +502,8 @@ grep -v "/usr/share/locale" evolution.lang > help.lang
|
|||||||
%doc %{_datadir}/gtk-doc/html/evolution-shell
|
%doc %{_datadir}/gtk-doc/html/evolution-shell
|
||||||
%doc %{_datadir}/gtk-doc/html/evolution-util
|
%doc %{_datadir}/gtk-doc/html/evolution-util
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%files langpacks -f _build/translations.lang
|
%files langpacks -f _build/translations.lang
|
||||||
|
|
||||||
%if %{with_docs}
|
%if %{with_docs}
|
||||||
|
Loading…
Reference in New Issue
Block a user