From f4fe9e7fe0b4863ea4a1dac34bc13125e880d021 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Nov 16 2021 10:05:08 +0000 Subject: update spec to produce correctly named packages --- diff --git a/SPECS/python-cicoclient.spec b/SPECS/python-cicoclient.spec index 2f8220a..0ae391b 100644 --- a/SPECS/python-cicoclient.spec +++ b/SPECS/python-cicoclient.spec @@ -19,7 +19,15 @@ BuildArch: noarch BuildRequires: git + +%description +python-cicoclient is a client, library, and a CLI interface that can be used to +communicate with the ci.centos.org infrastructure provisioning system: Duffy. + %if %{with python2} +%package -n python2-cicoclient +Summary: %{summary} + BuildRequires: python2-devel BuildRequires: python-cliff BuildRequires: python-pbr @@ -28,32 +36,40 @@ BuildRequires: python-setuptools BuildRequires: python-six BuildRequires: fontawesome-fonts-web +Requires: python-cliff >= 1.14.0 +Requires: python-pbr >= 1.6 +Requires: python-requests >= 2.5.2 +Requires: python-six >= 1.9.0 + +Obsoletes: python-cicoclient < %{version}-%{release} + +%description -n python2-cicoclient +python-cicoclient is a client, library, and a CLI interface that can be used to +communicate with the ci.centos.org infrastructure provisioning system: Duffy. %endif + %if %{with python3} +%package -n python3-cicoclient +Summary: %{summary} + BuildRequires: python3-devel BuildRequires: python3-cliff BuildRequires: python3-pbr BuildRequires: python3-requests BuildRequires: python3-setuptools BuildRequires: python3-six -%endif -%if %{with python2} -Requires: python-cliff >= 1.14.0 -Requires: python-pbr >= 1.6 -Requires: python-requests >= 2.5.2 -Requires: python-six >= 1.9.0 -%endif -%if %{with python3} Requires: python3-cliff >= 1.14.0 Requires: python3-pbr >= 1.6 Requires: python3-requests >= 2.5.2 Requires: python3-six >= 1.9.0 -%endif -%description +Obsoletes: python-cicoclient < %{version}-%{release} + +%description -n python3-cicoclient python-cicoclient is a client, library, and a CLI interface that can be used to communicate with the ci.centos.org infrastructure provisioning system: Duffy. +%endif %package doc Summary: Documentation for python-cicoclient @@ -106,19 +122,25 @@ install -p -D -m 644 man/python-cicoclient.1 %{buildroot}%{_mandir}/man1/cico.1 # Fix hidden-file-or-dir warnings rm -rf html/.doctrees html/.buildinfo -%files +%if %{with python2} +%files -n python2-cicoclient %license LICENSE %doc README.rst %{_bindir}/cico -%if %{with python2} %{python2_sitelib}/cicoclient %{python2_sitelib}/*.egg-info +%{_mandir}/man1/cico.1* %endif + %if %{with python3} +%files -n python3-cicoclient +%license LICENSE +%doc README.rst +%{_bindir}/cico %{python3_sitelib}/cicoclient %{python3_sitelib}/*.egg-info -%endif %{_mandir}/man1/cico.1* +%endif %files doc %license LICENSE