- Bring back kde and gnome sub-packages, this time with proper requires

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-keyring?expand=0&rev=12
This commit is contained in:
Sascha Peilicke 2013-03-22 14:01:43 +00:00 committed by Git OBS Bridge
parent 00212740b3
commit edb16aae4a
2 changed files with 40 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 22 13:59:27 UTC 2013 - speilicke@suse.com
- Bring back kde and gnome sub-packages, this time with proper requires
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 11 09:19:27 UTC 2013 - saschpe@suse.de Mon Feb 11 09:19:27 UTC 2013 - saschpe@suse.de

View File

@ -32,10 +32,6 @@ BuildRequires: python-mock
BuildRequires: python-nose BuildRequires: python-nose
BuildRequires: python-pytest-runner BuildRequires: python-pytest-runner
BuildRequires: python-unittest2 BuildRequires: python-unittest2
Provides: python-keyring-kde = %{version}
Obsoletes: python-keyring-kde < %{version}
Provides: python-keyring-gnome = %{version}
Obsoletes: python-keyring-gnome < %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 %if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else %else
@ -46,6 +42,30 @@ BuildArch: noarch
The Python keyring lib provides a easy way to access the system keyring service 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. from python. It can be used in any application that needs safe password storage.
%package gnome
Summary: Store and access your passwords safely - Gnome backend
Group: Development/Languages/Python
Requires: %{name} = %{version}
Requires: python-gnomekeyring
%description gnome
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 contains the Gnome (kwallet) backend.
%package kde
Summary: Store and access your passwords safely - KDE backend
Group: Development/Languages/Python
Requires: %{name} = %{version}
Requires: python-kde4
%description kde
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 contains the KDE (kwallet) backend.
%prep %prep
%setup -q -n keyring-%{version} %setup -q -n keyring-%{version}
# For rpmlint warning: remove shebang from python library: # For rpmlint warning: remove shebang from python library:
@ -56,6 +76,7 @@ python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -r %{buildroot}%{python_sitelib}/keyring/tests # Don't ship testsuite
%check %check
nosetests nosetests
@ -65,5 +86,15 @@ nosetests
%doc CONTRIBUTORS.txt README.rst CHANGES.rst %doc CONTRIBUTORS.txt README.rst CHANGES.rst
%{_bindir}/keyring %{_bindir}/keyring
%{python_sitelib}/* %{python_sitelib}/*
%exclude %{python_sitelib}/keyring/backends/Gnome.py*
%exclude %{python_sitelib}/keyring/backends/kwallet.py*
%files gnome
%defattr(-,root,root)
%{python_sitelib}/keyring/backends/Gnome.py*
%files kde
%defattr(-,root,root)
%{python_sitelib}/keyring/backends/kwallet.py*
%changelog %changelog