#3 [DO NOT MERGE] python2-secretstorage: Fork from python-SecretStorage (#1571015)
Closed 5 years ago by churchyard. Opened 5 years ago by churchyard.
rpms/ churchyard/python-SecretStorage py2only  into  master

file removed
-275
@@ -1,275 +0,0 @@ 

- #global bzr		83

- %global srcname SecretStorage

- 

- %if 0%{?fedora} || 0%{?rhel} > 7

- %global with_python3 1

- %else

- %global with_python3 0

- %endif

- 

- Name:			python-%{srcname}

- Version:		2.3.1

- %if 0%{?bzr}

- Release:		0.13.bzr%{?bzr}%{?dist}

- %else

- Release:		10%{?dist}

- %endif

- Summary:		Python bindings to FreeDesktop.org Secret Service API

- URL:			http://launchpad.net/python-secretstorage

- %if 0%{?bzr}

- # Bazaar revision 83 snapshot downloaded at 2013-11-15 from launchpad via:

- # bzr branch -r 83 lp:python-secretstorage python-secretstorage-bzr

- # pushd python-secretstorage-bzr

- # bzr export ../python-secretstorage-bzr83.tgz

- # popd

- Source0:		python-secretstorage-bzr%{bzr}.tgz

- %else

- Source0:		https://files.pythonhosted.org/packages/source/S/%{srcname}/%{srcname}-%{version}.tar.gz

- %endif

- License:		BSD

- BuildArch:		noarch

- 

- BuildRequires:	python2-nose

- BuildRequires:	python2-devel

- 

- # Needed for building docs.

- BuildRequires:	python2-sphinx

- 

- # Tests only.

- BuildRequires:	gnome-keyring

- BuildRequires:	python2-cryptography

- BuildRequires:	python2-dbus

- 

- # Emulate the X environment for the tests.

- BuildRequires:	xorg-x11-server-Xvfb

- BuildRequires:	dbus-x11

- 

- %if 0%{?with_python3}

- BuildRequires:	python3-devel

- BuildRequires:	python3-nose

- 

- # For python 3 tests.

- BuildRequires:	python3-dbus

- BuildRequires:	python3-cryptography

- %endif

- 

- %description

- This module provides a way for securely storing passwords and other secrets.

- 

- It uses D-Bus Secret Service API that is supported by GNOME Keyring (>= 2.30) 

- and KSecretsService.

- 

- The main classes provided are secretstorage.Item, representing a secret item 

- (that has a label, a secret and some attributes) and secretstorage.Collection,

- a place items are stored in.

- 

- SecretStorage supports most of the functions provided by Secret Service, 

- including creating and deleting items and collections, editing items, locking 

- and unlocking collections (asynchronous unlocking is also supported).

- 

- %package -n python2-%{srcname}

- Summary:		Python 2.x module for secure storing of passwords and secrets

- 

- Requires:		python2-dbus

- Requires:		python2-cryptography

- %if 0%{?fedora} || 0%{?rhel} > 7

- Recommends:		python2-gobject

- %endif

- 

- %{?python_provide:%python_provide python2-%{srcname}}

- 

- %description -n python2-%{srcname}

- This module provides a way for securely storing passwords and other secrets.

- 

- It uses D-Bus Secret Service API that is supported by GNOME Keyring (>= 2.30) 

- and KSecretsService.

- 

- The main classes provided are secretstorage.Item, representing a secret item 

- (that has a label, a secret and some attributes) and secretstorage.Collection,

- a place items are stored in.

- 

- SecretStorage supports most of the functions provided by Secret Service, 

- including creating and deleting items and collections, editing items, locking 

- and unlocking collections (asynchronous unlocking is also supported).

- 

- %if 0%{?with_python3}

- %package -n     python3-%{srcname}

- Summary:		Python 3.x module for secure storing of passwords and secrets

- 

- Requires:		python3-dbus

- Requires:		python3-cryptography

- Recommends:		python3-gobject

- 

- %{?python_provide:%python_provide python3-%{srcname}}

- 

- %description -n python3-%{srcname}

- This module provides a way for securely storing passwords and other secrets.

- 

- It uses D-Bus Secret Service API that is supported by GNOME Keyring (>= 2.30) 

- and KSecretsService.

- 

- The main classes provided are secretstorage.Item, representing a secret item 

- (that has a label, a secret and some attributes) and secretstorage.Collection,

- a place items are stored in.

- 

- SecretStorage supports most of the functions provided by Secret Service, 

- including creating and deleting items and collections, editing items, locking 

- and unlocking collections (asynchronous unlocking is also supported).

- %endif

- 

- %package -n python-%{srcname}-doc

- Summary:	SecretStorage documentation

- 

- %description -n python-%{srcname}-doc

- Documentation for SecretStorage

- 

- %prep

- %if 0%{?bzr}

- %setup -qn python-secretstorage-bzr%{bzr}

- %else

- %setup -qn %{srcname}-%{version}

- %endif

- %if 0%{?with_python3}

- rm -rf %{py3dir}

- cp -a . %{py3dir}

- %endif

- 

- # Remove bundled egg info

- rm -rf %{srcname}.egg-info

- # Remove .gitignore file

- rm .gitignore

- 

- %build

- %py2_build

- %if 0%{?with_python3}

- pushd %{py3dir}

- %py3_build

- popd

- %endif

- 

- # Build the documentation

- %{__python2} setup.py build_sphinx

- 

- %install

- %py2_install

- %if 0%{?with_python3}

- pushd %{py3dir}

- %py3_install

- popd

- %endif

- 

- # Remove unnecessary files generated by python-sphinx

- find %{_builddir} -name '.buildinfo' -delete -print

- find %{_builddir} -name 'doctrees' -type d -print -exec rm -r '{}' +

- 

- %check

- pushd tests

- PYTHONPATH=%{buildroot}%{python2_sitelib} xvfb-run -a %{__python2} -m unittest discover

- popd

- %if 0%{?with_python3}

- pushd %{py3dir}

- PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run -a %{__python3} -m unittest discover

- popd

- %endif

- 

- %files -n python2-%{srcname}

- %doc docs changelog README.rst

- %license LICENSE

- %{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info

- %{python2_sitelib}/secretstorage

- 

- %if 0%{?with_python3}

- %files -n python3-%{srcname}

- %doc docs changelog README.rst

- %license LICENSE

- %{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info

- %{python3_sitelib}/secretstorage

- %endif

- 

- %files -n python-%{srcname}-doc

- %doc build/sphinx/html/*

- 

- %changelog

- * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-10

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

- 

- * Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-9

- - Rebuilt for Python 3.7

- 

- * Mon Mar 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.3.1-8

- - Update Python 2 dependency declarations to new packaging standards

-   (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

- 

- * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-7

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

- 

- * Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 2.3.1-6

- - Cleanup spec file conditionals

- 

- * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-5

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

- 

- * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-4

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

- 

- * Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-3

- - Rebuild for Python 3.6

- 

- * Fri Nov 25 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.3.1-2

- - Use python-cryptography instead of python-crypto as runtime requirement

- 

- * Sun Aug 28 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.3.1-1

- - Update to 2.3.1

- - Replace python-crypto BuildRequires with python-cryptography

- 

- * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2

- - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

- 

- * Tue Jul 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.2.1-1

- - Update to 2.2.1

- 

- * Mon May 16 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.1.4-1

- - Update to 2.1.4

- - Provide a python 2 subpackage

- - Use python provides macros

- - Use newest python macros

- - Added license tag

- - Enabled tests

- - Added missing dependencies

- 

- * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

- 

- * Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2

- - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5

- 

- * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

- 

- * Thu Jul 17 2014 Christopher Meng <rpm@cicku.me> - 2.1.1-1

- - Update to 2.1.1

- 

- * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2

- - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

- 

- * Thu May 29 2014 Christopher Meng <rpm@cicku.me> - 2.1.0-1

- - Update to 2.1.0

- 

- * Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 2.0.0-2

- - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4

- 

- * Sun Mar 30 2014 Christopher Meng <rpm@cicku.me> - 2.0.0-1

- - Update to 2.0.0

- 

- * Wed Nov 20 2013 Christopher Meng <rpm@cicku.me> - 1.1.0-1

- - Update to 1.1.0

- 

- * Fri Nov 15 2013 Christopher Meng <rpm@cicku.me> - 1.0.0-0.3.bzr83

- - Add license for doc package.

- - Disable tests not runnable in Koji.

- 

- * Fri Nov 15 2013 Christopher Meng <rpm@cicku.me> - 1.0.0-0.2.bzr83

- - Snapshot 83 rev to allow tests in mock.

- 

- * Tue Oct 22 2013 Christopher Meng <rpm@cicku.me> - 1.0.0-1

- - Initial Package.

@@ -0,0 +1,182 @@ 

+ %global srcname SecretStorage

+ 

+ Name:			python2-secretstorage

+ Version:		2.3.1

+ Release:		11%{?dist}

+ Summary:		Python 2 bindings to FreeDesktop.org Secret Service API

+ URL:			https://github.com/mitya57/secretstorage

+ Source0:		%pypi_source

+ License:		BSD

+ BuildArch:		noarch

+ 

+ BuildRequires:	python2-nose

+ BuildRequires:	python2-devel

+ 

+ # Needed for building docs.

+ BuildRequires:	python2-sphinx

+ 

+ # Tests only.

+ BuildRequires:	gnome-keyring

+ BuildRequires:	python2-cryptography

+ BuildRequires:	python2-dbus

+ 

+ # Emulate the X environment for the tests.

+ BuildRequires:	xorg-x11-server-Xvfb

+ BuildRequires:	dbus-x11

+ 

+ Requires:		python2-dbus

+ Requires:		python2-cryptography

+ %if 0%{?fedora} || 0%{?rhel} > 7

+ Recommends:		python2-gobject

+ %endif

+ 

+ %{?python_provide:%python_provide python2-secretstorage}

+ %{?python_provide:%python_provide python2-%{srcname}}

+ Provides:		python2-%{srcname} = %{version}-%{release}

+ Obsoletes:		python2-%{srcname} < 2.3.1-11

+ 

+ %description

+ This module provides a way for securely storing passwords and other secrets.

+ 

+ It uses D-Bus Secret Service API that is supported by GNOME Keyring (>= 2.30) 

+ and KSecretsService.

+ 

+ The main classes provided are secretstorage. Item, representing a secret item 

+ (that has a label, a secret and some attributes) and secretstorage.Collection,

+ a place items are stored in.

+ 

+ SecretStorage supports most of the functions provided by Secret Service, 

+ including creating and deleting items and collections, editing items, locking 

+ and unlocking collections (asynchronous unlocking is also supported).

+ 

+ %package -n python2-secretstorage-doc

+ Summary:	SecretStorage documentation

+ %{?python_provide:%python_provide python2-secretstorage-doc}

+ %{?python_provide:%python_provide python2-%{srcname}-doc}

+ Obsoletes:		python-%{srcname}-doc < 2.3.1-11

+ 

+ %description -n python2-secretstorage-doc

+ Documentation for SecretStorage

+ 

+ %prep

+ %setup -qn %{srcname}-%{version}

+ 

+ # Remove bundled egg info

+ rm -rf %{srcname}.egg-info

+ # Remove .gitignore file

+ rm .gitignore

+ 

+ %build

+ %py2_build

+ 

+ # Build the documentation

+ %{__python2} setup.py build_sphinx

+ 

+ %install

+ %py2_install

+ 

+ # Remove unnecessary files generated by python-sphinx

+ find %{_builddir} -name '.buildinfo' -delete -print

+ find %{_builddir} -name 'doctrees' -type d -print -exec rm -r '{}' +

+ 

+ %check

+ pushd tests

+ PYTHONPATH=%{buildroot}%{python2_sitelib} xvfb-run -a %{__python2} -m unittest discover

+ popd

+ 

+ %files

+ %doc docs changelog README.rst

+ %license LICENSE

+ %{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info

+ %{python2_sitelib}/secretstorage

+ 

+ %files -n python2-secretstorage-doc

+ %doc build/sphinx/html/*

+ 

+ %changelog

+ * Mon Sep 24 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-11

+ - Fork from python-SecretStorage (#1571015)

+ 

+ * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-10

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

+ 

+ * Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-9

+ - Rebuilt for Python 3.7

+ 

+ * Mon Mar 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.3.1-8

+ - Update Python 2 dependency declarations to new packaging standards

+   (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

+ 

+ * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-7

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

+ 

+ * Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 2.3.1-6

+ - Cleanup spec file conditionals

+ 

+ * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-5

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

+ 

+ * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-4

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

+ 

+ * Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-3

+ - Rebuild for Python 3.6

+ 

+ * Fri Nov 25 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.3.1-2

+ - Use python-cryptography instead of python-crypto as runtime requirement

+ 

+ * Sun Aug 28 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.3.1-1

+ - Update to 2.3.1

+ - Replace python-crypto BuildRequires with python-cryptography

+ 

+ * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2

+ - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

+ 

+ * Tue Jul 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.2.1-1

+ - Update to 2.2.1

+ 

+ * Mon May 16 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.1.4-1

+ - Update to 2.1.4

+ - Provide a python 2 subpackage

+ - Use python provides macros

+ - Use newest python macros

+ - Added license tag

+ - Enabled tests

+ - Added missing dependencies

+ 

+ * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

+ 

+ * Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2

+ - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5

+ 

+ * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

+ 

+ * Thu Jul 17 2014 Christopher Meng <rpm@cicku.me> - 2.1.1-1

+ - Update to 2.1.1

+ 

+ * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

+ 

+ * Thu May 29 2014 Christopher Meng <rpm@cicku.me> - 2.1.0-1

+ - Update to 2.1.0

+ 

+ * Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 2.0.0-2

+ - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4

+ 

+ * Sun Mar 30 2014 Christopher Meng <rpm@cicku.me> - 2.0.0-1

+ - Update to 2.0.0

+ 

+ * Wed Nov 20 2013 Christopher Meng <rpm@cicku.me> - 1.1.0-1

+ - Update to 1.1.0

+ 

+ * Fri Nov 15 2013 Christopher Meng <rpm@cicku.me> - 1.0.0-0.3.bzr83

+ - Add license for doc package.

+ - Disable tests not runnable in Koji.

+ 

+ * Fri Nov 15 2013 Christopher Meng <rpm@cicku.me> - 1.0.0-0.2.bzr83

+ - Snapshot 83 rev to allow tests in mock.

+ 

+ * Tue Oct 22 2013 Christopher Meng <rpm@cicku.me> - 1.0.0-1

+ - Initial Package.

this needs a separate dist-git repo

@ctubbsii
@apevec
@cicku
@ignatenkobrain
@rtnpro

You are the maintainers of python-keyring. Would any of you maintain python2-secretstorage?

@cicku is no active maintainer any more, there's a ticket and recent discussion (I fail currently to remember the details). We shouldn't count on this maintainer.

Heh, a pull-request is a weird way to open dialogues here. I guess it's the best option, since regular (non-pull request) issues are disabled on this Pagure instance.

I'm willing to help maintain python-SecretStorage, but I think the python2 subpackage should be dropped. I'm trying to drop python2 support across all my packages.

python2-keyring needs python2-SecretStorage. Lots of stuff need python2-keyring.

http://fedora.portingdb.xyz/pkg/python-keyring/

python-SecretStorage cannot be updated without dropping python2 subpackage.

Hence, a python2-SecretStorage source package needs to be introduced. I'd rather not introduce it just to orphan it immediately, hence I'm looking for maintainers.

That said, if nobody want's it, I'll do it that way.

CCing maintainers of packages depending on python2-keyring.

@mhayden @jruzicka @apevec @melmorabity @mbaldessari @ralph

also @lupinix (but I guess python2-astroquery should just be dropped right away)

I understand now. I think it's probably best to drop both python2-keyring and python2-SecretStorage, rather than create a new source package for it at all. Thanks for tagging the other maintainers. That was a good idea.

I'm fine with dropping the python2 packages. I'll just remove the python2 subpackage from python-astroquery then, I'd do this anyway as I started to remove python2 subpackages from whole astropy package stack.

(I've sent an e-mail to all the mentioned accounts in case somebody doesn't have working notifications.) I suppose we should wait another ~week before taking any action (unless somebody adopts python2-SecretStorage sooner).

Pull-Request has been closed by churchyard

5 years ago