14
0

- Simplify macro usage

- Remove outdated SUSE version checks

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=30
This commit is contained in:
Sascha Peilicke
2012-03-12 21:10:00 +00:00
committed by Git OBS Bridge
parent c5473c2619
commit 726e886b27
2 changed files with 10 additions and 9 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 12 21:10:27 UTC 2012 - saschpe@gmx.de
- Simplify macro usage
- Remove outdated SUSE version checks
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 13 10:54:08 UTC 2012 - coolo@suse.com Mon Feb 13 10:54:08 UTC 2012 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-psycopg2 # spec file for package python-psycopg2
# #
# 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
@@ -23,17 +23,14 @@ Url: http://initd.org/psycopg/
Summary: Python-PostgreSQL Database Adapter Summary: Python-PostgreSQL Database Adapter
License: LGPL-3.0+ or ZPL-2.0 License: LGPL-3.0+ or ZPL-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Source: psycopg2-%{version}.tar.gz Source: http://pypi.python.org/packages/source/p/psycopg2/psycopg2-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: postgresql-devel BuildRequires: postgresql-devel
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1010
BuildRequires: fdupes BuildRequires: fdupes
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif %endif
%endif
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description %description
psycopg2 is a PostgreSQL database adapter for the Python programming psycopg2 is a PostgreSQL database adapter for the Python programming
@@ -64,10 +61,8 @@ rm -rf doc/src doc/html/.buildinfo # Remove junk
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -rf %{buildroot}%{python_sitearch}/psycopg2/tests # Don't package testsuite rm -rf %{buildroot}%{python_sitearch}/psycopg2/tests # Don't package testsuite
%if 0%{?suse_version} > 1010
%fdupes -s %{buildroot}/%_mandir # Create symlinks for man pages %fdupes -s %{buildroot}/%_mandir # Create symlinks for man pages
%fdupes %{buildroot} # Create hardlinks for the rest %fdupes %{buildroot} # Create hardlinks for the rest
%endif
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)