Disable gspell on RHEL
Also, convert all conditionals to bconds, except for comics which is no longer needed given the upcoming end of support for RHEL 7.
This commit is contained in:
parent
8c921dc3c4
commit
957d400ecb
60
evince.spec
60
evince.spec
@ -1,3 +1,11 @@
|
||||
# texlive is buildroot only for Fedora flatpaks
|
||||
%bcond dvi %{undefined flatpak}
|
||||
# djvulibre, gspell are not available in RHEL 10+
|
||||
%bcond djvu %{undefined rhel}
|
||||
%bcond gspell %{undefined rhel}
|
||||
# not compatible with libnautilus-extension-4
|
||||
%bcond nautilus 0
|
||||
|
||||
# Exclude private libraries from autogenerated provides and requires
|
||||
%global __provides_exclude_from ^%{_libdir}/evince/
|
||||
%global __requires_exclude ^(%%(find %{buildroot}%{_libdir}/evince/ -name '*.so' | xargs -n1 basename | sort -u | paste -s -d '|' -))
|
||||
@ -9,7 +17,7 @@
|
||||
|
||||
Name: evince
|
||||
Version: 46.3
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Document viewer
|
||||
|
||||
License: GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND X11 AND MIT AND Afmparse
|
||||
@ -23,7 +31,9 @@ BuildRequires: pkgconfig(dbus-1)
|
||||
BuildRequires: pkgconfig(gio-unix-2.0)
|
||||
BuildRequires: pkgconfig(gnome-desktop-3.0)
|
||||
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
||||
%if %{with gspell}
|
||||
BuildRequires: pkgconfig(gspell-1)
|
||||
%endif
|
||||
BuildRequires: pkgconfig(gstreamer-1.0)
|
||||
BuildRequires: pkgconfig(gstreamer-base-1.0)
|
||||
BuildRequires: pkgconfig(gstreamer-video-1.0)
|
||||
@ -41,19 +51,19 @@ BuildRequires: /usr/bin/desktop-file-validate
|
||||
BuildRequires: libappstream-glib-devel
|
||||
BuildRequires: meson
|
||||
BuildRequires: systemd-rpm-macros
|
||||
%if ! 0%{?flatpak}
|
||||
%if %{with dvi}
|
||||
BuildRequires: pkgconfig(synctex)
|
||||
%if 0
|
||||
# for the nautilus properties page
|
||||
BuildRequires: pkgconfig(libnautilus-extension)
|
||||
%endif
|
||||
# for the dvi backend
|
||||
BuildRequires: texlive-lib-devel
|
||||
%endif
|
||||
%if 0%{?fedora}
|
||||
%if %{with djvu}
|
||||
# for the djvu backend
|
||||
BuildRequires: djvulibre-devel
|
||||
%endif
|
||||
%if %{with nautilus}
|
||||
# for the nautilus properties page
|
||||
BuildRequires: pkgconfig(libnautilus-extension)
|
||||
%endif
|
||||
# for the xps backend
|
||||
BuildRequires: pkgconfig(libgxps)
|
||||
|
||||
@ -76,7 +86,7 @@ installing additional backends.
|
||||
|
||||
%package libs
|
||||
Summary: Libraries for the evince document viewer
|
||||
%if 0%{?fedora}
|
||||
%if %{with djvu}
|
||||
Recommends: %{name}-djvu%{?_isa} = %{version}-%{release}
|
||||
%endif
|
||||
Requires: libarchive%{?_isa} >= %{libarchive_version}
|
||||
@ -108,7 +118,7 @@ Requires: texlive-collection-fontsrecommended
|
||||
This package contains a backend to let evince display dvi files.
|
||||
|
||||
|
||||
%if 0%{?fedora}
|
||||
%if %{with djvu}
|
||||
%package djvu
|
||||
Summary: Evince backend for djvu files
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
@ -117,8 +127,7 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
This package contains a backend to let evince display djvu files.
|
||||
%endif
|
||||
|
||||
%if ! 0%{?flatpak}
|
||||
%if 0
|
||||
%if %{with nautilus}
|
||||
%package nautilus
|
||||
Summary: Evince extension for nautilus
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
@ -128,7 +137,6 @@ Requires: nautilus%{?_isa}
|
||||
This package contains the evince extension for the nautilus file manager.
|
||||
It adds an additional tab called "Document" to the file properties dialog.
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%package thumbnailer
|
||||
Summary: Evince thumbnailer
|
||||
@ -150,18 +158,21 @@ It provides the printing preview for the GTK printing dialog.
|
||||
|
||||
%build
|
||||
%meson \
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
-Dcomics=enabled \
|
||||
%endif
|
||||
%if 0%{?flatpak}
|
||||
-Ddvi=disabled \
|
||||
%else
|
||||
%if %{with dvi}
|
||||
-Ddvi=enabled \
|
||||
%else
|
||||
-Ddvi=disabled \
|
||||
%endif
|
||||
%if 0%{?fedora}
|
||||
%if %{with djvu}
|
||||
-Ddjvu=enabled \
|
||||
%else
|
||||
-Ddjvu=disabled \
|
||||
%endif
|
||||
%if %{with gspell}
|
||||
-Dgspell=enabled \
|
||||
%else
|
||||
-Dgspell=disabled \
|
||||
%endif
|
||||
-Dxps=enabled \
|
||||
%if 0%{?flatpak}
|
||||
@ -223,10 +234,8 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Evince-p
|
||||
%{_libdir}/evince/4/backends/libtiffdocument.so
|
||||
%{_libdir}/evince/4/backends/tiffdocument.evince-backend
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
%{_libdir}/evince/4/backends/libcomicsdocument.so
|
||||
%{_libdir}/evince/4/backends/comicsdocument.evince-backend
|
||||
%endif
|
||||
|
||||
%{_libdir}/evince/4/backends/libxpsdocument.so
|
||||
%{_libdir}/evince/4/backends/xpsdocument.evince-backend
|
||||
@ -247,26 +256,24 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Evince-p
|
||||
%{_datadir}/gir-1.0/EvinceDocument-3.0.gir
|
||||
%{_datadir}/gir-1.0/EvinceView-3.0.gir
|
||||
|
||||
%if ! 0%{?flatpak}
|
||||
%if %{with dvi}
|
||||
%files dvi
|
||||
%{_libdir}/evince/4/backends/libdvidocument.so*
|
||||
%{_libdir}/evince/4/backends/dvidocument.evince-backend
|
||||
%{_datadir}/metainfo/evince-dvidocument.metainfo.xml
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora}
|
||||
%if %{with djvu}
|
||||
%files djvu
|
||||
%{_libdir}/evince/4/backends/libdjvudocument.so
|
||||
%{_libdir}/evince/4/backends/djvudocument.evince-backend
|
||||
%{_datadir}/metainfo/evince-djvudocument.metainfo.xml
|
||||
%endif
|
||||
|
||||
%if ! 0%{?flatpak}
|
||||
%if 0
|
||||
%if %{with nautilus}
|
||||
%files nautilus
|
||||
%{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%files thumbnailer
|
||||
%{_bindir}/evince-thumbnailer
|
||||
@ -278,6 +285,9 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Evince-p
|
||||
%{_mandir}/man1/evince-previewer.1*
|
||||
|
||||
%changelog
|
||||
* Tue May 28 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 46.3-2
|
||||
- Disable gspell on RHEL
|
||||
|
||||
* Tue May 28 2024 David King <amigadave@amigadave.com> - 46.3-1
|
||||
- Update to 46.3
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user