summaryrefslogtreecommitdiff
path: root/python-pockets.spec
blob: 54b2561adbee4c0d18b04707e8dd5cd3e5d45ac4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
%global pypi_name pockets

Name:		python-%{pypi_name}
Version:	0.9.1
Release:	1
Summary:	A collection of helpful Python tools!

License:	MIT
URL:       	https://github.com/RobRuana/pockets
Source0:	https://files.pythonhosted.org/packages/df/8e/0601097cfcce2e8c2297db5080e9719f549c2bd4b94420ddc8d3f848bbca/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
The Pockets library pulls together many of the Python helper functions I've found useful over the years.

%package -n python3-%{pypi_name}
Summary:	A collection of helpful Python tools!
Provides:	python-%{pypi_name}

BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:  python3-setuptools_scm
BuildRequires:  python3-pip
BuildRequires:  python3-wheel
BuildRequires:  python3-poetry-core

%description -n python3-%{pypi_name}
The Pockets library pulls together many of the Python helper functions I've found useful over the years.

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%pyproject_build

%install
%pyproject_install

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/pockets-*.dist-info/
%{python3_sitelib}/pockets/

%changelog
* Mon Aug 21 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 0.9.1-1
- Init package python-pockets.