- new auto/th/python-keyring-0_5_1-1
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 4 Dec 2011 14:46:51 +0000 (14:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-keyring.spec -> 1.1

python-keyring.spec [new file with mode: 0644]

diff --git a/python-keyring.spec b/python-keyring.spec
new file mode 100644 (file)
index 0000000..0b3ea44
--- /dev/null
@@ -0,0 +1,55 @@
+%define        module  keyring
+Summary:       Python library to access the system keyring service
+Name:          python-%{module}
+Version:       0.5.1
+Release:       1
+Source0:       http://pypi.python.org/packages/source/k/keyring/%{module}-%{version}.tar.gz
+# Source0-md5: a2f0dcea7185580c163ef2db1f4fbe0c
+License:       Python
+Group:         Development/Libraries
+URL:           http://pypi.python.org/pypi/keyring
+BuildRequires: python-devel
+BuildRequires: rpmbuild(macros) >= 1.219
+Obsoletes:     python-keyring-gnome < 0.5.1
+Obsoletes:     python-keyring-kwallet < 0.5.1
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Python keyring lib provides a easy way to access the system
+keyring service from python. It can be used in any application that
+needs safe password storage.
+
+This package only provides file-based pseudo-keyrings. To interface
+with gnome-keyring or KWallet, please install one of
+python-keyring-gnome or python-keyring-kwallet.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --skip-build \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}-*.egg-info
+%{_examplesdir}/%{name}-%{version}
This page took 0.150378 seconds and 4 git commands to generate.