%define module keyring Summary: Python library to access the system keyring service Name: python-%{module} Version: 0.6.2 Release: 2 Source0: http://pypi.python.org/packages/source/k/keyring/%{module}-%{version}.tar.gz # Source0-md5: b21b5783c375fc09abdc060b4edc062f License: Python Group: Development/Libraries URL: http://pypi.python.org/pypi/keyring BuildRequires: python-devel BuildRequires: rpmbuild(macros) >= 1.710 # CryptedFileKeyring Suggests: python-Crypto # KDEKWallet Suggests: python-PyKDE4 # GnomeKeyring Suggests: python-gnome-desktop-keyring 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 %py_build %install rm -rf $RPM_BUILD_ROOT %py_install %{__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 CHANGES.txt CONTRIBUTORS.txt README %{py_sitescriptdir}/%{module} %{py_sitescriptdir}/%{module}-*.egg-info %{_examplesdir}/%{name}-%{version}