Group :: Graphics
RPM: curtail
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%def_enable snapshot
%define _name curtail
%define ver_major 1.7
%define xdg_name com.github.huluti.Curtail
#data/com.github.huluti.Curtail.appdata.xml: FAILED:
%def_disable check
Name: curtail
Version: %ver_major.0
Release: alt1
Summary: An Image Compressor for GNOME
License: GPL-3.0
Group: Graphics
Url: https://apps.gnome.org/Curtail
%if_disabled snapshot
Source: %url/-/archive/v%version/%name-%version.tar.gz
%else
Vcs: https://github.com/Huluti/Curtail.git
Source: %name-%version.tar
%endif
BuildArch: noarch
%add_python3_path %_datadir/%name
%define adwaita_ver 1.4
Requires: typelib(Adw) = 1
Requires: yelp
Requires: jpegoptim
Requires: pngquant
Requires: /usr/bin/cwebp
Requires: /usr/bin/scour
Requires: oxipng
BuildRequires(pre): rpm-macros-meson rpm-build-python3 rpm-build-gir
BuildRequires: meson yelp-tools
BuildRequires: /usr/bin/appstream-util desktop-file-utils
BuildRequires: pkgconfig(libadwaita-1) >= %adwaita_ver
%description
Curtail is a useful image compressor that supports PNG, JPEG, WebP and
SVG file types.
It supports both lossless and lossy compression modes with an option to
whether keep or not metadata of images.
%prep
%setup
%build
%meson
%meson_build
%install
%meson_install
%find_lang --with-gnome %name
%check
%__meson_test -v
%files -f %name.lang
%_bindir/%name
%_datadir/%name/
%_desktopdir/%xdg_name.desktop
%_datadir/glib-2.0/schemas/%xdg_name.gschema.xml
%_iconsdir/hicolor/*/apps/%{xdg_name}*.svg
%_datadir/metainfo/%xdg_name.appdata.xml
%doc README*
%changelog
…
Full changelog you can see here
%define _name curtail
%define ver_major 1.7
%define xdg_name com.github.huluti.Curtail
#data/com.github.huluti.Curtail.appdata.xml: FAILED:
%def_disable check
Name: curtail
Version: %ver_major.0
Release: alt1
Summary: An Image Compressor for GNOME
License: GPL-3.0
Group: Graphics
Url: https://apps.gnome.org/Curtail
%if_disabled snapshot
Source: %url/-/archive/v%version/%name-%version.tar.gz
%else
Vcs: https://github.com/Huluti/Curtail.git
Source: %name-%version.tar
%endif
BuildArch: noarch
%add_python3_path %_datadir/%name
%define adwaita_ver 1.4
Requires: typelib(Adw) = 1
Requires: yelp
Requires: jpegoptim
Requires: pngquant
Requires: /usr/bin/cwebp
Requires: /usr/bin/scour
Requires: oxipng
BuildRequires(pre): rpm-macros-meson rpm-build-python3 rpm-build-gir
BuildRequires: meson yelp-tools
BuildRequires: /usr/bin/appstream-util desktop-file-utils
BuildRequires: pkgconfig(libadwaita-1) >= %adwaita_ver
%description
Curtail is a useful image compressor that supports PNG, JPEG, WebP and
SVG file types.
It supports both lossless and lossy compression modes with an option to
whether keep or not metadata of images.
%prep
%setup
%build
%meson
%meson_build
%install
%meson_install
%find_lang --with-gnome %name
%check
%__meson_test -v
%files -f %name.lang
%_bindir/%name
%_datadir/%name/
%_desktopdir/%xdg_name.desktop
%_datadir/glib-2.0/schemas/%xdg_name.gschema.xml
%_iconsdir/hicolor/*/apps/%{xdg_name}*.svg
%_datadir/metainfo/%xdg_name.appdata.xml
%doc README*
%changelog
…
Full changelog you can see here