#2 update spec to produce correctly named packages
Opened 2 years ago by evgeni. Modified 2 years ago
rpms/ evgeni/python-cicoclient correct-package-names  into  c8-sig-infra

file modified
+35 -13
@@ -19,7 +19,15 @@ 

  

  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-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 @@ 

  # 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

no initial comment
Metadata