mpaladin a14cef6
mpaladin a14cef6
%global srcname auth.credential
mpaladin a14cef6
mpaladin a14cef6
Name:		python-auth-credential
Massimo 2231f87
Version:	1.0
4b1dcf2
Release:	19%{?dist}
mpaladin a14cef6
Summary:	Python abstraction of a credential
mpaladin a14cef6
License:	ASL 2.0
Massimo 7f4acf4
URL:		https://github.com/cern-mig/%{name}
mpaladin a14cef6
Source0:	http://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz
mpaladin a14cef6
BuildArch:	noarch
mpaladin a14cef6
BuildRequires:	python3-devel
mpaladin a14cef6
5f601c9
%global _description\
5f601c9
This module offers an abstraction of a credential, i.e. something that\
5f601c9
can be used to authenticate. It allows the creation and manipulation of\
5f601c9
credentials. In particular, it defines a standard string representation\
5f601c9
(so that credentials can be given to external programs as command line\
5f601c9
options), a standard structured representation (so that credentials can\
5f601c9
be stored in structured configuration files or using JSON) and\
5f601c9
"preparators" that can transform credentials into ready-to-use data for\
5f601c9
well known targets.\
5f601c9
\
5f601c9
The python module auth.credential is compatible with the Perl\
mpaladin a14cef6
module Authen::Credential.
mpaladin a14cef6
5f601c9
%description %_description
5f601c9
dc3c1a1
%package -n python3-auth-credential
mpaladin a14cef6
Summary:	Python abstraction of a credential
mpaladin a14cef6
dc3c1a1
%description -n python3-auth-credential
mpaladin a14cef6
This module offers an abstraction of a credential, i.e. something that
mpaladin a14cef6
can be used to authenticate. It allows the creation and manipulation of
mpaladin a14cef6
credentials. In particular, it defines a standard string representation
mpaladin a14cef6
(so that credentials can be given to external programs as command line
mpaladin a14cef6
options), a standard structured representation (so that credentials can
mpaladin a14cef6
be stored in structured configuration files or using JSON) and
mpaladin a14cef6
"preparators" that can transform credentials into ready-to-use data for
mpaladin a14cef6
well known targets.
mpaladin a14cef6
mpaladin a14cef6
The python module auth.credential is compatible with the Perl
mpaladin a14cef6
module Authen::Credential.
mpaladin a14cef6
mpaladin a14cef6
%prep
dc3c1a1
%setup -q -n %{srcname}-%{version}
8664cb6
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
mpaladin a14cef6
mpaladin a14cef6
%build 
mpaladin a14cef6
%{__python3} setup.py build
mpaladin a14cef6
mpaladin a14cef6
%install
dc3c1a1
rm -fr $RPM_BUILD_ROOT
mpaladin a14cef6
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
mpaladin a14cef6
mpaladin a14cef6
%check
mpaladin a14cef6
%{__python3} setup.py test
mpaladin a14cef6
dc3c1a1
%files -n python3-auth-credential
Massimo eb94ecf
%doc LICENSE README.rst CHANGES
mpaladin a14cef6
%{python3_sitelib}/auth/
mpaladin a14cef6
%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info
mpaladin a14cef6
mpaladin a14cef6
%changelog
4b1dcf2
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-19
4b1dcf2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4b1dcf2
8664cb6
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0-18
8664cb6
- Subpackage python2-auth-credential has been removed
8664cb6
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
8664cb6
cf43841
* Mon Jul 23 2018 Lionel Cons <lionel.cons@cern.ch> - 1.0-17
cf43841
- Fixed building using Python 2 (#1605603).
cf43841
5e4cdbf
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-16
5e4cdbf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5e4cdbf
9f651fb
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0-15
9f651fb
- Rebuilt for Python 3.7
9f651fb
b9369bf
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-14
b9369bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b9369bf
5f601c9
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0-13
5f601c9
- Python 2 binary package renamed to python2-auth-credential
5f601c9
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
5f601c9
745f4c8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-12
745f4c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
745f4c8
88103bf
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-11
88103bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
88103bf
b6d2745
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0-10
b6d2745
- Rebuild for Python 3.6
b6d2745
48a9cfc
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-9
48a9cfc
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
48a9cfc
66b95ec
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-8
66b95ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
66b95ec
dc3c1a1
* Thu Dec 17 2015 Lionel Cons <lionel.cons@cern.ch> - 1.0-7
dc3c1a1
- Cleanup the spec file.
dc3c1a1
0e3af21
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-6
0e3af21
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
0e3af21
6b0e67e
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
6b0e67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6b0e67e
64805bb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
64805bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
64805bb
d447137
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 1.0-3
d447137
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
d447137
518bbf0
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
518bbf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
518bbf0
Massimo 2231f87
* Mon Mar 04 2013 Massimo Paladin <massimo.paladin@gmail.com> - 1.0-1
Massimo 2231f87
- Upgrading to upstream version 1.0.
Massimo 2231f87
f212f5c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-4
f212f5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f212f5c
59e000d
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 0.6-3
dc3c1a1
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_3.3
59e000d
1d228d9
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
1d228d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1d228d9
mpaladin ec87c64
* Tue Apr 17 2012 Massimo Paladin <massimo.paladin@gmail.com> - 0.6-1
mpaladin ec87c64
- Upgrading to latest upstream version 0.6.
mpaladin ec87c64
mpaladin a14cef6
* Mon Feb 20 2012 Massimo Paladin <Massimo.Paladin@cern.ch> - 0.5-2
mpaladin a14cef6
- Making it compliant with guidelines.
mpaladin a14cef6
mpaladin a14cef6
* Mon Jan 23 2012 Massimo Paladin <Massimo.Paladin@cern.ch> - 0.5-1
mpaladin a14cef6
- Initial packaging.