[python-SecretStorage/el6] Initial SETUP.

Christopher Meng cicku at fedoraproject.org
Tue Nov 26 01:13:22 UTC 2013


commit 3efbece5a90dcfe90a70c13fa3d453635f4a5495
Author: Christopher Meng <rpm at cicku.me>
Date:   Tue Nov 26 09:12:06 2013 +0800

    Initial SETUP.

 .gitignore                |    1 +
 python-SecretStorage.spec |  133 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 135 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8f8f5f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/SecretStorage-1.1.0.tar.gz
diff --git a/python-SecretStorage.spec b/python-SecretStorage.spec
new file mode 100644
index 0000000..38635c0
--- /dev/null
+++ b/python-SecretStorage.spec
@@ -0,0 +1,133 @@
+#global bzr     83
+%global pkgname SecretStorage
+
+Name:           python-%{pkgname}
+Version:        1.1.0
+%if 0%{?bzr}
+Release:        0.1.bzr%{?bzr}%{?dist}
+%else
+Release:        1%{?dist}
+%endif
+Summary:        Python 2.x module for secure storing of passwords and secrets
+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://pypi.python.org/packages/source/S/%{pkgname}/%{pkgname}-%{version}.tar.gz
+%endif
+License:        BSD
+BuildArch:      noarch
+BuildRequires:  python-nose
+BuildRequires:  python2-devel
+# Building docs needed.
+BuildRequires:  dbus-python
+BuildRequires:  python-sphinx
+# Emulate the X environment.
+# BuildRequires:  xorg-x11-server-Xvfb
+Requires:       dbus-python
+
+%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     python3-%{pkgname}
+Summary:        Python 3.x module for secure storing of passwords and secrets
+BuildRequires:  python3-devel
+BuildRequires:  python3-nose
+# Tests only.
+BuildRequires:  python3-dbus
+Requires:       python3-dbus
+
+%description -n python3-%{pkgname}
+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        doc
+Summary:        Documentation for %{name}
+
+%description    doc
+Documentation for %{name}.
+
+%prep
+%if 0%{?bzr}
+%setup -qn python-secretstorage-bzr%{bzr}
+%else
+%setup -qn %{pkgname}-%{version}
+%endif
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+
+%build
+%{__python2} setup.py build
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%{__python2} setup.py build_sphinx
+
+%install
+%{__python2} setup.py install --prefix=%{_prefix} -O1 --skip-build --root=%{buildroot}
+pushd %{py3dir}
+%{__python3} setup.py install --prefix=%{_prefix} -O1 --skip-build --root=%{buildroot}
+popd
+find %{_builddir} -name '.buildinfo' -delete
+
+%check
+#pushd tests
+#PYTHONPATH=%{buildroot}%{python2_sitelib} xvfb-run -a nosetests-%{python2_version}
+#popd
+#pushd %{py3dir}
+#PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run -a nosetests-%{python3_version}
+#popd
+
+%files
+%doc changelog LICENSE README
+%{python2_sitelib}/%{pkgname}-%{version}-py%{python2_version}.egg-info
+%{python2_sitelib}/secretstorage
+
+%files -n python3-%{pkgname}
+%doc changelog LICENSE README
+%{python3_sitelib}/%{pkgname}-%{version}-py%{python3_version}.egg-info
+%{python3_sitelib}/secretstorage
+
+%files doc
+%doc changelog LICENSE README
+%doc build/sphinx/html/*
+
+%changelog
+* Wed Nov 20 2013 Christopher Meng <rpm at cicku.me> - 1.1.0-1
+- New version.
+
+* Fri Nov 15 2013 Christopher Meng <rpm at 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 at cicku.me> - 1.0.0-0.2.bzr83
+- Snapshot 83 rev to allow tests in mock.
+
+* Tue Oct 22 2013 Christopher Meng <rpm at cicku.me> - 1.0.0-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..23b6e59 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c7bfb4ebd312aa64b0e2005b809a21d3  SecretStorage-1.1.0.tar.gz


More information about the scm-commits mailing list