You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.1 KiB
57 lines
1.1 KiB
4 years ago
|
%global srcname platformdirs
|
||
|
%global common_description %{expand:
|
||
|
A small Python module for determining appropriate platform-specific dirs, e.g.
|
||
|
a "user data dir".}
|
||
|
|
||
|
Name: python-%{srcname}
|
||
|
Version: 2.0.0
|
||
|
Release: 1%{?dist}
|
||
|
Summary: Python module for determining appropriate platform-specific dirs
|
||
|
License: MIT
|
||
|
URL: https://github.com/platformdirs/platformdirs
|
||
|
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
||
|
BuildArch: noarch
|
||
|
BuildRequires: pyproject-rpm-macros
|
||
|
|
||
|
|
||
|
%description %{common_description}
|
||
|
|
||
|
|
||
|
%package -n python3-%{srcname}
|
||
|
Summary: %{summary}
|
||
|
BuildRequires: python3-devel
|
||
|
|
||
|
|
||
|
%description -n python3-%{srcname} %{common_description}
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n %{srcname}-%{version}
|
||
|
|
||
|
|
||
|
%generate_buildrequires
|
||
|
%pyproject_buildrequires -t
|
||
|
|
||
|
|
||
|
%build
|
||
|
%pyproject_wheel
|
||
|
|
||
|
|
||
|
%install
|
||
|
%pyproject_install
|
||
|
%pyproject_save_files %{srcname}
|
||
|
|
||
|
|
||
|
%check
|
||
|
%tox
|
||
|
|
||
|
|
||
|
%files -n python3-%{srcname} -f %{pyproject_files}
|
||
|
%license LICENSE.txt
|
||
|
%doc README.rst CHANGES.rst
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Mon Jul 12 2021 Carl George <carl@george.computer> - 2.0.0-1
|
||
|
- Initial package rhbz#1981607
|