Accepting request 139855 from devel:languages:python

- Narrow the scops of fdupes (see bnc#784670)

- fix Obsoletes

OBS-URL: https://build.opensuse.org/request/show/139855
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-M2Crypto?expand=0&rev=7
This commit is contained in:
Stephan Kulow 2012-11-02 14:20:51 +00:00 committed by Git OBS Bridge
commit a49c740587
2 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Oct 31 13:09:21 UTC 2012 - saschpe@suse.de
- Narrow the scops of fdupes (see bnc#784670)
-------------------------------------------------------------------
Tue Jan 24 13:49:57 UTC 2012 - bwiedemann@suse.com
- fix Obsoletes
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 13 13:16:21 UTC 2011 - coolo@suse.com Tue Dec 13 13:16:21 UTC 2011 - coolo@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-M2Crypto # spec file for package python-M2Crypto
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: python-M2Crypto Name: python-M2Crypto
Version: 0.21.1 Version: 0.21.1
Release: 0 Release: 0
@ -37,8 +38,7 @@ BuildRequires: fdupes
%endif %endif
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Provides: python-m2crypto = %{version} Provides: python-m2crypto = %{version}
# TODO: Change <= back to = with new upstream release Obsoletes: python-m2crypto < %{version}
Obsoletes: python-m2crypto <= %{version}
%description %description
M2Crypto is a crypto and SSL toolkit for Python featuring the M2Crypto is a crypto and SSL toolkit for Python featuring the
@ -65,7 +65,7 @@ CFLAGS="%{optflags}" python setup.py build
chmod 0644 demo/{https.howto/get_https,ssl/twistedsslclient,ssl/twistedsslserver,tinderbox/slave,x509/certdata2pem}.py # Fix executable bit for documentation: chmod 0644 demo/{https.howto/get_https,ssl/twistedsslclient,ssl/twistedsslserver,tinderbox/slave,x509/certdata2pem}.py # Fix executable bit for documentation:
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%if 0%{?suse_version} > 1010 %if 0%{?suse_version} > 1010
%fdupes -s . %fdupes -s demo
%endif %endif
%files %files