File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ sources :
2
+ pkginfo-1.9.6.tar.gz : 07a3b196685c7c599cf3e366d9c02c5ae71dfb44
Original file line number Diff line number Diff line change
1
+ Summary: Query metadata from sdists / bdists / installed packages
2
+ Name: python-pkginfo
3
+ Version: 1.9.6
4
+ Release: 1
5
+ License: MIT
6
+ Group: Development/Python
7
+ URL: https://pypi.org/project/pkginfo/
8
+ Source0: https://files.pythonhosted.org/packages/source/p/pkginfo/pkginfo-%{version }.tar.gz
9
+ BuildRequires: pkgconfig(python3)
10
+ BuildRequires: python%{pyver }dist(pip)
11
+ BuildRequires: python%{pyver }dist(setuptools)
12
+ BuildRequires: python%{pyver }dist(wheel)
13
+ BuildRequires: python%{pyver }dist(sphinx)
14
+ BuildArch: noarch
15
+
16
+ %description
17
+ This package provides an API for querying the distutils metadata written
18
+ in the PKG-INFO file inside a source distribution (an sdist) or a binary
19
+ distribution (e.g., created by running bdist_egg). It can also query the
20
+ EGG-INFO directory of an installed distribution, and the *.egg-info stored
21
+ in a “development checkout” (e.g, created by running setup.py develop).
22
+
23
+ %files
24
+ %license LICENSE.txt
25
+ %doc README.txt CHANGES.txt html
26
+ %{_bindir }/pkginfo
27
+ %{py_sitedir} /pkginfo
28
+ %{py_sitedir} /pkginfo-* .* -info
29
+
30
+ #--------------------------------------------------------------------
31
+
32
+ %prep
33
+ %autosetup -p1 -n pkginfo-%{version }
34
+
35
+ # remove test subpackage
36
+ sed -i "s/, 'pkginfo.tests'//g" setup.py
37
+
38
+ %build
39
+ %py_build
40
+
41
+ # docs
42
+ PYTHONPATH= ${PWD} sphinx-build docs html
43
+ rm -rf html/.{doctrees,buildinfo}
44
+
45
+ %install
46
+ %py_install
47
+
You can’t perform that action at this time.
0 commit comments