SHA256
1
0
forked from pool/curtail
curtail/curtail.spec

71 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package curtail
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: curtail
Version: 1.2.1
Release: 0
Summary: A simple and useful image compressor
License: GPL-3.0-or-later
URL: https://github.com/Huluti/curtail
Source: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gobject-introspection-devel
BuildRequires: hicolor-icon-theme
BuildRequires: meson >= 0.50.0
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: update-desktop-files
Requires: jpegoptim
Requires: libwebp-tools
Requires: optipng
Requires: pngquant
Requires: python3-gobject-Gdk
%description
Curtail (previously ImCompressor) is an useful image compressor, supporting
PNG, JPEG and WEBP file types. It support both lossless and lossy compression
modes with an option to whether keep or not metadata of images.
%lang_package
%prep
%setup -q -n Curtail-%{version}
%build
%meson
%meson_build
%suse_update_desktop_file com.github.huluti.Curtail RasterGraphics
%install
%meson_install
%find_lang %{name} %{?no_lang_C}
%files
%license COPYING
%doc CHANGELOG.md README.md
%{_bindir}/curtail
%{_datadir}/metainfo/*.xml
%{_datadir}/curtail/
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/icons/hicolor/*/apps/*.svg
%files lang -f %{name}.lang
%changelog