[packages/python3-psycopg2] - up to 2.9.10
baggins
baggins at pld-linux.org
Sun Mar 23 19:55:17 CET 2025
commit 9a0da7d67b48c9960f19e2887a8b2ec213741508
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Mar 23 20:38:38 2025 +0100
- up to 2.9.10
python-psycopg2.spec | 130 --------------------------------------------------
python3-psycopg2.spec | 65 +++++++++++++++++++++++++
2 files changed, 65 insertions(+), 130 deletions(-)
---
diff --git a/python-psycopg2.spec b/python-psycopg2.spec
deleted file mode 100644
index bc4ce64..0000000
--- a/python-psycopg2.spec
+++ /dev/null
@@ -1,130 +0,0 @@
-# TODO:
-# - lib64 patch
-
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-%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}
-Version: 2.8.6
-Release: 3
-License: GPL
-Group: Libraries/Python
-Source0: https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
-# Source0-md5: ae2ff92f1cfcd890bd5f09f4d1d7d60c
-#Patch0: %{name}-lib64.patch
-URL: https://www.psycopg.org/
-BuildRequires: rpmbuild(macros) >= 1.710
-BuildRequires: autoconf
-BuildRequires: postgresql-backend-devel
-BuildRequires: postgresql-devel
-%{?with_python2:BuildRequires: python-devel >= 2.5}
-%{?with_python3:BuildRequires: python3-devel}
-BuildRequires: rpm-pythonprov
-Requires: postgresql-libs
-Requires: python-modules
-Requires: python-pytz
-%if "%{pld_release}" == "ac"
-BuildRequires: python-mx-DateTime-devel
-Requires: python-mx-DateTime
-%else
-# if somebody really needs mx.DateTime, then one can request mx.Datetime
-# usage on runtime;
-# it is pointless to use 'Requires' or 'Suggest' field because
-# - python provides its own datetime implementation
-# - one can request it on runtime (as said above)
-# - usage of mx.DateTime type is application specific
-# Sure, but make mx-DateTime conditional build work
-BuildConflicts: python-egenix-mx-base
-%endif
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-psycopg is a PostgreSQL database adapter for the Python programming
-language (just like pygresql and popy.) It was written from scratch
-with the aim of being very small and fast, and stable as a rock. The
-main advantages of psycopg are that it supports the full Python
-DBAPI-2.0 and being thread safe at level 2.
-
-%description -l pl.UTF-8
-psycopg jest przeznaczonym dla Pythona interfejsem do bazy danych
-PostgreSQL (tak jak pygresql i popy). Został zakodowany od początku z
-założeniem że ma być bardzo mały, szybki i stabilny. Główna zaletą
-psycopg jest, że w jest pełni zgodny z standardem DBAPI-2.0 i jest
-'thread safe' na poziomie 2.
-
-%package -n python3-%{module}
-Summary: psycopg is a PostgreSQL database adapter for Python
-Summary(pl.UTF-8): psycopg jest przeznaczonym dla Pythona interfejsem do bazy PostgreSQL
-Group: Libraries/Python
-Requires: python3-modules
-Requires: python3-pytz
-
-%description -n python3-%{module}
-psycopg is a PostgreSQL database adapter for the Python programming
-language (just like pygresql and popy.) It was written from scratch
-with the aim of being very small and fast, and stable as a rock. The
-main advantages of psycopg are that it supports the full Python
-DBAPI-2.0 and being thread safe at level 2.
-
-%description -n python3-%{module} -l pl.UTF-8
-psycopg jest przeznaczonym dla Pythona interfejsem do bazy danych
-PostgreSQL (tak jak pygresql i popy). Został zakodowany od początku z
-założeniem że ma być bardzo mały, szybki i stabilny. Główna zaletą
-psycopg jest, że w jest pełni zgodny z standardem DBAPI-2.0 i jest
-'thread safe' na poziomie 2.
-
-%prep
-%setup -q -n %{module}-%{version}
-#%if "%{_lib}" == "lib64"
-#%patch0 -p1
-#%endif
-
-%build
-%if %{with python2}
-%py_build
-%endif
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc NEWS AUTHORS doc/SUCCESS
-%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
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc NEWS AUTHORS doc/SUCCESS
-%dir %{py3_sitedir}/%{module}
-%dir %{py3_sitedir}/%{module}/__pycache__
-%attr(755,root,root) %{py3_sitedir}/%{module}/*.so
-%{py3_sitedir}/%{module}/*.py
-%{py3_sitedir}/%{module}/__pycache__/*.py*
-%{py3_sitedir}/*.egg-info
-%endif
diff --git a/python3-psycopg2.spec b/python3-psycopg2.spec
new file mode 100644
index 0000000..b1ae835
--- /dev/null
+++ b/python3-psycopg2.spec
@@ -0,0 +1,65 @@
+# TODO:
+# - lib64 patch
+
+%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: python3-%{module}
+Version: 2.9.10
+Release: 1
+License: GPL
+Group: Libraries/Python
+Source0: https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5: 3a1ed36b492a74789563577edc0b0689
+#Patch0: %{name}-lib64.patch
+URL: https://www.psycopg.org/
+BuildRequires: rpmbuild(macros) >= 1.710
+BuildRequires: autoconf
+BuildRequires: postgresql-backend-devel
+BuildRequires: postgresql-devel
+BuildRequires: python3-devel
+BuildRequires: rpm-pythonprov
+Requires: postgresql-libs
+Requires: python3-modules
+Requires: python3-pytz
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+psycopg is a PostgreSQL database adapter for the Python programming
+language (just like pygresql and popy.) It was written from scratch
+with the aim of being very small and fast, and stable as a rock. The
+main advantages of psycopg are that it supports the full Python
+DBAPI-2.0 and being thread safe at level 2.
+
+%description -l pl.UTF-8
+psycopg jest przeznaczonym dla Pythona interfejsem do bazy danych
+PostgreSQL (tak jak pygresql i popy). Został zakodowany od początku z
+założeniem że ma być bardzo mały, szybki i stabilny. Główna zaletą
+psycopg jest, że w jest pełni zgodny z standardem DBAPI-2.0 i jest
+'thread safe' na poziomie 2.
+
+%prep
+%setup -q -n %{module}-%{version}
+#%if "%{_lib}" == "lib64"
+#%patch0 -p1
+#%endif
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS AUTHORS doc/SUCCESS
+%dir %{py3_sitedir}/%{module}
+%dir %{py3_sitedir}/%{module}/__pycache__
+%attr(755,root,root) %{py3_sitedir}/%{module}/*.so
+%{py3_sitedir}/%{module}/*.py
+%{py3_sitedir}/%{module}/__pycache__/*.py*
+%{py3_sitedir}/*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-psycopg2.git/commitdiff/9a0da7d67b48c9960f19e2887a8b2ec213741508
More information about the pld-cvs-commit
mailing list