Accepting request 738373 from devel:languages:python

Replace %fdupes -s with plain %fdupes; hardlinks are better.

OBS-URL: https://build.opensuse.org/request/show/738373
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg2?expand=0&rev=31
This commit is contained in:
Dominique Leuenberger 2019-10-16 07:15:14 +00:00 committed by Git OBS Bridge
commit 6b147d076f
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 14 14:14:29 UTC 2019 - Matej Cepl <mcepl@suse.com>
- Replace %fdupes -s with plain %fdupes; hardlinks are better.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 4 15:02:11 UTC 2019 - Daniel Molkentin <daniel.molkentin@suse.com> Thu Jul 4 15:02:11 UTC 2019 - Daniel Molkentin <daniel.molkentin@suse.com>

View File

@ -22,7 +22,6 @@ Version: 2.8.3
Release: 0 Release: 0
Summary: Python-PostgreSQL Database Adapter Summary: Python-PostgreSQL Database Adapter
License: LGPL-3.0-or-later AND (LGPL-3.0-or-later OR ZPL-2.0) AND SUSE-GPL-2.0-with-openssl-exception License: LGPL-3.0-or-later AND (LGPL-3.0-or-later OR ZPL-2.0) AND SUSE-GPL-2.0-with-openssl-exception
Group: Development/Languages/Python
URL: http://initd.org/psycopg/ URL: http://initd.org/psycopg/
Source: https://files.pythonhosted.org/packages/source/p/psycopg2/psycopg2-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/psycopg2/psycopg2-%{version}.tar.gz
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
@ -30,7 +29,7 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: postgresql-devel >= 9.1 BuildRequires: postgresql-devel >= 9.1
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
BuildRequires: postgresql-server-devel BuildRequires: postgresql-server-devel
%endif %endif
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 %if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
@ -58,7 +57,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%install %install
%python_install %python_install
%python_expand rm -rf %{buildroot}%{$python_sitearch}/psycopg2/tests # Don't package testsuite %python_expand rm -rf %{buildroot}%{$python_sitearch}/psycopg2/tests # Don't package testsuite
%fdupes -s %{buildroot}/%{_mandir} # Create symlinks for man pages %fdupes %{buildroot}/%{_mandir} # Create symlinks for man pages
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%check %check