2024-11-20 13:23:57 +00:00
|
|
|
## START: Set by rpmautospec
|
|
|
|
## (rpmautospec version 0.6.1)
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
release_number = 5;
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
2023-08-21 23:26:08 +00:00
|
|
|
%bcond_without check
|
|
|
|
|
2023-09-07 08:14:46 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
%global bundled_rust_deps 1
|
|
|
|
%else
|
|
|
|
%global bundled_rust_deps 0
|
|
|
|
%endif
|
|
|
|
|
2022-12-02 15:26:02 +00:00
|
|
|
%global tarball_version %%(echo %{version} | tr '~' '.')
|
|
|
|
|
|
|
|
Name: loupe
|
2023-12-15 21:07:16 +00:00
|
|
|
Version: 45.3
|
2022-12-02 15:26:02 +00:00
|
|
|
Release: %autorelease
|
|
|
|
Summary: Image viewer
|
|
|
|
|
|
|
|
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
|
|
|
|
# 0BSD OR MIT OR Apache-2.0
|
|
|
|
# Apache-2.0 OR MIT
|
|
|
|
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
|
|
|
|
# BSD-2-Clause
|
|
|
|
# GPL-3.0-or-later
|
|
|
|
# MIT
|
|
|
|
# MIT OR Apache-2.0
|
|
|
|
# MIT OR Apache-2.0 OR Zlib
|
|
|
|
# MIT OR Zlib OR Apache-2.0
|
2023-11-15 00:46:45 +00:00
|
|
|
# MPL-2.0 OR LGPL-2.1-or-later
|
2022-12-02 15:26:02 +00:00
|
|
|
# Unlicense OR MIT
|
|
|
|
# Zlib OR Apache-2.0 OR MIT
|
2023-11-15 00:46:45 +00:00
|
|
|
License: (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND GPL-3.0-or-later AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR Zlib) AND (MIT OR Zlib OR Apache-2.0) AND (MPL-2.0 OR LGPL-2.1-or-later) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
|
2022-12-02 15:26:02 +00:00
|
|
|
# LICENSE.dependencies contains a full license breakdown
|
|
|
|
URL: https://gitlab.gnome.org/GNOME/loupe
|
|
|
|
Source0: https://download.gnome.org/sources/loupe/45/loupe-%{tarball_version}.tar.xz
|
|
|
|
|
2023-09-07 09:19:25 +00:00
|
|
|
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
|
|
|
|
ExcludeArch: %{ix86}
|
|
|
|
|
2023-11-14 17:57:54 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
BuildRequires: rust-toolset
|
|
|
|
%else
|
2023-08-21 23:27:02 +00:00
|
|
|
BuildRequires: cargo-rpm-macros
|
2023-11-14 17:57:54 +00:00
|
|
|
%endif
|
2022-12-02 15:26:02 +00:00
|
|
|
BuildRequires: itstool
|
|
|
|
BuildRequires: meson
|
2023-09-07 08:14:46 +00:00
|
|
|
%if 0%{?bundled_rust_deps}
|
|
|
|
BuildRequires: pkgconfig(gtk4)
|
|
|
|
BuildRequires: pkgconfig(gweather4)
|
|
|
|
BuildRequires: pkgconfig(lcms2)
|
|
|
|
BuildRequires: pkgconfig(libadwaita-1)
|
|
|
|
%endif
|
2022-12-02 15:26:02 +00:00
|
|
|
BuildRequires: /usr/bin/appstream-util
|
|
|
|
BuildRequires: /usr/bin/desktop-file-validate
|
|
|
|
|
2023-08-21 23:25:41 +00:00
|
|
|
# For /usr/share/dbus-1/services directory
|
|
|
|
Requires: dbus
|
|
|
|
# Image loaders used by loupe
|
2022-12-02 15:26:02 +00:00
|
|
|
Requires: glycin-loaders
|
2023-08-21 23:25:41 +00:00
|
|
|
# For hicolor icon theme directories
|
|
|
|
Requires: hicolor-icon-theme
|
2022-12-02 15:26:02 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
An image viewer application written with GTK 4, Libadwaita and Rust.
|
|
|
|
|
|
|
|
Features:
|
|
|
|
|
|
|
|
- Fast GPU accelerated image rendering with tiled rendering for SVGs
|
|
|
|
- Extendable and sandboxed (expect SVG) image decoding
|
|
|
|
- Support for more than 15 image formats by default
|
|
|
|
- Extensive support for touchpad and touchscreen gestures
|
|
|
|
- Accessible presentation of the most important metadata
|
|
|
|
- Sleek but powerful interface developed in conjunction with GNOME Human
|
|
|
|
Interface Guidelines
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n loupe-%{tarball_version}
|
|
|
|
|
2024-02-01 20:32:07 +00:00
|
|
|
%if 0%{?bundled_rust_deps}
|
|
|
|
%cargo_prep -v vendor
|
|
|
|
%else
|
2022-12-02 15:26:02 +00:00
|
|
|
rm -rf vendor
|
|
|
|
sed -i -e '/Cargo.lock/d' meson.build
|
|
|
|
%cargo_prep
|
2023-09-07 08:14:46 +00:00
|
|
|
%endif
|
2022-12-02 15:26:02 +00:00
|
|
|
|
|
|
|
|
2023-09-07 08:14:46 +00:00
|
|
|
%if ! 0%{?bundled_rust_deps}
|
2022-12-02 15:26:02 +00:00
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
2023-09-07 08:14:46 +00:00
|
|
|
%endif
|
2022-12-02 15:26:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%meson
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%cargo_license_summary
|
|
|
|
%{cargo_license} > LICENSE.dependencies
|
2024-02-01 20:32:07 +00:00
|
|
|
%if 0%{?bundled_rust_deps}
|
|
|
|
%cargo_vendor_manifest
|
2023-11-14 17:57:54 +00:00
|
|
|
%endif
|
2022-12-02 15:26:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
%find_lang loupe --with-gnome
|
|
|
|
|
|
|
|
|
2023-08-21 23:26:08 +00:00
|
|
|
%if %{with check}
|
2022-12-02 15:26:02 +00:00
|
|
|
%check
|
|
|
|
%meson_test
|
|
|
|
|
|
|
|
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_metainfodir}/org.gnome.Loupe.metainfo.xml
|
|
|
|
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Loupe.desktop
|
2023-08-21 23:26:08 +00:00
|
|
|
%endif
|
2022-12-02 15:26:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files -f loupe.lang
|
|
|
|
%license COPYING.md
|
|
|
|
%license LICENSE.dependencies
|
2024-02-01 20:32:07 +00:00
|
|
|
%if 0%{?bundled_rust_deps}
|
|
|
|
%license cargo-vendor.txt
|
2023-11-14 17:57:54 +00:00
|
|
|
%endif
|
2022-12-02 15:26:02 +00:00
|
|
|
%doc NEWS README.md
|
|
|
|
%{_bindir}/loupe
|
|
|
|
%{_datadir}/applications/org.gnome.Loupe.desktop
|
|
|
|
%{_datadir}/dbus-1/services/org.gnome.Loupe.service
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/org.gnome.Loupe*.svg
|
|
|
|
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Loupe-symbolic.svg
|
|
|
|
%{_metainfodir}/org.gnome.Loupe.metainfo.xml
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-11-20 13:23:57 +00:00
|
|
|
## START: Generated by rpmautospec
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 45.3-5
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
* Thu Feb 01 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 45.3-4
|
|
|
|
- Update Rust macro usage
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 45.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 45.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Dec 15 2023 Kalev Lember <klember@redhat.com> - 45.3-1
|
|
|
|
- Update to 45.3
|
|
|
|
|
|
|
|
* Wed Nov 29 2023 Kalev Lember <klember@redhat.com> - 45.2-1
|
|
|
|
- Update to 45.2
|
|
|
|
|
|
|
|
* Wed Nov 15 2023 Kalev Lember <klember@redhat.com> - 45.1-2
|
|
|
|
- Update license tag for dependencies
|
|
|
|
|
|
|
|
* Wed Nov 15 2023 Kalev Lember <klember@redhat.com> - 45.1-1
|
|
|
|
- Update to 45.1
|
|
|
|
|
|
|
|
* Tue Nov 14 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 45.0-4
|
|
|
|
- Fix RHEL build
|
|
|
|
|
|
|
|
* Thu Sep 28 2023 Kalev Lember <klember@redhat.com> - 45.0-3
|
|
|
|
- Backport upstream MR #302 to fix printing
|
|
|
|
|
|
|
|
* Wed Sep 27 2023 Kalev Lember <klember@redhat.com> - 45.0-2
|
|
|
|
- Backport upstream MR #299 to enable sandboxing
|
|
|
|
|
|
|
|
* Tue Sep 19 2023 Kalev Lember <klember@redhat.com> - 45.0-1
|
|
|
|
- Update to 45.0
|
|
|
|
|
|
|
|
* Thu Sep 07 2023 Kalev Lember <klember@redhat.com> - 45~beta.1-6
|
|
|
|
- ExcludeArch i686 for
|
|
|
|
https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
|
|
|
|
|
|
|
|
* Thu Sep 07 2023 Kalev Lember <klember@redhat.com> - 45~beta.1-5
|
|
|
|
- Use bundled rust deps on RHEL
|
|
|
|
|
|
|
|
* Mon Aug 21 2023 Kalev Lember <klember@redhat.com> - 45~beta.1-4
|
|
|
|
- Buildrequire cargo-rpm-macros instead of rust-packaging
|
|
|
|
|
|
|
|
* Mon Aug 21 2023 Kalev Lember <klember@redhat.com> - 45~beta.1-3
|
|
|
|
- Add check bcond to ensure cargo_buildrequires does the right thing
|
|
|
|
|
|
|
|
* Mon Aug 21 2023 Kalev Lember <klember@redhat.com> - 45~beta.1-2
|
|
|
|
- Require dbus and hicolor-icon-theme for directory ownership
|
|
|
|
|
|
|
|
* Mon Aug 21 2023 Kalev Lember <klember@redhat.com> - 45~beta.1-1
|
|
|
|
- Initial Fedora packaging (rhbz#2233324)
|
|
|
|
## END: Generated by rpmautospec
|