2 Summary: Python library to access the system keyring service
6 Source0: http://pypi.python.org/packages/source/k/keyring/%{module}-%{version}.tar.gz
7 # Source0-md5: a2f0dcea7185580c163ef2db1f4fbe0c
9 Group: Development/Libraries
10 URL: http://pypi.python.org/pypi/keyring
11 BuildRequires: python-devel
12 BuildRequires: rpmbuild(macros) >= 1.219
13 Obsoletes: python-keyring-gnome < 0.5.1
14 Obsoletes: python-keyring-kwallet < 0.5.1
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 The Python keyring lib provides a easy way to access the system
20 keyring service from python. It can be used in any application that
21 needs safe password storage.
23 This package only provides file-based pseudo-keyrings. To interface
24 with gnome-keyring or KWallet, please install one of
25 python-keyring-gnome or python-keyring-kwallet.
28 %setup -q -n %{module}-%{version}
31 %{__python} setup.py build
34 rm -rf $RPM_BUILD_ROOT
35 %{__python} setup.py install \
38 --root=$RPM_BUILD_ROOT
40 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
42 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
43 cp -a demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %{py_sitescriptdir}/%{module}
54 %{py_sitescriptdir}/%{module}-*.egg-info
55 %{_examplesdir}/%{name}-%{version}