Skip to content

Commit 9f08bd5

Browse files
keszybzcrobinso
authored andcommitted
Python 2 binary package renamed to python2-bugzilla
%python_provide added to python3 subpackage Signed-off-by: Cole Robinson <[email protected]>
1 parent 9a4a609 commit 9f08bd5

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

python-bugzilla.spec

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ BuildRequires: python3-requests
2828
BuildRequires: python3-setuptools
2929
%endif # if with_python3
3030

31+
%global _description\
32+
python-bugzilla is a python library for interacting with bugzilla instances\
33+
over XML-RPC.\
34+
35+
%description %_description
36+
37+
%package -n python2-bugzilla
38+
Summary: %summary
3139
Requires: python-requests
3240
Requires: python-magic
3341
%if 0%{?el6}
@@ -36,22 +44,18 @@ Requires: python-argparse
3644
# This dep is for back compat, so that installing python-bugzilla continues
3745
# to give the cli tool
3846
Requires: python-bugzilla-cli
47+
%{?python_provide:%python_provide python2-bugzilla}
3948

40-
41-
%description
42-
python-bugzilla is a python 2 library for interacting with bugzilla instances
43-
over XML-RPC.
44-
49+
%description -n python2-bugzilla %_description
4550

4651
%if 0%{?with_python3}
4752
%package -n python3-bugzilla
48-
Summary: python 3 library for interacting with Bugzilla
53+
Summary: %summary
4954
Requires: python3-requests
5055
Requires: python3-magic
56+
%{?python_provide:%python_provide python3-bugzilla}
5157

52-
%description -n python3-bugzilla
53-
python3-bugzilla is a python 3 library for interacting with bugzilla instances
54-
over XML-RPC.
58+
%description -n python3-bugzilla %_description
5559
%endif # if with_python3
5660

5761

@@ -118,7 +122,7 @@ done
118122

119123

120124

121-
%files
125+
%files -n python2-bugzilla
122126
%doc COPYING README.md NEWS.md
123127
%{python2_sitelib}/*
124128

0 commit comments

Comments
 (0)