forked from pool/python-psycopg2
Accepting request 142768 from devel:languages:python3
Removed openSUSE 11.4 spec file workarounds (forwarded request 142750 from TheBlackCat) OBS-URL: https://build.opensuse.org/request/show/142768 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=35
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 22 13:47:34 UTC 2012 - toddrme2178@gmail.com
|
||||
|
||||
- Removed openSUSE 11.4 spec file workarounds
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 25 05:28:02 UTC 2012 - highwaystar.ru@gmail.com
|
||||
|
||||
|
@@ -28,16 +28,9 @@ BuildRequires: fdupes
|
||||
BuildRequires: postgresql-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-2to3
|
||||
Suggests: postgresql-server
|
||||
Recommends: postgresql-server
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} <= 1140
|
||||
%{!?python3_sitearch: %global python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
%{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)")}
|
||||
%endif
|
||||
Requires: python(abi) = %{py3_ver}
|
||||
%if 0%{?suse_version} && 0%{?suse_version} > 1140
|
||||
BuildRequires: python3-base
|
||||
%endif
|
||||
|
||||
%description
|
||||
psycopg2 is a PostgreSQL database adapter for the Python programming
|
||||
@@ -76,6 +69,7 @@ rm -rf %{buildroot}%{python_sitearch}/psycopg2/tests # Don't package testsuite
|
||||
%doc AUTHORS ChangeLog LICENSE NEWS PKG-INFO README
|
||||
%{python3_sitearch}/psycopg2
|
||||
%{python3_sitearch}/psycopg2-%{version}-py%{py3_ver}.egg-info
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc doc/html examples/
|
||||
|
Reference in New Issue
Block a user