1 |
%global pkgname repoze.sphinx.autointerface |
%global pkgname repoze.sphinx.autointerface |
2 |
%global srcname %(echo %{pkgname} | tr . -) |
%global srcname %(echo %{pkgname} | tr . -) |
3 |
|
|
4 |
|
%define gitdate 20200728 |
5 |
|
%define rel 1 |
6 |
|
|
7 |
Name: python-%{srcname} |
Name: python-%{srcname} |
8 |
Version: 0.8 |
Version: 0.8.1 |
9 |
Release: %mkrel 9 |
Release: %mkrel %{?gitdate:-c git%{gitdate}} %rel |
10 |
Group: Development/Python |
Group: Development/Python |
11 |
Summary: Auto-generate Sphinx API docs from Zope interfaces |
Summary: Auto-generate Sphinx API docs from Zope interfaces |
12 |
|
|
13 |
License: BSD |
License: BSD |
14 |
URL: https://github.com/repoze/repoze.sphinx.autointerface |
URL: https://github.com/repoze/repoze.sphinx.autointerface |
15 |
|
%if %{gitdate} |
16 |
|
Source0: https://github.com/repoze/repoze.sphinx.autointerface/archive/refs/heads/master.tar.gz#/%{name}-%{version}-git%{gitdate}.tar.gz |
17 |
|
%else |
18 |
Source0: https://github.com/repoze/%{pkgname}/archive/%{version}/%{pkgname}-%{version}.tar.gz |
Source0: https://github.com/repoze/%{pkgname}/archive/%{version}/%{pkgname}-%{version}.tar.gz |
19 |
|
%endif |
20 |
BuildArch: noarch |
BuildArch: noarch |
21 |
|
|
22 |
BuildRequires: pkgconfig(python3) |
BuildRequires: pkgconfig(python3) |
44 |
%{common_desc} |
%{common_desc} |
45 |
|
|
46 |
%prep |
%prep |
47 |
%setup -qn %{pkgname}-%{version} |
%setup -qn %{pkgname}-%{?!gitdate:%{version}}%{?gitdate:master} |
48 |
|
%autopatch -p1 |
49 |
|
|
50 |
# drop bundled egg-info |
# drop bundled egg-info |
51 |
rm -rf repoze.sphinx.autointerface.egg-info/ |
rm -rf repoze.sphinx.autointerface.egg-info/ |