From 20121814317a43bcfab80d42cca960265202ef76 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 09 2014 09:11:36 +0000 Subject: import python27-python-psycopg2-2.5.1-2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1fbca7a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/psycopg2-2.5.1.tar.gz diff --git a/.python27-python-psycopg2.metadata b/.python27-python-psycopg2.metadata new file mode 100644 index 0000000..00fcef4 --- /dev/null +++ b/.python27-python-psycopg2.metadata @@ -0,0 +1 @@ +92d18a9e33f86e83c0e2787598f183759159d79a SOURCES/psycopg2-2.5.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/python-psycopg2.spec b/SPECS/python-psycopg2.spec new file mode 100644 index 0000000..ee460d7 --- /dev/null +++ b/SPECS/python-psycopg2.spec @@ -0,0 +1,275 @@ +%{?scl:%scl_package python-psycopg2} +%{!?scl:%global pkg_name %{name}} + +%global srcname psycopg2 + + +Summary: A PostgreSQL database adapter for Python +Name: %{?scl_prefix}python-psycopg2 +Version: 2.5.1 +Release: 2%{?dist} +# The exceptions allow linking to OpenSSL and PostgreSQL's libpq +License: LGPLv3+ with exceptions +Group: Applications/Databases +Url: http://www.initd.org/psycopg/ + +Source0: http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-%{version}.tar.gz + +BuildRequires: postgresql-devel +BuildRequires: %{?scl_prefix}python2-devel +BuildRequires: %{?scl_prefix}python-setuptools +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +Psycopg is the most popular PostgreSQL adapter for the Python +programming language. At its core it fully implements the Python DB +API 2.0 specifications. Several extensions allow access to many of the +features offered by PostgreSQL. + +%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. + +%prep +%setup -q -n %{srcname}-%{version} + +%build +%{?scl:scl enable %{scl} "} +%{__python} setup.py build +%{?scl:"} + +# 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 + +# Get rid of a "hidden" file that rpmlint complains about +rm -f doc/html/.buildinfo + + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{python_sitearch}/psycopg2 +%{?scl:scl enable %{scl} "} +%{__python} setup.py install --no-compile --root %{buildroot} +%{?scl:"} +rm -rf %{buildroot}%{python_sitearch}/psycopg2/tests + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root) +%doc AUTHORS LICENSE NEWS README +%{python_sitearch}/psycopg2/ +%{python_sitearch}/psycopg2/*.pyc +%{python_sitearch}/psycopg2/*.pyo +%{python_sitearch}/psycopg2/*.py +%{python_sitearch}/psycopg2/_psycopg.so +%{python_sitearch}/psycopg2-%{version}-py?.?.egg-info + +%files doc +%defattr(-,root,root) +%doc doc examples/ + + +%changelog +* Thu Nov 07 2013 Robert Kuska - 2.5.1-2 +- Update to 2.5.1 +- Increase release number to avoid conflict with rhel-7.0 + +* Tue May 07 2013 Bohuslav Kabrda - 2.4.5-9 +- Rebuild to generate bytecode properly after fixing rhbz#956289 + +* Thu Apr 25 2013 Robert Kuska - 2.4.5-8 +- Rebuilt for SCL +- Using optimize=2 to generate pyo files because of bug in scl + +* Thu Feb 14 2013 Fedora Release Engineering - 2.4.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Aug 04 2012 David Malcolm - 2.4.5-6 +- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3 + +* Fri Aug 3 2012 David Malcolm - 2.4.5-5 +- generalize python 3 fileglobbing to work with both Python 3.2 and 3.3 + +* Fri Aug 3 2012 David Malcolm - 2.4.5-4 +- replace "python3.2dmu" with "python3-debug"; with_python3 fixes + +* Fri Aug 3 2012 David Malcolm - 2.4.5-3 +- add with_python3 conditional + +* Sat Jul 21 2012 Fedora Release Engineering - 2.4.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Apr 7 2012 Tom Lane 2.4.5-1 +- Update to 2.4.5 + +* Thu Feb 2 2012 Tom Lane 2.4.4-1 +- Update to 2.4.4 +- More specfile neatnik-ism + +* Sat Jan 14 2012 Fedora Release Engineering - 2.4.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Nov 29 2011 Tom Lane 2.4.2-2 +- Fix mistaken %%dir marking on python3 files, per Dan Horak + +* Sat Jun 18 2011 Tom Lane 2.4.2-1 +- Update to 2.4.2 +Related: #711095 +- Some neatnik specfile cleanups + +* Thu Feb 10 2011 David Malcolm - 2.4-0.beta2 +- 2.4.0-beta2 +- add python 2 debug, python3 (optimized) and python3-debug subpackages + +* Tue Feb 08 2011 Fedora Release Engineering - 2.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 29 2010 Tom Lane 2.3.2-1 +- Update to 2.3.2 +- Clean up a few rpmlint warnings + +* Fri Dec 03 2010 Jason L Tibbitts III - 2.2.2-3 +- Fix incorrect (and invalid) License: tag. + +* Thu Jul 22 2010 David Malcolm - 2.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Tue Jul 20 2010 Devrim GUNDUZ - 2.2.2-1 +- Update to 2.2.2 + +* Tue May 18 2010 Devrim GUNDUZ - 2.2.1-1 +- Update to 2.2.1 +- Improve description for 2.2 features. +- Changelog for 2.2.0 is: + http://initd.org/pub/software/psycopg/ChangeLog-2.2 + +* Wed Mar 17 2010 Devrim GUNDUZ - 2.0.14-1 +- Update to 2.0.14 +- Update license (upstream switched to LGPL3) + +* Sun Jan 24 2010 Tom Lane 2.0.13-2 +- Fix rpmlint complaints: remove unneeded explicit Requires:, use Conflicts: + instead of bogus Obsoletes: to indicate lack of zope subpackage + +* Sun Oct 18 2009 Devrim GUNDUZ - 2.0.13-1 +- Update to 2.0.13 + +* Fri Aug 14 2009 Devrim GUNDUZ - 2.0.12-1 +- Update to 2.0.12 + +* Sun Jul 26 2009 Fedora Release Engineering - 2.0.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue May 19 2009 Devrim GUNDUZ - 2.0.11-1 +- Update to 2.0.11 + +* Tue Apr 21 2009 Devrim GUNDUZ - 2.0.10-1 +- Update to 2.0.10 + +* Fri Mar 20 2009 Devrim GUNDUZ - 2.0.9-1 +- Update to 2.0.9 + +* Thu Feb 26 2009 Fedora Release Engineering - 2.0.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Dec 04 2008 Ignacio Vazquez-Abrams - 2.0.8-2 +- Rebuild for Python 2.6 + +* Sat Nov 29 2008 Devrim GUNDUZ - 2.0.8-1 +- Update to 2.0.8 + +* Sat Nov 29 2008 Devrim GUNDUZ - 2.0.8-1 +- Update to 2.0.8 + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 2.0.7-3 +- Rebuild for Python 2.6 + +* Thu May 29 2008 Todd Zullinger - 2.0.7-2 +- fix license tags + +* Wed Apr 30 2008 Devrim GUNDUZ 2.0.7-1 +- Update to 2.0.7 + +* Mon Feb 18 2008 Fedora Release Engineering - 2.0.6-4.1 +- Autorebuild for GCC 4.3 + +* Mon Jan 21 2008 - Devrim GUNDUZ 2.0.6-3.1 +- Rebuilt against PostgreSQL 8.3 + +* Thu Jan 3 2008 - Devrim GUNDUZ 2.0.6-3 +- Rebuild for rawhide changes + +* Tue Aug 28 2007 Fedora Release Engineering - 2.0.6-2 +- Rebuild for selinux ppc32 issue. + +* Fri Jun 15 2007 - Devrim GUNDUZ 2.0.6-1 +- Update to 2.0.6 + +* Thu Apr 26 2007 - Devrim GUNDUZ 2.0.5.1-8 +- Disabled zope package temporarily. + +* Wed Dec 6 2006 - Devrim GUNDUZ 2.0.5.1-7 +- Rebuilt + +* Wed Dec 6 2006 - Devrim GUNDUZ 2.0.5.1-5 +- Bumped up spec version + +* Wed Dec 6 2006 - Devrim GUNDUZ 2.0.5.1-4 +- Rebuilt for PostgreSQL 8.2.0 + +* Mon Sep 11 2006 - Devrim GUNDUZ 2.0.5.1-3 +- Rebuilt + +* Wed Sep 6 2006 - Devrim GUNDUZ 2.0.5.1-2 +- Remove ghost'ing, per Python Packaging Guidelines + +* Mon Sep 4 2006 - Devrim GUNDUZ 2.0.5.1-1 +- Update to 2.0.5.1 + +* Sun Aug 6 2006 - Devrim GUNDUZ 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 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 2.0.3-1 +- Update to 2.0.3 +- Fixed spec file, per bugzilla review (#199784) + +* Sat Jul 22 2006 - Devrim GUNDUZ 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 2.0.2-2 +- Added dos2unix to buildrequires +- removed python related part from package name + +* Fri Jul 20 2006 - Devrim GUNDUZ 2.0.2-1 +- Fix rpmlint errors, including dos2unix solution +- Re-engineered spec file + +* Fri Jan 23 2006 - Devrim GUNDUZ +- First 2.0.X build + +* Fri Jan 23 2006 - Devrim GUNDUZ +- Update to 1.2.21 + +* Tue Dec 06 2005 - Devrim GUNDUZ +- Initial release for 1.1.20