mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
89414f8dbd
(cherry picked from commit e1841bfc88)
Co-authored-by: madomado <madonuko@outlook.com>
63 lines
1.8 KiB
RPMSpec
63 lines
1.8 KiB
RPMSpec
%global app org.bluesabre.Mugshot
|
|
%global _description %{expand:
|
|
Mugshot is a lightweight user configuration utility for Linux designed for simplicity and ease of
|
|
use. Quickly update your personal profile and sync your updates across applications.}
|
|
|
|
|
|
Name: python-mugshot
|
|
Version: 0.4.3
|
|
Release: 1%?dist
|
|
Summary: User Management Utility for Linux
|
|
License: GPL-3.0
|
|
URL: https://github.com/bluesabre/mugshot
|
|
Source0: %url/archive/refs/tags/mugshot-%version.tar.gz
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-distutils-extra
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: glib2
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: libappstream-glib
|
|
|
|
%description %_description
|
|
|
|
%package -n mugshot
|
|
Requires: util-linux-user
|
|
Requires: python3-cairo
|
|
Requires: python3-pexpect
|
|
Requires: python3-gobject
|
|
Summary: User Management Utility for Linux
|
|
|
|
%description -n mugshot %_description
|
|
|
|
%prep
|
|
%autosetup -n mugshot-mugshot-%version
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files -L 'mugshot*'
|
|
install -Dm644 data/glib-2.0/schemas/%{lower:%app}.gschema.xml %buildroot%_datadir/glib-2.0/schemas/
|
|
|
|
%find_lang mugshot
|
|
|
|
%check
|
|
#pyproject_check_import
|
|
desktop-file-validate %buildroot%_datadir/applications/%app.desktop
|
|
appstream-util validate-relax --nonet %buildroot%_metainfodir/mugshot.appdata.xml
|
|
|
|
%files -n mugshot -f %{pyproject_files} -f mugshot.lang
|
|
%doc README.md NEWS
|
|
%license COPYING
|
|
%_bindir/mugshot
|
|
%_datadir/glib-2.0/schemas/%{lower:%app}.gschema.xml
|
|
%_datadir/applications/%app.desktop
|
|
%_datadir/mugshot/
|
|
%_metainfodir/mugshot.appdata.xml
|
|
%_mandir/man1/mugshot.1.gz
|
|
%_iconsdir/hicolor/*/apps/mugshot.svg
|