Blame python-pykmip.spec

255fdf5
%global pypi_name PyKMIP
255fdf5
%global sname pykmip
255fdf5
255fdf5
%if 0%{?fedora}
255fdf5
%global with_python3 1
255fdf5
%endif
255fdf5
255fdf5
Name:           python-%{sname}
255fdf5
Version:        0.4.0
dbb87de
Release:        2%{?dist}
255fdf5
Summary:        Python implementation of the Key Management Interoperability Protocol
255fdf5
255fdf5
License:        ASL 2.0
255fdf5
URL:            https://github.com/OpenKMIP/PyKMIP
255fdf5
Source0:        https://pypi.python.org/packages/source/P/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
255fdf5
BuildArch:      noarch
255fdf5
255fdf5
%description
255fdf5
PyKMIP is a Python implementation of the Key Management Interoperability
255fdf5
Protocol (KMIP). KMIP is a client/server communication protocol for the
255fdf5
storage and maintenance of key, certificate, and secret objects. The
255fdf5
standard is governed by the `Organization for the Advancement of
255fdf5
Structured InformationStandards`_ (OASIS).
255fdf5
255fdf5
%package -n python2-%{sname}
255fdf5
Summary:        Python implementation of the Key Management Interoperability Protocol
255fdf5
%{?python_provide:%python_provide python2-%{sname}}
255fdf5
255fdf5
BuildRequires:       python2-devel
255fdf5
BuildRequires:       python-enum34
255fdf5
BuildRequires:       python-six
255fdf5
BuildRequires:       python-setuptools
255fdf5
255fdf5
Requires:     python-enum34
255fdf5
Requires:     python-six
255fdf5
255fdf5
%description -n python2-%{sname}
255fdf5
PyKMIP is a Python implementation of the Key Management Interoperability
255fdf5
Protocol (KMIP). KMIP is a client/server communication protocol for the
255fdf5
storage and maintenance of key, certificate, and secret objects. The
255fdf5
standard is governed by the `Organization for the Advancement of
255fdf5
Structured InformationStandards`_ (OASIS).
255fdf5
255fdf5
%if 0%{with_python3}
255fdf5
%package -n python3-%{sname}
255fdf5
Summary:        Python implementation of the Key Management Interoperability Protocol
255fdf5
%{?python_provide:%python_provide python3-%{sname}}
255fdf5
255fdf5
255fdf5
BuildRequires:       python3-devel
255fdf5
BuildRequires:       python3-enum34
255fdf5
BuildRequires:       python3-six
255fdf5
BuildRequires:       python3-setuptools
255fdf5
255fdf5
Requires:     python3-enum34
255fdf5
Requires:     python3-six
255fdf5
255fdf5
%description -n python3-%{sname}
255fdf5
PyKMIP is a Python implementation of the Key Management Interoperability
255fdf5
Protocol (KMIP). KMIP is a client/server communication protocol for the
255fdf5
storage and maintenance of key, certificate, and secret objects. The
255fdf5
standard is governed by the `Organization for the Advancement of
255fdf5
Structured InformationStandards`_ (OASIS).
255fdf5
255fdf5
%endif
255fdf5
255fdf5
%prep
255fdf5
%autosetup -n %{pypi_name}-%{version}
255fdf5
255fdf5
%build
255fdf5
%py2_build
255fdf5
255fdf5
%if 0%{with_python3}
255fdf5
%py3_build
255fdf5
%endif
255fdf5
255fdf5
%install
255fdf5
%py2_install
255fdf5
255fdf5
%if 0%{with_python3}
255fdf5
%py3_install
255fdf5
%endif
255fdf5
255fdf5
%files -n python2-%{sname}
255fdf5
%doc README.rst
255fdf5
%license LICENSE.txt
255fdf5
%{python2_sitelib}/kmip
255fdf5
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
255fdf5
255fdf5
%if 0%{with_python3}
255fdf5
%files -n python3-%{sname}
255fdf5
%doc README.rst
255fdf5
%license LICENSE.txt
255fdf5
%{python3_sitelib}/kmip
255fdf5
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
255fdf5
%endif
255fdf5
255fdf5
%changelog
dbb87de
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
dbb87de
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
dbb87de
255fdf5
* Wed Sep 30 2015 chandankumar <chkumar246@gmail.com> - 0.4.0-1
255fdf5
- Initial package.