64 lines
1.5 KiB
RPMSpec
64 lines
1.5 KiB
RPMSpec
%global url_ver %%(echo %{version}|cut -d. -f1,2)
|
|
%global tarball_version %%(echo %{version} | tr '~' '.')
|
|
|
|
%global __provides_exclude_from ^%{_libdir}/%{name}/.*\\.so.*$
|
|
|
|
Name: sushi
|
|
Version: 45.0
|
|
Release: %autorelease
|
|
Summary: A quick previewer for Nautilus
|
|
|
|
License: GPLv2+ with exceptions
|
|
URL: https://gitlab.gnome.org/GNOME/sushi
|
|
Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{tarball_version}.tar.xz
|
|
# https://gitlab.gnome.org/GNOME/sushi/-/merge_requests/53
|
|
Patch0: webkit-optional.patch
|
|
|
|
BuildRequires: gettext
|
|
BuildRequires: gjs-devel
|
|
BuildRequires: meson
|
|
BuildRequires: pkgconfig(evince-document-3.0)
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
BuildRequires: pkgconfig(gstreamer-audio-1.0)
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
BuildRequires: pkgconfig(gtksourceview-4)
|
|
|
|
Obsoletes: sushi-devel < 0.5.1
|
|
|
|
Requires: gtksourceview4
|
|
Recommends: webkit2gtk4.1
|
|
|
|
#Description from upstream's README.
|
|
%description
|
|
This is sushi, a quick previewer for Nautilus, the GNOME desktop
|
|
file manager.
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{name}-%{tarball_version}
|
|
|
|
|
|
%build
|
|
%meson
|
|
%meson_build
|
|
|
|
|
|
%install
|
|
%meson_install
|
|
%find_lang %{name}
|
|
|
|
|
|
%files -f %{name}.lang
|
|
%doc AUTHORS NEWS README.md TODO
|
|
%license COPYING
|
|
%{_bindir}/sushi
|
|
%{_libexecdir}/org.gnome.NautilusPreviewer
|
|
%{_libdir}/sushi/
|
|
%{_datadir}/dbus-1/services/org.gnome.NautilusPreviewer.service
|
|
%{_metainfodir}/org.gnome.NautilusPreviewer.appdata.xml
|
|
%{_datadir}/sushi/
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|