Blame SPECS/python-psycopg2.spec

201218
%{?scl:%scl_package python-psycopg2}
201218
%{!?scl:%global pkg_name %{name}}
201218
201218
%global srcname psycopg2
201218
201218
201218
Summary:    A PostgreSQL database adapter for Python
201218
Name:       %{?scl_prefix}python-psycopg2
201218
Version:    2.5.1
201218
Release:    2%{?dist}
201218
# The exceptions allow linking to OpenSSL and PostgreSQL's libpq
201218
License:    LGPLv3+ with exceptions
201218
Group:      Applications/Databases
201218
Url:        http://www.initd.org/psycopg/
201218
201218
Source0:        http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-%{version}.tar.gz
201218
201218
BuildRequires:  postgresql-devel
201218
BuildRequires:  %{?scl_prefix}python2-devel
201218
BuildRequires:  %{?scl_prefix}python-setuptools
201218
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
201218
201218
%description
201218
Psycopg is the most popular PostgreSQL adapter for the Python
201218
programming language. At its core it fully implements the Python DB
201218
API 2.0 specifications. Several extensions allow access to many of the
201218
features offered by PostgreSQL.
201218
201218
%package doc
201218
Summary:    Documentation for psycopg python PostgreSQL database adapter
201218
Group:      Documentation
201218
Requires:   %{name} = %{version}-%{release}
201218
201218
%description doc
201218
Documentation and example files for the psycopg python PostgreSQL
201218
database adapter.
201218
201218
%prep
201218
%setup -q -n %{srcname}-%{version}
201218
201218
%build
201218
%{?scl:scl enable %{scl} "}
201218
%{__python} setup.py build
201218
%{?scl:"}
201218
201218
# Fix for wrong-file-end-of-line-encoding problem; upstream also must fix this.
201218
for i in `find doc -iname "*.html"`; do sed -i 's/\r//' $i; done
201218
for i in `find doc -iname "*.css"`; do sed -i 's/\r//' $i; done
201218
201218
# Get rid of a "hidden" file that rpmlint complains about
201218
rm -f doc/html/.buildinfo
201218
201218
201218
%install
201218
rm -rf %{buildroot}
201218
mkdir -p %{buildroot}%{python_sitearch}/psycopg2
201218
%{?scl:scl enable %{scl} "}
201218
%{__python} setup.py install --no-compile --root %{buildroot}
201218
%{?scl:"}
201218
rm -rf %{buildroot}%{python_sitearch}/psycopg2/tests
201218
201218
%clean
201218
rm -rf %{buildroot}
201218
201218
201218
%files
201218
%defattr(-,root,root)
201218
%doc AUTHORS LICENSE NEWS README
201218
%{python_sitearch}/psycopg2/
201218
%{python_sitearch}/psycopg2/*.pyc
201218
%{python_sitearch}/psycopg2/*.pyo
201218
%{python_sitearch}/psycopg2/*.py
201218
%{python_sitearch}/psycopg2/_psycopg.so
201218
%{python_sitearch}/psycopg2-%{version}-py?.?.egg-info
201218
201218
%files doc
201218
%defattr(-,root,root)
201218
%doc doc examples/
201218
201218
201218
%changelog
201218
* Thu Nov 07 2013 Robert Kuska <rkuska@redhat.com> - 2.5.1-2
201218
- Update to 2.5.1
201218
- Increase release number to avoid conflict with rhel-7.0
201218
201218
* Tue May 07 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.4.5-9
201218
- Rebuild to generate bytecode properly after fixing rhbz#956289
201218
201218
* Thu Apr 25 2013 Robert Kuska <rkuska@redhat.com> - 2.4.5-8
201218
- Rebuilt for SCL
201218
- Using optimize=2 to generate pyo files because of bug in scl
201218
201218
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.5-7
201218
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
201218
201218
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 2.4.5-6
201218
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
201218
201218
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 2.4.5-5
201218
- generalize python 3 fileglobbing to work with both Python 3.2 and 3.3
201218
201218
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 2.4.5-4
201218
- replace "python3.2dmu" with "python3-debug"; with_python3 fixes
201218
201218
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 2.4.5-3
201218
- add with_python3 conditional
201218
201218
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.5-2
201218
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
201218
201218
* Sat Apr  7 2012 Tom Lane <tgl@redhat.com> 2.4.5-1
201218
- Update to 2.4.5
201218
201218
* Thu Feb  2 2012 Tom Lane <tgl@redhat.com> 2.4.4-1
201218
- Update to 2.4.4
201218
- More specfile neatnik-ism
201218
201218
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.2-3
201218
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
201218
201218
* Tue Nov 29 2011 Tom Lane <tgl@redhat.com> 2.4.2-2
201218
- Fix mistaken %%dir marking on python3 files, per Dan Horak
201218
201218
* Sat Jun 18 2011 Tom Lane <tgl@redhat.com> 2.4.2-1
201218
- Update to 2.4.2
201218
Related: #711095
201218
- Some neatnik specfile cleanups
201218
201218
* Thu Feb 10 2011 David Malcolm <dmalcolm@redhat.com> - 2.4-0.beta2
201218
- 2.4.0-beta2
201218
- add python 2 debug, python3 (optimized) and python3-debug subpackages
201218
201218
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-2
201218
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
201218
201218
* Wed Dec 29 2010 Tom Lane <tgl@redhat.com> 2.3.2-1
201218
- Update to 2.3.2
201218
- Clean up a few rpmlint warnings
201218
201218
* Fri Dec 03 2010 Jason L Tibbitts III <tibbs@math.uh.edu> - 2.2.2-3
201218
- Fix incorrect (and invalid) License: tag.
201218
201218
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.2.2-2
201218
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
201218
201218
* Tue Jul 20 2010 Devrim GUNDUZ <devrim@gunduz.org> - 2.2.2-1
201218
- Update to 2.2.2
201218
201218
* Tue May 18 2010 Devrim GUNDUZ <devrim@gunduz.org> - 2.2.1-1
201218
- Update to 2.2.1
201218
- Improve description for 2.2 features.
201218
- Changelog for 2.2.0 is: 
201218
   http://initd.org/pub/software/psycopg/ChangeLog-2.2
201218
201218
* Wed Mar 17 2010 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.14-1
201218
- Update to 2.0.14
201218
- Update license (upstream switched to LGPL3)
201218
201218
* Sun Jan 24 2010 Tom Lane <tgl@redhat.com> 2.0.13-2
201218
- Fix rpmlint complaints: remove unneeded explicit Requires:, use Conflicts:
201218
  instead of bogus Obsoletes: to indicate lack of zope subpackage
201218
201218
* Sun Oct 18 2009 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.13-1
201218
- Update to 2.0.13
201218
201218
* Fri Aug 14 2009 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.12-1
201218
- Update to 2.0.12
201218
201218
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.11-2
201218
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
201218
201218
* Tue May 19 2009 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.11-1
201218
- Update to 2.0.11
201218
201218
* Tue Apr 21 2009 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.10-1
201218
- Update to 2.0.10
201218
201218
* Fri Mar 20 2009 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.9-1
201218
- Update to 2.0.9
201218
201218
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-3
201218
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
201218
201218
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0.8-2
201218
- Rebuild for Python 2.6
201218
201218
* Sat Nov 29 2008 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.8-1
201218
- Update to 2.0.8
201218
201218
* Sat Nov 29 2008 Devrim GUNDUZ <devrim@gunduz.org> - 2.0.8-1
201218
- Update to 2.0.8
201218
201218
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0.7-3
201218
- Rebuild for Python 2.6
201218
201218
* Thu May 29 2008 Todd Zullinger <tmz@pobox.com> - 2.0.7-2
201218
- fix license tags
201218
201218
* Wed Apr 30 2008 Devrim GUNDUZ <devrim@commandprompt.com> 2.0.7-1
201218
- Update to 2.0.7
201218
201218
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.6-4.1
201218
- Autorebuild for GCC 4.3
201218
201218
* Mon Jan 21 2008 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.6-3.1
201218
- Rebuilt against PostgreSQL 8.3
201218
201218
* Thu Jan 3 2008 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.6-3
201218
- Rebuild for rawhide changes
201218
201218
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.0.6-2
201218
- Rebuild for selinux ppc32 issue.
201218
201218
* Fri Jun 15 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.6-1
201218
- Update to 2.0.6
201218
201218
* Thu Apr 26 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-8
201218
- Disabled zope package temporarily.
201218
201218
* Wed Dec 6 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-7
201218
- Rebuilt
201218
201218
* Wed Dec 6 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-5
201218
- Bumped up spec version
201218
201218
* Wed Dec 6 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-4
201218
- Rebuilt for PostgreSQL 8.2.0
201218
201218
* Mon Sep 11 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-3
201218
- Rebuilt
201218
201218
* Wed Sep 6 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-2
201218
- Remove ghost'ing, per Python Packaging Guidelines
201218
201218
* Mon Sep 4 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.5.1-1
201218
- Update to 2.0.5.1
201218
201218
* Sun Aug 6 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.3-3
201218
- Fixed zope package dependencies and macro definition, per bugzilla review (#199784)
201218
- Fixed zope package directory ownership, per bugzilla review (#199784)
201218
- Fixed cp usage for zope subpackage, per bugzilla review (#199784)
201218
201218
* Mon Jul 31 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.3-2
201218
- Fixed 64 bit builds
201218
- Fixed license
201218
- Added Zope subpackage
201218
- Fixed typo in doc description
201218
- Added macro for zope subpackage dir
201218
201218
* Mon Jul 31 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.3-1
201218
- Update to 2.0.3
201218
- Fixed spec file, per bugzilla review (#199784)
201218
201218
* Sat Jul 22 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.2-3
201218
- Removed python dependency, per bugzilla review. (#199784)
201218
- Changed doc package group, per bugzilla review. (#199784)
201218
- Replaced dos2unix with sed, per guidelines and bugzilla review (#199784)
201218
- Fix changelog dates
201218
201218
* Sat Jul 21 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.2-2
201218
- Added dos2unix to buildrequires
201218
- removed python related part from package name
201218
201218
* Fri Jul 20 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 2.0.2-1
201218
- Fix rpmlint errors, including dos2unix solution
201218
- Re-engineered spec file
201218
201218
* Fri Jan 23 2006 - Devrim GUNDUZ <devrim@commandprompt.com>
201218
- First 2.0.X build
201218
201218
* Fri Jan 23 2006 - Devrim GUNDUZ <devrim@commandprompt.com>
201218
- Update to 1.2.21
201218
201218
* Tue Dec 06 2005 - Devrim GUNDUZ <devrim@commandprompt.com>
201218
- Initial release for 1.1.20