From 5f9ca321522c6d4cc145971eba73e7f857d6cd75 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 4 Dec 2011 14:46:51 +0000 Subject: [PATCH] - new Changed files: python-keyring.spec -> 1.1 --- python-keyring.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 python-keyring.spec diff --git a/python-keyring.spec b/python-keyring.spec new file mode 100644 index 0000000..0b3ea44 --- /dev/null +++ b/python-keyring.spec @@ -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} -- 2.43.0