%global xfceversion 4.14 Name: ristretto Version: 0.10.0 Release: 1 Summary: Lightweight picture-viewer for the Xfce desktop environment License: GPLv2+ #Group: Development/Libraries URL: http://goodies.xfce.org/projects/applications/ristretto/ Source0: http://archive.xfce.org/src/apps/%{name}/0.10/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #BuildArch: noarch BuildRequires: gcc-c++ BuildRequires: dbus-glib-devel >= 0.34 BuildRequires: gtk2-devel >= 2.20.0 BuildRequires: exo-devel >= 0.12.0 BuildRequires: libexif-devel >= 0.6.0 BuildRequires: libxfce4ui-devel >= %{xfceversion} BuildRequires: xfconf-devel >= %{xfceversion} BuildRequires: desktop-file-utils, gettext, intltool BuildRequires: libappstream-glib Requires: tumbler %description Ristretto is a fast and lightweight image-viewer for the Xfce desktop environment. %prep %autosetup %build %configure %make_build %install %make_install %find_lang %{name} desktop-file-install \ --dir %{buildroot}%{_datadir}/applications \ --add-mime-type=image/x-bmp \ --add-mime-type=image/x-png \ --add-mime-type=image/x-pcx \ --add-mime-type=image/x-tga \ --add-mime-type=image/xpm \ --delete-original \ %{buildroot}%{_datadir}/applications/%{name}.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml %files -f %{name}.lang %license COPYING %doc AUTHORS ChangeLog %{_bindir}/%{name} %{_datadir}/applications/*%{name}.desktop %{_datadir}/icons/hicolor/*/*/* %{_metainfodir}/*.appdata.xml %changelog * Mon Jul 27 2020 Dillon Chen - 0.10.0-1 - Init package