-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-packaging.spec
More file actions
52 lines (42 loc) · 1.32 KB
/
Copy pathpython-packaging.spec
File metadata and controls
52 lines (42 loc) · 1.32 KB
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
48
49
50
51
52
%define module packaging
Name: python-packaging
Version: 26.3
Release: 1
Summary: Core utilities for Python packages
License: BSD or ASL 2.0
Group: Development/Python
URL: https://github.com/pypa/packaging
Source0: https://files.pythonhosted.org/packages/source/p/packaging/%{module}-%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch: noarch
# Since pip depends on packaging, use the bootstrap version
BuildRequires: python-pip-bootstrap
BuildRequires: python%{pyver}dist(flit-core)
# The dependency generator requires a working version of python-packaging,
# but we can't have a build dependency on ourselves - so let's do its job
# manually
Provides: python%{pyver}dist(packaging) = %{version}
%description
python-packaging provides core utilities for Python
packages like utilities for dealing with versions,
specifiers, markers etc.
%package doc
Summary: Python-packaging documentation
Recommends: %{name} = %{EVRD}
Group: Development/Python
%description doc
Documentation for python-packaging.
%prep
%autosetup -p1 -n packaging-%{version}
%build
%py_build
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
# Do not bundle fonts
rm -rf html/_static/fonts/
%install
%py_install
%files
%{py_puresitedir}/%{module}
%{py_puresitedir}/%{module}-%{version}.dist-info
%files doc
%doc LICENSE LICENSE.APACHE LICENSE.BSD