- up to 0.6.2, add suggests for possible backends
[packages/python-keyring.git] / python-keyring.spec
1 %define         module  keyring
2 Summary:        Python library to access the system keyring service
3 Name:           python-%{module}
4 Version:        0.6.2
5 Release:        1
6 Source0:        http://pypi.python.org/packages/source/k/keyring/%{module}-%{version}.tar.gz
7 # Source0-md5:  b21b5783c375fc09abdc060b4edc062f
8 License:        Python
9 Group:          Development/Libraries
10 URL:            http://pypi.python.org/pypi/keyring
11 BuildRequires:  python-devel
12 BuildRequires:  rpmbuild(macros) >= 1.219
13 # CryptedFileKeyring
14 Suggests:       python-Crypto
15 # KDEKWallet
16 Suggests:       python-PyKDE4
17 # GnomeKeyring
18 Suggests:       python-gnome-desktop-keyring
19 Obsoletes:      python-keyring-gnome < 0.5.1
20 Obsoletes:      python-keyring-kwallet < 0.5.1
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 The Python keyring lib provides a easy way to access the system
26 keyring service from python. It can be used in any application that
27 needs safe password storage.
28
29 This package only provides file-based pseudo-keyrings. To interface
30 with gnome-keyring or KWallet, please install one of
31 python-keyring-gnome or python-keyring-kwallet.
32
33 %prep
34 %setup -q -n %{module}-%{version}
35
36 %build
37 %{__python} setup.py build
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 %{__python} setup.py install \
42         --skip-build \
43         --optimize=2 \
44         --root=$RPM_BUILD_ROOT
45
46 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
47
48 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 cp -a demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
50
51 %py_postclean
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc CHANGES.txt CONTRIBUTORS.txt README
59 %{py_sitescriptdir}/%{module}
60 %{py_sitescriptdir}/%{module}-*.egg-info
61 %{_examplesdir}/%{name}-%{version}
This page took 0.056429 seconds and 3 git commands to generate.