4167da
%if 0%{?fedora} || 0%{?epel} || 0%{?rhel} > 7
Ratnadeep Debnath 22821d
%global with_python3 1
4167da
%endif
341ec7
%if 0%{?fedora} <= 29 && 0%{?rhel} <= 7
341ec7
%global with_python2 1
341ec7
%endif
cf0f0d
%global with_tests 0
Ratnadeep Debnath 22821d
Ratnadeep Debnath 820dee
Name:           python-keyring
ea2705
Version:        19.2.0
3f62ef
Release:        1%{?dist}
cf0f0d
Summary:        Store and access your passwords safely
8c2648
License:        MIT and Python
cf0f0d
URL:            https://github.com/jaraco/keyring
cf0f0d
Source0:        https://files.pythonhosted.org/packages/source/k/keyring/keyring-%{version}.tar.gz
Ratnadeep Debnath 4d6f47
BuildArch:      noarch
Orion Poplawski aa0e98
Orion Poplawski aa0e98
%global desc The Python keyring lib provides a easy way to access the system keyring\
Orion Poplawski aa0e98
service from python. It can be used in any application that needs safe\
Orion Poplawski aa0e98
password storage.\
Orion Poplawski aa0e98
\
Orion Poplawski aa0e98
The keyring services supported by the Python keyring lib:\
Orion Poplawski aa0e98
\
Orion Poplawski aa0e98
* **OSXKeychain**: supports the Keychain service in Mac OS X.\
Orion Poplawski aa0e98
* **KDEKWallet**: supports the KDE's Kwallet service.\
Orion Poplawski aa0e98
* **GnomeKeyring**: for GNOME environment.\
Orion Poplawski aa0e98
* **SecretServiceKeyring**: for newer GNOME and KDE environments.\
Orion Poplawski aa0e98
* **WinVaultKeyring**: supports the Windows Credential Vault\
Orion Poplawski aa0e98
\
Orion Poplawski aa0e98
Besides these native password storing services provided by operating systems.\
Orion Poplawski aa0e98
Python keyring lib also provides following build-in keyrings.\
Orion Poplawski aa0e98
\
Orion Poplawski aa0e98
* **Win32CryptoKeyring**: for Windows 2k+.\
Orion Poplawski aa0e98
* **CryptedFileKeyring**: a command line interface keyring base on PyCrypto.\
Orion Poplawski aa0e98
* **UncryptedFileKeyring**: a keyring which leaves passwords directly in file.
Orion Poplawski aa0e98
Orion Poplawski aa0e98
%description
Orion Poplawski aa0e98
%desc
Orion Poplawski aa0e98
2eae74
%if 0%{?with_python2}
Orion Poplawski aa0e98
%package -n     python2-keyring
Orion Poplawski aa0e98
Summary:        Python 2 library to access the system keyring service
Christopher Meng 5e9c40
BuildRequires:  python2-devel
9755ee
BuildRequires:  python2-setuptools
cf0f0d
BuildRequires:  python2-setuptools_scm
cf5a56
BuildRequires:  python2-keyczar
9755ee
BuildRequires:  python2-mock
cf0f0d
cf0f0d
%if 0%{?with_tests}
32bb17
BuildRequires:  python2-entrypoints
9755ee
BuildRequires:  python2-pytest
cf0f0d
BuildRequires:  python2-pytest-cov
cf0f0d
BuildRequires:  python2-pytest-flakes
cf0f0d
%endif
cf0f0d
cf070c
Requires:       python2-SecretStorage
32bb17
Requires:       python2-entrypoints
cf070c
Orion Poplawski aa0e98
%{?python_provide:%python_provide python2-keyring}
Orion Poplawski aa0e98
df1cdf
# These were obsoleted in 0.5.1-1
df1cdf
Obsoletes:      %{name}-kwallet < 0.6
df1cdf
Obsoletes:      %{name}-gnome < 0.6
Ratnadeep Debnath 820dee
Orion Poplawski aa0e98
%description -n python2-keyring
Orion Poplawski aa0e98
%desc
2eae74
%endif
Ratnadeep Debnath 820dee
Ratnadeep Debnath 22821d
%if 0%{?with_python3}
Orion Poplawski aa0e98
%package -n     python%{python3_pkgversion}-keyring
7ecd9f
Summary:        Python 3 library to access the system keyring service
Orion Poplawski aa0e98
BuildRequires:  python%{python3_pkgversion}-devel
Orion Poplawski aa0e98
BuildRequires:  python%{python3_pkgversion}-setuptools
Orion Poplawski aa0e98
BuildRequires:  python%{python3_pkgversion}-setuptools_scm
cf0f0d
%if 0%{?with_tests}
32bb17
BuildRequires:  python%{python3_pkgversion}-entrypoints
Orion Poplawski aa0e98
BuildRequires:  python%{python3_pkgversion}-pytest
Orion Poplawski aa0e98
BuildRequires:  python%{python3_pkgversion}-pytest-cov
Orion Poplawski aa0e98
BuildRequires:  python%{python3_pkgversion}-pytest-flakes
cf0f0d
%endif
Ratnadeep Debnath 22821d
cf070c
Requires:       python%{python3_pkgversion}-SecretStorage
32bb17
Requires:       python%{python3_pkgversion}-entrypoints
cf070c
Orion Poplawski aa0e98
%{?python_provide:%python_provide python%{python3_pkgversion}-keyring}
cf0f0d
Orion Poplawski aa0e98
%description -n python%{python3_pkgversion}-keyring
Orion Poplawski aa0e98
%desc
Ratnadeep Debnath 22821d
%endif
Ratnadeep Debnath 820dee
Ratnadeep Debnath 820dee
%prep
c407b8
%autosetup -p1 -n keyring-%{version}
352fec
rm -frv keyring.egg-info
8c2648
# Drop redundant shebangs.
Christopher Meng 48c57f
sed -i '1{\@^#!/usr/bin/env python@d}' keyring/cli.py
8c2648
# Drop slags from upstream of using his own versioning system.
8c2648
sed -i -e "\@use_vcs_version@s/^.*$/\tversion = \"%{version}\",/g" \
ecef05
       -e {/\'hgtools\'/d} setup.py
8c2648
Ratnadeep Debnath 820dee
%build
2eae74
%if 0%{?with_python2}
Orion Poplawski aa0e98
%py2_build
2eae74
%endif
Ratnadeep Debnath 22821d
%if 0%{?with_python3}
Orion Poplawski aa0e98
%py3_build
Ratnadeep Debnath 22821d
%endif
Ratnadeep Debnath 22821d
Ratnadeep Debnath 820dee
%install
2eae74
%if 0%{?with_python2}
2eae74
%py2_install
2eae74
mv %{buildroot}%{_bindir}/keyring %{buildroot}%{_bindir}/keyring-python2
2eae74
%endif
Ratnadeep Debnath 22821d
%if 0%{?with_python3}
Orion Poplawski aa0e98
%py3_install
2eae74
cp -a %{buildroot}%{_bindir}/keyring %{buildroot}%{_bindir}/keyring-python%{python3_pkgversion}
Ratnadeep Debnath 22821d
%endif
Christopher Meng 5e9c40
Christopher Meng 5e9c40
# Failed on Koji due to X environment not available.
cf0f0d
%check
cf0f0d
%if 0%{?with_tests}
cf0f0d
%if 0%{?with_python3}
cf0f0d
%{__python3} setup.py test
cf0f0d
nosetests-%{python3_version}
cf0f0d
%endif
2eae74
%if 0%{?with_python2}
cf0f0d
%{__python2} setup.py test
Orion Poplawski aa0e98
nosetests-%{python2_version}
cf0f0d
%endif
2eae74
%endif
Ratnadeep Debnath 820dee
2eae74
%if 0%{?with_python2}
Orion Poplawski aa0e98
%files -n python2-keyring
cf0f0d
%doc CHANGES.rst README.rst
2eae74
%{_bindir}/keyring-python2
Christopher Meng 5e9c40
%{python2_sitelib}/keyring
Christopher Meng 5e9c40
%{python2_sitelib}/keyring-%{version}-py%{python2_version}.egg-info
2eae74
%endif
Ratnadeep Debnath 22821d
Ratnadeep Debnath 22821d
%if 0%{?with_python3}
Orion Poplawski aa0e98
%files -n python%{python3_pkgversion}-keyring
cf0f0d
%doc CHANGES.rst README.rst
2eae74
%{_bindir}/keyring-python%{python3_pkgversion}
2eae74
%{_bindir}/keyring
Christopher Meng 5e9c40
%{python3_sitelib}/keyring-%{version}-py%{python3_version}.egg-info
Christopher Meng 5e9c40
%{python3_sitelib}/keyring
Ratnadeep Debnath 22821d
%endif
Ratnadeep Debnath 22821d
Ratnadeep Debnath 4d6f47
%changelog
ea2705
* Fri Sep 20 2019 Christopher Tubbs <ctubbsii@fedoraproject.org> - 19.2.0-1
ea2705
- new version 19.2.0 (rhbz#1751298)
ea2705
3f62ef
* Thu Aug 22 2019 Christopher Tubbs <ctubbsii@fedoraproject.org> - 19.1.0-1
3f62ef
- new version 19.1.0 (rhbz#1744382)
3f62ef
9a3f00
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0.2-3
9a3f00
- Rebuilt for Python 3.8
9a3f00
bfddd8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 19.0.2-2
bfddd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bfddd8
607d64
* Tue May 21 2019 Christopher Tubbs <ctubbsii@fedoraproject.org> - 19.0.2-1
607d64
- new version 19.0.2 (rhbz#1711472)
607d64
c546b5
* Thu May 09 2019 Orion Poplawski <orion@nwra.com> - 19.0.1-2
c546b5
- Drop BR on pytest-cache
c546b5
b9619a
* Thu Mar 28 2019 Christopher Tubbs <ctubbsii@fedoraproject.org> - 19.0.1-1
b9619a
- Update to 19.0.1 (rhbz#1691871)
b9619a
f63a78
* Fri Feb 08 2019 Yatin Karel <ykarel@redhat.com> - 17.1.1-1
f63a78
- Update to 17.1.1
f63a78
6c391f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 15.2.0-2
6c391f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6c391f
239414
* Tue Dec 11 2018 David King <amigadave@amigadave.com> - 15.2.0-1
239414
- Update to 15.2.0
239414
341ec7
* Thu Oct 18 2018 Miro Hrončok <mhroncok@redhat.com> - 13.2.1-4
341ec7
- Remove python2 subpackage from Fedora 30+
341ec7
0934d1
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 13.2.1-3
0934d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0934d1
32bb17
* Sat Jul 07 2018 Miro Hrončok <mhroncok@redhat.com> - 13.2.1-2
32bb17
- Add missing dependency on entrypoints (#1598998)
32bb17
516693
* Fri Jul 06 2018 Christopher Tubbs <ctubbsii@fedoraproject.org> - 13.2.1-1
516693
- Update to 13.2.1
516693
2eae74
* Thu Jul 05 2018 Christopher Tubbs <ctubbsii@fedoraproject.org> - 13.2.0-1
2eae74
- Update to 13.2.0
2eae74
0d4efc
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 11.0.0-4
0d4efc
- Rebuilt for Python 3.7
0d4efc
cf5a56
* Fri Mar 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 11.0.0-3
cf5a56
- Update Python 2 dependency declarations to new packaging standards
cf5a56
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
cf5a56
cb6d05
* Thu Mar 08 2018 Christopher Tubbs <ctubbsii@fedoraproject.org> - 11.0.0-2
cb6d05
- Remove unused BR pycryptopp (rhbz#1552676)
cb6d05
4167da
* Mon Mar  5 2018 Haïkel Guémar <hguemar@fedoraproject.org> - 11.0.0-1
4167da
- Upstream 11.0.0 (RHBZ#1539962)
4167da
c5d296
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 10.6.0-2
c5d296
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c5d296
3b4165
* Fri Jan 12 2018 Christopher Tubbs <ctubbsii@fedoraproject.org> - 10.6.0-1
3b4165
- Update to 10.6.0 (rhbz#1532092)
3b4165
d8e22e
* Thu Dec 21 2017 Christopher Tubbs <ctubbsii@fedoraproject.org> - 10.5.1-1
d8e22e
- Update to 10.5.1; fix AttributeError with kwallet backend (bz#1526653)
d8e22e
4e47a8
* Thu Nov 16 2017 Christopher Tubbs <ctubbsii@fedoraproject.org> - 10.5.0-1
4e47a8
- Update to 10.5.0; bz#1512519
4e47a8
9755ee
* Mon Aug 28 2017 Christopher Tubbs <ctubbsii@fedoraproject.org> - 10.4.0-2
9755ee
- Use python2-* naming conventions for *Requires
9755ee
ba3dc2
* Mon Aug 28 2017 Christopher Tubbs <ctubbsii@fedoraproject.org> - 10.4.0-1
ba3dc2
- Update to python-keyring 10.4.0 (bz#1464676)
ba3dc2
ef5814
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 10.3.2-3
ef5814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ef5814
c407b8
* Tue Apr 11 2017 Christopher Tubbs <ctubbsii@fedoraproject.org> - 10.3.2-2
c407b8
- Fix dependency on setuptools_scm for f25
c407b8
f72372
* Mon Apr 10 2017 Christopher Tubbs <ctubbsii@fedoraproject.org> - 10.3.2-1
f72372
- Update to python-keyring 10.3.2
f72372
ae18ec
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.0-7
ae18ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ae18ec
b7aceb
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 9.0-6
b7aceb
- Rebuild for Python 3.6
b7aceb
cf070c
* Wed Dec 21 2016 Christopher Tubbs <ctubbsii@fedoraproject.org> - 9.0-5
cf070c
- Add dependency on python-SecretStorage (bz#1328218,bz#1398710)
cf070c
781184
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 9.0-4
781184
- Rebuild for Python 3.6
781184
Orion Poplawski aa0e98
* Mon Nov 21 2016 Orion Poplawski <orion@cora.nwra.com> - 9.0-3
Orion Poplawski aa0e98
- Enable python 3 build for EPEL
Orion Poplawski aa0e98
- Ship python2-keyring
Orion Poplawski aa0e98
- Modernize spec
Orion Poplawski aa0e98
004dc3
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0-2
004dc3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
004dc3
cf0f0d
* Mon May 02 2016 Matthias Runge <mrunge@redhat.com> - 9.0-1
Orion Poplawski aa0e98
- update to 9.0, resolves rhbz#1271641, rhbz#1195985
cf0f0d
e5eb8b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-4
e5eb8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e5eb8b
Robert Kuska 96b17b
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 5.0-3
Robert Kuska 96b17b
- Rebuilt for Python3.5 rebuild
Robert Kuska 96b17b
7e94a7
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-2
7e94a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7e94a7
352fec
* Wed Feb 04 2015 Christopher Meng <rpm@cicku.me> - 5.0-1
352fec
- Update to 5.0
8c2648
- Revise license tag to match upstream.
352fec
311604
* Sat Aug 02 2014 Christopher Meng <rpm@cicku.me> - 4.0-1
311604
- Update to 4.0
311604
3d2428
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8-3
3d2428
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3d2428
e2bc1f
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 3.8-2
e2bc1f
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
e2bc1f
5804f2
* Tue May 13 2014 Christopher Meng <rpm@cicku.me> - 3.8-1
5804f2
- Update to 3.8
5804f2
fdfcbb
* Sat Mar 08 2014 Christopher Meng <rpm@cicku.me> - 3.6-1
fdfcbb
- Update to 3.6
fdfcbb
7ecd9f
* Thu Feb 13 2014 Christopher Meng <rpm@cicku.me> - 3.4-1
7ecd9f
- Update to 3.4(BZ#1064256)
7ecd9f
- Ensure the obsolete line works for the old packages really.
7ecd9f
Christopher Meng 5e9c40
* Mon Dec 02 2013 Christopher Meng <rpm@cicku.me> - 3.3-1
Christopher Meng 5e9c40
- Update to 3.3(BZ#1007354,BZ#872262)
Christopher Meng 5e9c40
- Cleanup dependencies mess(BZ#1030944).
Christopher Meng 5e9c40
- Optimize the %%changelog section of the spec.
Christopher Meng 5e9c40
Christopher Meng 5e9c40
* Tue Oct 22 2013 Ratnadeep Debnath <rtnpro@gmail.com> - 3.1-1
Ratnadeep Debnath 22821d
- Bump to version 3.1
fc952d
16af5d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-3
16af5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
16af5d
121bfb
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
121bfb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
121bfb
Christopher Meng 5e9c40
* Sat Jan 14 2012 Ratnadeep Debnath <rtnpro@gmail.com> 0.7-1
rtnpro 74f7c5
- Python 3 is now supported. All tests now pass under Python 3.2 on Windows and
rtnpro 74f7c5
Linux (although Linux backend support is limited). Fixes #28.
rtnpro 74f7c5
- Extension modules on Mac and Windows replaced by pure-Python ctypes
rtnpro 74f7c5
implementations. Thanks to Jérôme Laheurte.
rtnpro 74f7c5
- WinVaultKeyring now supports multiple passwords for the same service.
rtnpro 74f7c5
Fixes #47.
rtnpro 74f7c5
- Most of the tests don't require user interaction anymore.
rtnpro 74f7c5
- Entries stored in Gnome Keyring appears now with a meaningful name if you try
rtnpro 74f7c5
to browser your keyring (for ex. with Seahorse)
rtnpro 74f7c5
- Tests from Gnome Keyring no longer pollute the user own keyring.
rtnpro 74f7c5
- keyring.util.escape now accepts only unicode strings. Don't try to encode
rtnpro 74f7c5
strings passed to it.
3eb94f
Christopher Meng 5e9c40
* Tue Nov 08 2011 Ratnadeep Debnath <rtnpro@gmail.com> 0.6.2-1
rtnpro 74f7c5
- fix compiling on OSX with XCode 4.0
rtnpro 74f7c5
- Gnome keyring should not be used if there is no DISPLAY or if the dbus is not around
rtnpro 74f7c5
    (https://bugs.launchpad.net/launchpadlib/+bug/752282).
rtnpro 74f7c5
- Added keyring.http for facilitating HTTP Auth using keyring.
rtnpro 74f7c5
- Add a utility to access the keyring from the command line.
8fe606
Christopher Meng 5e9c40
* Mon Jan 10 2011 Ratnadeep Debnath <rtnpro@gmail.com> 0.5.1-1
Ratnadeep Debnath 4d6f47
- Remove a spurious KDE debug message when using KWallet
Ratnadeep Debnath 4d6f47
- Fix a bug that caused an exception if the user canceled the KWallet dialog
Ratnadeep Debnath 820dee
Christopher Meng 5e9c40
* Sun Nov 28 2010 Ratnadeep Debnath <rtnpro@gmail.com> 0.5-2
rtnpro 74f7c5
- Removed sub-packages: gnome and kwallet; removed "Requires: PyKDE4 PyQt4"
Ratnadeep Debnath 820dee
Christopher Meng 5e9c40
* Mon Nov 22 2010 Ratnadeep Debnath <rtnpro@gmail.com> 0.5-1
Ratnadeep Debnath 4d6f47
- RPM for keyring-0.5
Ratnadeep Debnath 820dee
Christopher Meng 5e9c40
* Mon Nov 01 2010 Ratnadeep Debnath <rtnpro@gmail.com> 0.4-1
Ratnadeep Debnath 820dee
- Updated rpm to python-keyring version 0.4
Ratnadeep Debnath 820dee
Christopher Meng 5e9c40
* Sat Oct 30 2010 Ratnadeep Debnath <rtnpro@gmail.com> 0.2-4
Ratnadeep Debnath 820dee
- Filtered gnome_keyring.so from the provides list, removed kdelibs-devel
Ratnadeep Debnath 820dee
Christopher Meng 5e9c40
* Sat Oct 02 2010 Ratnadeep Debnath <rtnpro@gmail.com> 0.2-3
Ratnadeep Debnath 820dee
- Updated dependencies to kdelibs4-devel, some cleanup
Ratnadeep Debnath 820dee
Christopher Meng 5e9c40
* Tue Aug 24 2010 Ratnadeep Debnath <rtnpro@gmail.com> 0.2-2
Ratnadeep Debnath 820dee
- Some updates according to bugzilla reviews
Ratnadeep Debnath 820dee
Christopher Meng 5e9c40
* Sat Jun 26 2010 Ratnadeep Debnath <rtnpro@gmail.com> 0.2-1.3
Ratnadeep Debnath 820dee
- Some cleanup
Ratnadeep Debnath 820dee
Ratnadeep Debnath 820dee
* Sat Jun 26 2010 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 0.2-1.2
Ratnadeep Debnath 820dee
- add KWallet subpackage
Ratnadeep Debnath 820dee
Ratnadeep Debnath 820dee
* Mon Jun 21 2010 Felix Schwarz <felix.schwarz@oss.schwarz.eu> 0.2-1.1
Ratnadeep Debnath 820dee
- add build dependencies
Ratnadeep Debnath 820dee
- create subpackage for gnome, disable KWallet for now
Ratnadeep Debnath 820dee
- look for files in arch-dependend site-packages
Ratnadeep Debnath 820dee
Christopher Meng 5e9c40
* Tue May 25 2010 Ratnadeep Debnath <rtnpro@gmail.com> 0.2-1
Ratnadeep Debnath 820dee
- Incorporated some changes with reference to http://vcrhonek.fedorapeople.org/python-keyring/python-keyring.spec
Ratnadeep Debnath 820dee
- Fixed some rpmlint errors
Ratnadeep Debnath 820dee
Christopher Meng 5e9c40
* Wed May 19 2010 Ratnadeep Debnath <rtnpro@gmail.com> 0.2
Ratnadeep Debnath 820dee
- Initial RPM package