python-psycopg2/python-psycopg2.spec

197 lines
6.3 KiB
RPMSpec
Raw Normal View History

# Python major version.
%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2007-04-26 19:23:58 +00:00
#%define ZPsycopgDAdir %{_localstatedir}/lib/zope/Products/ZPsycopgDA
Summary: A PostgreSQL database adapter for Python
Name: python-psycopg2
2009-05-19 19:23:33 +00:00
Version: 2.0.11
2009-03-19 22:26:34 +00:00
Release: 1%{?dist}
Source0: http://initd.org/pub/software/psycopg/psycopg2-%{version}.tar.gz
2008-05-29 20:19:03 +00:00
# The exceptions allow linking to OpenSSL and PostgreSQL's libpq
License: GPLv2+ with exceptions
Group: Applications/Databases
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Url: http://www.initd.org/software/initd/psycopg
BuildRequires: python-devel postgresql-devel
Requires: postgresql-libs
2007-04-26 19:23:58 +00:00
Obsoletes: python-psycopg2-zope <= 2.0.5.1-8
%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.
%package doc
Summary: Documentation for psycopg python PostgreSQL database adapter
Group: Documentation
Requires: %{name} = %{version}-%{release}
%description doc
Documentation and example files for the psycopg python PostgreSQL
database adapter.
2007-04-26 19:23:58 +00:00
#%package zope
#Summary: Zope Database Adapter ZPsycopgDA
2008-05-29 20:19:03 +00:00
# The exceptions allow linking to OpenSSL and PostgreSQL's libpq
#License: GPLv2+ with exceptions or ZPLv1.0
2007-04-26 19:23:58 +00:00
#Group: Applications/Databases
#Requires: %{name} = %{version}-%{release} zope
2007-04-26 19:23:58 +00:00
#%description zope
#Zope Database Adapter for PostgreSQL, called ZPsycopgDA
%prep
%setup -q -n psycopg2-%{version}
%build
python setup.py build
# Fix for wrong-file-end-of-line-encoding problem; upstream also must fix this.
for i in `find doc -iname "*.html"`; do sed -i 's/\r//' $i; done
for i in `find doc -iname "*.css"`; do sed -i 's/\r//' $i; done
%install
rm -Rf %{buildroot}
mkdir -p %{buildroot}%{python_sitearch}/psycopg2
python setup.py install --no-compile --root %{buildroot}
2007-04-26 19:23:58 +00:00
#install -d %{buildroot}%{ZPsycopgDAdir}
#cp -pr ZPsycopgDA/* %{buildroot}%{ZPsycopgDAdir}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
2009-05-19 19:35:50 +00:00
%doc AUTHORS ChangeLog INSTALL LICENSE README
%dir %{python_sitearch}/psycopg2
%{python_sitearch}/psycopg2/*.py
%{python_sitearch}/psycopg2/*.pyc
%{python_sitearch}/psycopg2/*.so
%{python_sitearch}/psycopg2/*.pyo
%{python_sitearch}/psycopg2-%{version}-py%{pyver}.egg-info
%files doc
%defattr(-,root,root)
%doc doc examples/
2007-04-26 19:23:58 +00:00
#%files zope
#%defattr(-,root,root)
#%dir %{ZPsycopgDAdir}
#%{ZPsycopgDAdir}/*.py
#%{ZPsycopgDAdir}/*.pyo
#%{ZPsycopgDAdir}/*.pyc
#%{ZPsycopgDAdir}/dtml/*
#%{ZPsycopgDAdir}/icons/*
%changelog
2009-05-19 19:23:33 +00:00
* Tue May 19 2009 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.11-1
- Update to 2.0.11
2009-04-20 22:12:17 +00:00
* Tue Apr 21 2009 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.10-1
- Update to 2.0.10
2009-03-19 22:30:18 +00:00
* Fri Mar 20 2009 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.9-1
2009-03-19 22:26:34 +00:00
- Update to 2.0.9
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-12-04 18:06:33 +00:00
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0.8-2
- Rebuild for Python 2.6
2008-11-29 17:37:45 +00:00
* Sat Nov 29 2008 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.8-1
- Update to 2.0.8
2009-03-19 22:26:34 +00:00
* Sat Nov 29 2008 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.8-1
- Update to 2.0.8
2008-11-29 15:52:19 +00:00
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0.7-3
- Rebuild for Python 2.6
2008-05-29 20:19:03 +00:00
* Thu May 29 2008 Todd Zullinger <tmz@pobox.com> - 2.0.7-2
- fix license tags
2008-04-30 14:26:31 +00:00
* Wed Apr 30 2008 Devrim GUNDUZ <devrim@commandprompt.com> 2.0.7-1
- Update to 2.0.7
2008-02-19 01:30:27 +00:00
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.6-4.1
- Autorebuild for GCC 4.3
2008-01-22 04:00:07 +00:00
* Mon Jan 21 2008 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.6-3.1
- Rebuilt against PostgreSQL 8.3
* Thu Jan 3 2008 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.6-3
- Rebuild for rawhide changes
2007-08-29 03:59:17 +00:00
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.0.6-2
- Rebuild for selinux ppc32 issue.
2007-06-15 11:41:58 +00:00
* Fri Jun 15 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.6-1
- Update to 2.0.6
2007-04-26 19:23:58 +00:00
* Thu Apr 26 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-8
- Disabled zope package temporarily.
2006-12-09 19:17:46 +00:00
* Wed Dec 6 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-7
2006-12-09 19:15:21 +00:00
- Rebuilt
* Wed Dec 6 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-5
- Bumped up spec version
2006-12-06 14:26:30 +00:00
* Wed Dec 6 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-4
- Rebuilt for PostgreSQL 8.2.0
* Mon Sep 11 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-3
- Rebuilt
* Wed Sep 6 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-2
- Remove ghost'ing, per Python Packaging Guidelines
2006-09-04 11:22:05 +00:00
* Mon Sep 4 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-1
- Update to 2.0.5.1
* Sun Aug 6 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.3-3
- Fixed zope package dependencies and macro definition, per bugzilla review (#199784)
- Fixed zope package directory ownership, per bugzilla review (#199784)
- Fixed cp usage for zope subpackage, per bugzilla review (#199784)
* Mon Jul 31 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.3-2
- Fixed 64 bit builds
- Fixed license
- Added Zope subpackage
- Fixed typo in doc description
- Added macro for zope subpackage dir
* Mon Jul 31 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.3-1
- Update to 2.0.3
- Fixed spec file, per bugzilla review (#199784)
* Sat Jul 22 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.2-3
- Removed python dependency, per bugzilla review. (#199784)
- Changed doc package group, per bugzilla review. (#199784)
- Replaced dos2unix with sed, per guidelines and bugzilla review (#199784)
- Fix changelog dates
* Sat Jul 21 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.2-2
- Added dos2unix to buildrequires
- removed python related part from package name
* Fri Jul 20 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.2-1
- Fix rpmlint errors, including dos2unix solution
- Re-engineered spec file
* Fri Jan 23 2006 - Devrim GUNDUZ <devrim@commandprompt.com>
- First 2.0.X build
* Fri Jan 23 2006 - Devrim GUNDUZ <devrim@commandprompt.com>
- Update to 1.2.21
* Tue Dec 06 2005 - Devrim GUNDUZ <devrim@commandprompt.com>
- Initial release for 1.1.20