-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-sphobjinv.spec
More file actions
35 lines (30 loc) · 919 Bytes
/
python-sphobjinv.spec
File metadata and controls
35 lines (30 loc) · 919 Bytes
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
%global module sphobjinv
Name: python-sphobjinv
Version: 2.4
Release: 1
Summary: Toolkit to manipulate and inspect Sphinx objects.inv files
Group: Development/Python
License: MIT
URL: https://github.com/bskinn/sphobjinv
Source0: %{URL}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildSystem: python
BuildArch: noarch
BuildRequires: pkgconfig(python)
BuildRequires: python%{pyver}dist(pip)
BuildRequires: python%{pyver}dist(pytest)
BuildRequires: python%{pyver}dist(setuptools)
BuildRequires: python%{pyver}dist(wheel)
%description
Toolkit for manipulation and inspection of Sphinx objects.inv files
%prep -a
# Remove bundled egg-info
rm -rf %{module}.egg-info
# Remove shebangs
sed -i '1{/^#!/d}' src/sphobjinv/_vendored/fuzzywuzzy/*.py
%files
%{_bindir}/%{module}
%{_bindir}/%{module}-textconv
%{python_sitelib}/%{module}
%{python_sitelib}/%{module}-%{version}.dist-info
%doc README.md
%license LICENSE.txt