Accepting request 19976 from home:adrianSuSE

Copy from home:adrianSuSE/python-keyring via accept of submit request 19976 revision 4.

OBS-URL: https://build.opensuse.org/request/show/19976
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-keyring?expand=0&rev=1
This commit is contained in:
2009-09-07 09:09:43 +00:00
committed by Git OBS Bridge
commit 7c6359dfa9
5 changed files with 98 additions and 0 deletions

66
python-keyring.spec Normal file
View File

@@ -0,0 +1,66 @@
%define modname keyring
Name: python-%{modname}
Version: 0.1
Release: 1
Summary: Python Library That Provides Access to KDE/Gnome/MacOS/Windows keyrings
URL: http://pypi.python.org/pypi/keyring
License: LGPL v2 or later
Group: Development/Libraries/Python
Source: %{modname}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires: python-devel libkde4-devel gnome-keyring-devel
Supplements: python-keyring-kde
Supplements: python-keyring-gnome
%description
Generic keyring library for python applications. It can be used standalone or with
wrapper plugins for KDE or Gnome.
%package kde
Summary: KDE KWallet support for python keyring
Group: Development/Libraries/Python
Requires: python-keyring
%description kde
This plugin enhances python keyring applications to use the KDE 4 Wallet system to
store passwords.
%package gnome
Summary: Gnome keyring support for python keyring
Group: Development/Libraries/Python
Requires: python-keyring
%description gnome
This plugin enhances python keyring applications to use the Gnome keyring system to
store passwords.
%prep
%setup -q -n %{modname}-%{version}
%build
CFLAGS="%{optflags}" \
%__python ./setup.py build
%install
%__python ./setup.py install \
--prefix="%{_prefix}" \
--root="%{buildroot}"
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README.txt
%py_libdir/site-packages/keyring*
%files kde
%defattr(-,root,root)
%py_libdir/site-packages/kde_kwallet.so
%files gnome
%defattr(-,root,root)
%py_libdir/site-packages/gnome_keyring.so