Blame python-openpaperwork-core.spec

47660e1
%global srcname openpaperwork-core
47660e1
47660e1
Name:           python-%{srcname}
2325672
Version:        2.1.2
d58dc3d
Release:        %autorelease
47660e1
Summary:        OpenPaperwork's core
47660e1
2325672
License:        GPL-3.0-or-later
47660e1
URL:            https://gitlab.gnome.org/World/OpenPaperwork/paperwork/tree/master/openpaperwork-core
2325672
Source0:        %pypi_source %{srcname}
47660e1
47660e1
BuildArch:      noarch
47660e1
4dab94b
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
4dab94b
ExcludeArch: %{ix86}
4dab94b
47660e1
BuildRequires:  python3-devel
a68512b
BuildRequires:  python3-psutil
47660e1
47660e1
%description
47660e1
Paperwork is a GUI to make papers searchable.
47660e1
47660e1
This is the core part of Paperwork. It manages plugins.
47660e1
47660e1
47660e1
%package -n     python3-%{srcname}
47660e1
Summary:        %{summary}
47660e1
47660e1
%description -n python3-%{srcname}
47660e1
Paperwork is a GUI to make papers searchable.
47660e1
47660e1
This is the core part of Paperwork. It manages plugins.
47660e1
47660e1
47660e1
%prep
47660e1
%autosetup -n %{srcname}-%{version}
9042b6e
9042b6e
%generate_buildrequires
2325672
%pyproject_buildrequires
47660e1
47660e1
%build
9042b6e
%pyproject_wheel
47660e1
47660e1
%install
9042b6e
%pyproject_install
9042b6e
%pyproject_save_files openpaperwork_core
47660e1
47660e1
%check
47660e1
PYTHONPATH=%{buildroot}%{python3_sitelib} \
47660e1
    %{python3} -m unittest discover --verbose -s tests
47660e1
9042b6e
%files -n python3-%{srcname} -f %{pyproject_files}
47660e1
%doc README.md
e3a9c5c
%license LICENSE
47660e1
47660e1
%changelog
d58dc3d
%autochangelog