64 lines
1.8 KiB
RPMSpec
64 lines
1.8 KiB
RPMSpec
%global majorversion 0.11
|
|
%global xfceversion 4.16
|
|
|
|
Name: ristretto
|
|
Version: 0.11.0
|
|
Release: 1
|
|
Summary: Lightweight picture-viewer for the Xfce desktop environment
|
|
License: GPLv2+
|
|
URL: http://goodies.xfce.org/projects/applications/ristretto/
|
|
Source0: http://archive.xfce.org/src/apps/%{name}/%{majorversion}/%{name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
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
|
|
* Fri Jun 18 2021 zhanglin <lin.zhang@turbolinux.com.cn> - 0.11.0-1
|
|
- Update to 0.11.0
|
|
|
|
* Mon Jul 27 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.10.0-1
|
|
- Init package
|