[packages/python-psycopg2] - cleanup
qboosh
qboosh at pld-linux.org
Sat Oct 4 11:57:39 CEST 2025
commit 52b76d95596edc3a684e7d1ffa0742c06cba3a87
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Oct 4 12:00:51 2025 +0200
- cleanup
python-psycopg2.spec | 29 ++++++++++-------------------
1 file changed, 10 insertions(+), 19 deletions(-)
---
diff --git a/python-psycopg2.spec b/python-psycopg2.spec
index 4d60c7e..8e07f5b 100644
--- a/python-psycopg2.spec
+++ b/python-psycopg2.spec
@@ -1,25 +1,20 @@
-# TODO:
-# - lib64 patch
-
-# Conditional build:
-
%define module psycopg2
Summary: psycopg is a PostgreSQL database adapter for Python
Summary(pl.UTF-8): psycopg jest przeznaczonym dla Pythona interfejsem do bazy PostgreSQL
Name: python-%{module}
+# keep 2.8.x here for python2 support
Version: 2.8.6
Release: 4
-License: GPL
+License: LGPL v3+ with OpenSSL exception
Group: Libraries/Python
-Source0: https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
+Source0: https://pypi.debian.net/psycopg2/%{module}-%{version}.tar.gz
# Source0-md5: ae2ff92f1cfcd890bd5f09f4d1d7d60c
-#Patch0: %{name}-lib64.patch
URL: https://www.psycopg.org/
-BuildRequires: rpmbuild(macros) >= 1.710
-BuildRequires: autoconf
+BuildRequires: rpmbuild(macros) >= 1.714
BuildRequires: postgresql-backend-devel
BuildRequires: postgresql-devel
-BuildRequires: python-devel >= 2.5
+BuildRequires: python-devel >= 1:2.7
+BuildRequires: python-setuptools
BuildRequires: rpm-pythonprov
%if "%{pld_release}" == "ac"
BuildRequires: python-mx-DateTime-devel
@@ -35,7 +30,7 @@ Requires: python-mx-DateTime
BuildConflicts: python-egenix-mx-base
%endif
Requires: postgresql-libs
-Requires: python-modules
+Requires: python-modules >= 1:2.7
Requires: python-pytz
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -55,15 +50,13 @@ psycopg jest, że w jest pełni zgodny z standardem DBAPI-2.0 i jest
%prep
%setup -q -n %{module}-%{version}
-#%if "%{_lib}" == "lib64"
-#%%patch0 -p1
-#%endif
%build
%py_build
%install
rm -rf $RPM_BUILD_ROOT
+
%py_install
%py_postclean
@@ -73,10 +66,8 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc NEWS AUTHORS doc/SUCCESS
+%doc AUTHORS LICENSE NEWS README.rst
%dir %{py_sitedir}/%{module}
%attr(755,root,root) %{py_sitedir}/%{module}/*.so
%{py_sitedir}/%{module}/*.py[co]
-%if "%{pld_release}" != "ac"
-%{py_sitedir}/*.egg-info
-%endif
+%{py_sitedir}/psycopg2-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-psycopg2.git/commitdiff/52b76d95596edc3a684e7d1ffa0742c06cba3a87
More information about the pld-cvs-commit
mailing list