4 Commits

2 changed files with 21 additions and 6 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Jun 20 05:07:10 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Use pyproject macros to build and install.
- Add in fdupes.
-------------------------------------------------------------------
Fri May 23 12:11:11 UTC 2025 - Bjørn Lie <bjorn.lie@gmail.com>
- Drop obsolete update-desktop-files BuildRequires and macro.
-------------------------------------------------------------------
Thu Feb 8 16:02:31 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package gnome-keysign
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
#
%define pythons python3
Name: gnome-keysign
Version: 0.9.7.2
Release: 0
@@ -26,11 +27,14 @@ URL: https://github.com/GNOME-Keysign/gnome-keysign
Source: %{name}-%{version}.tar.xz
Patch0: gnome-keysign-python3-setup.patch
BuildRequires: fdupes
BuildRequires: gobject-introspection
BuildRequires: python-rpm-macros
BuildRequires: python3-Babel
BuildRequires: python3-lxml
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: update-desktop-files
BuildRequires: python3-wheel
%ifarch aarch64 ppc64 ppc64le riscv64 s390x x86_64
Requires: gstreamer1(element-zbar)()(64bit)
%else
@@ -59,11 +63,11 @@ more mature codebase.
%autosetup -p1
%build
python3 setup.py build
%pyproject_wheel
%install
python3 setup.py install -O1 --skip-build --root %{buildroot}
%suse_update_desktop_file -r org.gnome.Keysign System Security
%pyproject_install
%fdupes %{buildroot}%{python3_sitelib}
%files
%license COPYING
@@ -77,6 +81,6 @@ python3 setup.py install -O1 --skip-build --root %{buildroot}
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/org.gnome.Keysign.svg
%{python3_sitelib}/keysign/
%{python3_sitelib}/gnome_keysign-*.egg-info/
%{python3_sitelib}/gnome_keysign-%{version}.dist-info/
%changelog