diff options
author | Honza Horák <hhorak@redhat.com> | 2012-10-03 13:25:17 +0200 |
---|---|---|
committer | Honza Horák <hhorak@redhat.com> | 2012-10-03 13:25:17 +0200 |
commit | 975f12a1e2dc660651b0892e168f6c0d7de96687 (patch) | |
tree | 548289fd0e9ed87b57cb553d6033930cf4d122a4 | |
parent | e6d4cfcd1e40e8d7a0271f1b66f62b0b757110df (diff) | |
download | dsc-975f12a1e2dc660651b0892e168f6c0d7de96687.tar.gz dsc-975f12a1e2dc660651b0892e168f6c0d7de96687.tar.xz dsc-975f12a1e2dc660651b0892e168f6c0d7de96687.zip |
add original spec files and diff files
46 files changed, 12100 insertions, 0 deletions
diff --git a/mysql55/MySQL-python.spec.diff b/mysql55/MySQL-python.spec.diff new file mode 100644 index 0000000..26c72a3 --- /dev/null +++ b/mysql55/MySQL-python.spec.diff @@ -0,0 +1,68 @@ +--- MySQL-python.spec.nodsc 2012-05-31 10:48:04.851644356 +0200 ++++ MySQL-python.spec 2012-06-01 16:09:40.220350592 +0200 +@@ -1,5 +1,12 @@ ++# Sets %%pkg_name to 'MySQL-python' if we build for scl. ++%{?scl:%scl_package MySQL-python} ++# If we don't build for scl, then pkg_name is empty. ++# This way, we can always use %%pkg_name for 'MySQL-python', be it scl build or not. ++%{!?scl:%global pkg_name mySQL-python} ++# %%{name} then references to either 'MySQL-python' (not in scl) or '%%{?scl:%scl_prefix}MySQL-python' (in scl). ++ + Summary: An interface to MySQL +-Name: MySQL-python ++Name: %{?scl_prefix}MySQL-python + Version: 1.2.3 + Release: 4%{?dist} + License: GPLv2+ +@@ -8,9 +15,8 @@ URL: http://sourceforge.net/projects/mys + + Source0: http://prdownloads.sourceforge.net/mysql-python/MySQL-python-%{version}.tar.gz + +-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + BuildRequires: python-devel python-setuptools +-BuildRequires: mysql-devel zlib-devel ++BuildRequires: %{?scl_prefix}mysql-devel zlib-devel + # is this still needed? + # Requires: mx + +@@ -31,18 +37,21 @@ a) not thread-friendly, b) written for M + not actively maintained. No code from that version is used in MySQLdb. + + %prep +-%setup -q -n %{name}-%{version} ++%setup -q -n %{pkg_name}-%{version} + + %build + rm -f doc/*~ + export libdirname=%{_lib} ++%{?scl:scl enable %scl - << \EOF} + CFLAGS="$RPM_OPT_FLAGS" python setup.py build ++%{?scl:EOF} + + %install +-rm -rf $RPM_BUILD_ROOT +- + export libdirname=%{_lib} +-python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES ++%{?scl:scl enable %scl - << \EOF} ++python setup.py install --root=$RPM_BUILD_ROOT%{?scl:%_scl_root} --record=INSTALLED_FILES ++%{?scl:EOF} ++sed -ie 's|^/usr/|%{_prefix}/|g' INSTALLED_FILES + + %clean + rm -rf $RPM_BUILD_ROOT +@@ -51,10 +60,10 @@ rm -rf $RPM_BUILD_ROOT + %defattr(-,root,root) + %doc README doc/* + %dir %{_libdir}/python?.?/site-packages/MySQLdb +-%{_libdir}/python?.?/site-packages/MySQLdb/*.pyo +-%{_libdir}/python?.?/site-packages/MySQLdb/constants/*.pyo +-%{_libdir}/python?.?/site-packages/*.pyo +-%dir /usr/%{_lib}/python?.?/site-packages/MySQLdb/constants ++%{_libdir}/python?.?/site-packages/MySQLdb/*.pyc ++%{_libdir}/python?.?/site-packages/MySQLdb/constants/*.pyc ++%{_libdir}/python?.?/site-packages/*.pyc ++%dir %{_prefix}/%{_lib}/python?.?/site-packages/MySQLdb/constants + + %changelog + * Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-4 diff --git a/mysql55/MySQL-python.spec.nodsc b/mysql55/MySQL-python.spec.nodsc new file mode 100644 index 0000000..fe400d5 --- /dev/null +++ b/mysql55/MySQL-python.spec.nodsc @@ -0,0 +1,243 @@ +Summary: An interface to MySQL +Name: MySQL-python +Version: 1.2.3 +Release: 4%{?dist} +License: GPLv2+ +Group: Development/Libraries +URL: http://sourceforge.net/projects/mysql-python/ + +Source0: http://prdownloads.sourceforge.net/mysql-python/MySQL-python-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: python-devel python-setuptools +BuildRequires: mysql-devel zlib-devel +# is this still needed? +# Requires: mx + +%description +Python interface to MySQL + +MySQLdb is an interface to the popular MySQL database server for Python. +The design goals are: + +- Compliance with Python database API version 2.0 +- Thread-safety +- Thread-friendliness (threads will not block each other) +- Compatibility with MySQL 3.23 and up + +This module should be mostly compatible with an older interface +written by Joe Skinner and others. However, the older version is +a) not thread-friendly, b) written for MySQL 3.21, c) apparently +not actively maintained. No code from that version is used in MySQLdb. + +%prep +%setup -q -n %{name}-%{version} + +%build +rm -f doc/*~ +export libdirname=%{_lib} +CFLAGS="$RPM_OPT_FLAGS" python setup.py build + +%install +rm -rf $RPM_BUILD_ROOT + +export libdirname=%{_lib} +python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f INSTALLED_FILES +%defattr(-,root,root) +%doc README doc/* +%dir %{_libdir}/python?.?/site-packages/MySQLdb +%{_libdir}/python?.?/site-packages/MySQLdb/*.pyo +%{_libdir}/python?.?/site-packages/MySQLdb/constants/*.pyo +%{_libdir}/python?.?/site-packages/*.pyo +%dir /usr/%{_lib}/python?.?/site-packages/MySQLdb/constants + +%changelog +* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Mar 22 2011 Tom Lane <tgl@redhat.com> 1.2.3-3 +- Rebuild for libmysqlclient 5.5.10 soname version bump + +* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Dec 24 2010 Tom Lane <tgl@redhat.com> 1.2.3-1 +- Update to final release of 1.2.3 +Resolves: #660484 +- Rebuild was needed anyway for mysql ABI break (no more libmysqlclient_r) + +* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.3-0.5.c1 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Mon Nov 23 2009 Tom Lane <tgl@redhat.com> 1.2.3-0.4.c1 +- Fix format mismatch in _mysql_ConnectionObject_kill +Resolves: #538234 + +* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.2.3-0.3.c1 +- rebuilt with new openssl + +* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-0.2.c1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sun Jun 28 2009 Tom Lane <tgl@redhat.com> 1.2.3-0.1.c1 +- Update to release candidate 1.2.3c1 for better mysql 5.1 and python 2.6 + compatibility +Resolves: #505611 +- Use python-setuptools instead of distutils, stop using old setup.py +Resolves: #467510 +- Remove unnecessary manual Requires: specifications +Resolves: #507750 + +* Wed Apr 15 2009 Karsten Hopp <karsten@redhat.com> 1.2.2-11 +- bump release and rebuild for s390x + +* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 1.2.2-9 +- Rebuild for mysql 5.1 + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2.2-8 +- Rebuild for Python 2.6 + +* Thu Jun 19 2008 Tom Lane <tgl@redhat.com> 1.2.2-7 +- Fix broken escape() method +Resolves: #331021 + +* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.2-6 +- Autorebuild for GCC 4.3 + +* Wed Dec 5 2007 Tom Lane <tgl@redhat.com> 1.2.2-5 +- Rebuild for new openssl + +* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 1.2.2-4 +- Update License tag to match code. + +* Tue Jul 3 2007 Tom Lane <tgl@redhat.com> 1.2.2-3 +- Ooops, previous fix for quoting bug was wrong, because it converted the + version_info tuple to a string in Python's eyes +Resolves: #246366 + +* Tue Jun 12 2007 Tom Lane <tgl@redhat.com> 1.2.2-2 +- Fix quoting bug in use of older setup.py: need to quote version_info now +Resolves: #243877 + +* Fri Apr 20 2007 Tom Lane <tgl@redhat.com> 1.2.2-1 +- Update to 1.2.2, but not 1.2.2 setup.py (since we don't ship setuptools yet) + +* Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 1.2.1_p2-2 +- rebuild for python 2.5 + +* Wed Dec 6 2006 Tom Lane <tgl@redhat.com> 1.2.1_p2-1 +- Update to 1.2.1_p2 + +* Fri Jul 21 2006 Tom Lane <tgl@redhat.com> 1.2.1-1 +- Update to 1.2.1 +- Remove hardwired python version number in favor of asking Python + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.0-3.2.2.1 +- rebuild + +* Mon Feb 13 2006 Jesse Keating <jkeating@redhat.com> - 1.2.0-3.2.2 +- rebump for build order issues during double-long bump + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.0-3.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.0-3.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Wed Nov 9 2005 Tom Lane <tgl@redhat.com> 1.2.0-3 +- Rebuild due to mysql 5.0 update and openssl library update. + +* Wed Aug 03 2005 Karsten Hopp <karsten@redhat.de> 1.2.0-2 +- package all python files. INSTALLED_FILES doesn't contain files created + by the brp-python-bytecompile script + +* Thu Apr 21 2005 Tom Lane <tgl@redhat.com> 1.2.0-1 +- Update to 1.2.0, per bug #155341 +- Link against mysql 4.x not 3.x, per bug #150828 + +* Sun Mar 6 2005 Tom Lane <tgl@redhat.com> 1.0.0-3 +- Rebuild with gcc4. + +* Thu Nov 11 2004 Tom Lane <tgl@redhat.com> 1.0.0-2 +- bring us to python 2.4 + +* Thu Nov 11 2004 Tom Lane <tgl@redhat.com> 1.0.0-1 +- update to 1.0.0; rebuild against mysqlclient10 + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Fri Feb 20 2004 Tom Lane <tgl@redhat.com> +- reinstate (and update) patch for /usr/lib64 compatibility +- rebuilt + +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Tue Nov 25 2003 Patrick Macdonald <patrickm@redhat.com> 0.9.2-1 +- update to 0.9.2 +- remove patches (no longer applicable) + +* Sat Nov 15 2003 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.1-10 +- bring us to python 2.3 + +* Thu Jul 03 2003 Patrick Macdonald <patrickm@redhat.com> 0.9.1-9 +- rebuilt + +* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> 0.9.1-8 +- rebuilt + +* Tue Mar 04 2003 Patrick Macdonald <patrickm@redhat.com> 0.9.1-7 +- explicitly define the constants directory in case a more + restrictive umask is encountered (#74019) + +* Wed Jan 22 2003 Tim Powers <timp@redhat.com> +- rebuilt + +* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 0.9.1-5 +- lib64'ize + +* Fri Jun 21 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Thu May 23 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Mon May 13 2002 Trond Eivind Glomsrd <teg@redhat.com> 0.9.1-2 +- Build for newer python + +* Wed Mar 13 2002 Trond Eivind Glomsrd <teg@redhat.com> 0.9.1-1 +- 0.9.1 + +* Tue Feb 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 0.9.0-6 +- Rebuild + +* Thu Jan 31 2002 Elliot Lee <sopwith@redhat.com> 0.9.0-5 +- Change python conflicts to requires +- Use pybasever/pynextver macros. + +* Wed Jan 09 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Fri Sep 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 0.9.0-3 +- Build for Python 2.2 + +* Mon Jul 23 2001 Trond Eivind Glomsrd <teg@redhat.com> +- Add zlib-devel to buildrequires (#49788) + +* Tue Jun 19 2001 Trond Eivind Glomsrd <teg@redhat.com> +- Initial build diff --git a/mysql55/mysql-connector-c++.spec.diff b/mysql55/mysql-connector-c++.spec.diff new file mode 100644 index 0000000..a9dfb47 --- /dev/null +++ b/mysql55/mysql-connector-c++.spec.diff @@ -0,0 +1,53 @@ +--- mysql-connector-c++.spec.nodsc 2012-01-14 14:25:23.000000000 +0100 ++++ mysql-connector-c++.spec 2012-05-22 13:50:29.409053710 +0200 +@@ -1,8 +1,10 @@ ++%{?scl:%scl_package mysql} ++ + %global bzr 895 + + + Summary: MySQL database connector for C++ +-Name: mysql-connector-c++ ++Name: %{?scl_prefix}mysql-connector-c++ + Version: 1.1.0 + %if 0%{?bzr} + Release: 0.8.bzr%{?bzr}%{?dist} +@@ -21,7 +23,7 @@ URL: http://forge.mysql.com/wiki/ + # check getDriverMajorVersion / getDriverMinorVersion / getDriverPatchVersion + # tar czf mysql-connector-c++-bzr895.tgz --exclude .bzr mysql-connector-c++-1.1.0 + # rm -rf mysql-connector-c++-1.1.0 +-Source0: %{name}-bzr%{bzr}.tgz ++Source0: mysql-connector-c++-bzr%{bzr}.tgz + %else + # Upstream has a mirror redirector for downloads, so the URL is hard to + # represent statically. You can get the tarball by following a link from +@@ -30,8 +32,9 @@ Source0: %{name}-%{version}.tar.gz + %endif + + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +-BuildRequires: cmake mysql-devel boost-devel ++BuildRequires: cmake %{?scl_prefix}mysql-devel boost-devel + ++%{?scl:Requires:%scl_runtime} + + %description + MySQL Connector/C++ is a MySQL database connector for C++. +@@ -53,15 +56,15 @@ The Connector/C++ preview features the f + %package devel + Summary: MySQL Connector/C++ developer files (headers, examples, etc.) + Group: Development/Libraries +-Requires: mysql-connector-c++ = %{version}-%{release} +-Requires: mysql-devel ++Requires: %{?scl_prefix}mysql-connector-c++ = %{version}-%{release} ++Requires: %{?scl_prefix}mysql-devel + + %description devel + These are the files needed to compile programs using MySQL Connector/C++. + + + %prep +-%setup -q ++%setup -q -n mysql-connector-c++-%{version} + + %{__sed} -i -e 's/lib$/%{_lib}/' driver/CMakeLists.txt + %{__chmod} -x examples/*.cpp examples/*.txt diff --git a/mysql55/mysql-connector-c++.spec.nodsc b/mysql55/mysql-connector-c++.spec.nodsc new file mode 100644 index 0000000..64758ed --- /dev/null +++ b/mysql55/mysql-connector-c++.spec.nodsc @@ -0,0 +1,169 @@ +%global bzr 895 + + +Summary: MySQL database connector for C++ +Name: mysql-connector-c++ +Version: 1.1.0 +%if 0%{?bzr} +Release: 0.8.bzr%{?bzr}%{?dist} +%else +Release: 1%{?dist} +%endif +Group: System Environment/Libraries +License: GPLv2 with exceptions + + +URL: http://forge.mysql.com/wiki/Connector_C++ + +%if 0%{?bzr} +# bzr branch -r 895 lp:~mysql/mysql-connector-cpp/trunk mysql-connector-c++-1.1.0 +# less mysql-connector-c++-1.1.0/driver/mysql_metadata.cpp +# check getDriverMajorVersion / getDriverMinorVersion / getDriverPatchVersion +# tar czf mysql-connector-c++-bzr895.tgz --exclude .bzr mysql-connector-c++-1.1.0 +# rm -rf mysql-connector-c++-1.1.0 +Source0: %{name}-bzr%{bzr}.tgz +%else +# Upstream has a mirror redirector for downloads, so the URL is hard to +# represent statically. You can get the tarball by following a link from +# http://dev.mysql.com/downloads/connector/cpp +Source0: %{name}-%{version}.tar.gz +%endif + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: cmake mysql-devel boost-devel + + +%description +MySQL Connector/C++ is a MySQL database connector for C++. + +The MySQL Driver for C++ mimics the JDBC 4.0 API. +However, Connector/C++ does not implement all of the JDBC 4.0 API. + +The Connector/C++ preview features the following classes: +* Connection +* DatabaseMetaData +* Driver +* PreparedStatement +* ResultSet +* ResultSetMetaData +* Savepoint +* Statement + + +%package devel +Summary: MySQL Connector/C++ developer files (headers, examples, etc.) +Group: Development/Libraries +Requires: mysql-connector-c++ = %{version}-%{release} +Requires: mysql-devel + +%description devel +These are the files needed to compile programs using MySQL Connector/C++. + + +%prep +%setup -q + +%{__sed} -i -e 's/lib$/%{_lib}/' driver/CMakeLists.txt +%{__chmod} -x examples/*.cpp examples/*.txt + +# Save examples to keep directory clean (for doc) +%{__mkdir} _doc_examples +%{__cp} -pr examples _doc_examples + + +%build +%{cmake} -DMYSQLCPPCONN_BUILD_EXAMPLES:BOOL=0 + +%{__make} + + +%install +%{__rm} -rf %{buildroot} + +%{__make} install DESTDIR=%{buildroot} + + +%check +# for documentation purpose only (A MySQL server is required) +# cd test +# ./static_test tcp://127.0.0.1 user password test_database +# Should output : Loops= 2 Tests= 592 Failures= 0 +# ./driver_test tcp://127.0.0.1 user password test_database +# Should output : Loops= 2 Tests= 592 Failures= 0 + + +%clean +rm -rf %{buildroot} + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc ANNOUNCEMEN* COPYING README CHANGES +%{_libdir}/libmysqlcppconn.so.* +%exclude %{_libdir}/libmysqlcppconn-static.a +%exclude %{_prefix}/COPYING +%exclude %{_prefix}/README +%if 0%{?bzr} == 0 +%exclude %{_prefix}/ANNOUNCEMENT +%endif + +%files devel +%defattr(-,root,root,-) +%doc _doc_examples/examples +%{_libdir}/libmysqlcppconn.so +%{_includedir}/mysql* +%{_includedir}/cppconn + + +%changelog +* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-0.8.bzr895 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Mar 23 2011 Remi Collet <Fedora@famillecollet.com> 1.1.0-0.7.bzr895 +- rebuild for new MySQL client library + +* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-0.6.bzr895 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 28 2010 Remi Collet <Fedora@famillecollet.com> 1.1.0-0.5.bzr895 +- rebuilt for MySQL 5.5.8 + +* Wed Sep 29 2010 jkeating - 1.1.0-0.4.bzr895 +- Rebuilt for gcc bug 634757 + +* Mon Sep 20 2010 Remi Collet <Fedora@famillecollet.com> 1.1.0-0.3.bzr895 +- update to 1.1.0 from bzr snapshot 895 (for Workbench 5.2.28) + +* Mon Aug 09 2010 Remi Collet <Fedora@famillecollet.com> 1.1.0-0.2.bzr888 +- Changes from review (#622272) + +* Sun Aug 08 2010 Remi Collet <Fedora@famillecollet.com> 1.1.0-0.1.bzr888 +- update to 1.1.0 from bzr snapshot 888 (for Workbench 5.2.26) +- initial package for fedora review + +* Fri Jun 04 2010 Remi Collet <RPMS@famillecollet.com> 1.1.0-0.1.bzr819 +- update to 1.1.0 from bzr snapshot 819 + +* Sat Apr 03 2010 Remi Collet <RPMS@famillecollet.com> 1.1.0-0.1.bzr818 +- update to 1.1.0 from bzr snapshot 818 + +* Sat Apr 03 2010 Remi Collet <RPMS@famillecollet.com> 1.0.6-0.1.bzr814 +- update to 1.0.6 from bzr snapshot 814 + +* Sat Jan 23 2010 Remi Collet <RPMS@famillecollet.com> 1.0.6-0.1.bzr813 +- update to 1.0.6 from bzr snapshot 813 + +* Sun Jan 10 2010 Remi Collet <RPMS@famillecollet.com> 1.0.6-0.1.bzr812 +- update to 1.0.6 from bzr snapshot + +* Tue Nov 24 2009 Remi Collet <RPMS@famillecollet.com> 1.0.5-1.1 +- rebuild + +* Sun Jun 28 2009 Remi Collet <RPMS@famillecollet.com> 1.0.5-1 +- initial RPM + diff --git a/mysql55/mysql-connector-odbc.spec.diff b/mysql55/mysql-connector-odbc.spec.diff new file mode 100644 index 0000000..a747c1f --- /dev/null +++ b/mysql55/mysql-connector-odbc.spec.diff @@ -0,0 +1,81 @@ +--- mysql-connector-odbc.spec.nodsc 2012-02-05 18:05:03.000000000 +0100 ++++ mysql-connector-odbc.spec 2012-05-25 10:52:32.488766083 +0200 +@@ -1,5 +1,12 @@ ++# Sets %%pkg_name to 'mysql-connector-odbc' if we build for scl. ++%{?scl:%scl_package mysql-connector-odbc} ++# If we don't build for scl, then pkg_name is empty. ++# This way, we can always use %%pkg_name for 'mysql-connector-odbc', be it scl build or not. ++%{!?scl:%global pkg_name mysql-connector-odbc} ++# %%{name} then references to either 'mysql-connector-odbc' (not in scl) or '%%{?scl:%scl_prefix}mysql-connector-odbc' (in scl). ++ + Summary: ODBC driver for MySQL +-Name: mysql-connector-odbc ++Name: %{?scl_prefix}mysql-connector-odbc + Version: 5.1.10 + Release: 1%{?dist} + Group: System Environment/Libraries +@@ -11,7 +18,7 @@ License: GPLv2 with exceptions + # Upstream has a mirror redirector for downloads, so the URL is hard to + # represent statically. You can get the tarball by following a link from + # http://dev.mysql.com/downloads/connector/odbc/ +-Source0: %{name}-%{version}-src.tar.gz ++Source0: %{pkg_name}-%{version}-src.tar.gz + + # mysql-connector-odbc expects to be able to get at a bunch of utility + # functions inside libmysqlclient. Now that we are restricting what symbols +@@ -26,7 +33,8 @@ Patch1: myodbc-add-mysys.patch + Patch2: myodbc-shutdown.patch + Patch3: myodbc-64bit.patch + +-BuildRequires: mysql-devel unixODBC-devel ++BuildRequires: %{?scl:%scl_prefix}mysql-devel ++BuildRequires: unixODBC-devel + BuildRequires: automake autoconf libtool libtool-ltdl-devel + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +@@ -34,7 +42,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version + An ODBC (rev 3) driver for MySQL, for use with unixODBC. + + %prep +-%setup -q -n %{name}-%{version}-src ++%setup -q -n %{pkg_name}-%{version}-src + + tar xfz %{SOURCE1} + +@@ -56,13 +64,16 @@ automake -a + automake + autoconf + ++%{?scl:scl enable %scl - << \EOF} + %configure \ + --disable-gui \ + --with-unixODBC \ + --with-unixODBC-libs=%{_libdir} \ + --with-odbc-ini=/etc/odbc.ini \ + --with-mysql-includes=%{_includedir}/mysql \ +- --with-mysql-libs=%{_libdir}/mysql ++ --with-mysql-libs=%{_libdir}/mysql \ ++ --with-mysql-path=%{_prefix} ++%{?scl:EOF} + + export tagname=CC + make LIBTOOL=/usr/bin/libtool %{?_smp_mflags} +@@ -80,12 +91,12 @@ rm -f $RPM_BUILD_ROOT%{_bindir}/myodbc-i + rm -f $RPM_BUILD_ROOT%{_libdir}/libmyodbc5.*a + + # makefile thinks it should install docs in totally wrong place +-rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/COPYING +-rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/README +-rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/README.debug +-rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/ChangeLog +-rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/INSTALL +-rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/Licenses_for_Third-Party_Components.txt ++rm -f $RPM_BUILD_ROOT%{_datadir}/mysql-connector-odbc/COPYING ++rm -f $RPM_BUILD_ROOT%{_datadir}/mysql-connector-odbc/README ++rm -f $RPM_BUILD_ROOT%{_datadir}/mysql-connector-odbc/README.debug ++rm -f $RPM_BUILD_ROOT%{_datadir}/mysql-connector-odbc/ChangeLog ++rm -f $RPM_BUILD_ROOT%{_datadir}/mysql-connector-odbc/INSTALL ++rm -f $RPM_BUILD_ROOT%{_datadir}/mysql-connector-odbc/Licenses_for_Third-Party_Components.txt + + %clean + rm -rf $RPM_BUILD_ROOT diff --git a/mysql55/mysql-connector-odbc.spec.nodsc b/mysql55/mysql-connector-odbc.spec.nodsc new file mode 100644 index 0000000..f1a1e01 --- /dev/null +++ b/mysql55/mysql-connector-odbc.spec.nodsc @@ -0,0 +1,181 @@ +Summary: ODBC driver for MySQL +Name: mysql-connector-odbc +Version: 5.1.10 +Release: 1%{?dist} +Group: System Environment/Libraries +URL: http://dev.mysql.com/downloads/connector/odbc/ +# exceptions allow library to be linked with most open source SW, +# not only GPL code. +License: GPLv2 with exceptions + +# Upstream has a mirror redirector for downloads, so the URL is hard to +# represent statically. You can get the tarball by following a link from +# http://dev.mysql.com/downloads/connector/odbc/ +Source0: %{name}-%{version}-src.tar.gz + +# mysql-connector-odbc expects to be able to get at a bunch of utility +# functions inside libmysqlclient. Now that we are restricting what symbols +# are exported by libmysqlclient, that doesn't work. Instead, copy those +# functions here. mysql and mysql-connector-odbc are published under the same +# license, so this creates no legal issues. (Note: we don't worry about +# polluting application namespace in mysql-connector-odbc, since it's never +# directly statically linked with any application code.) +Source1: mysql-mysys.tar.gz + +Patch1: myodbc-add-mysys.patch +Patch2: myodbc-shutdown.patch +Patch3: myodbc-64bit.patch + +BuildRequires: mysql-devel unixODBC-devel +BuildRequires: automake autoconf libtool libtool-ltdl-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +%description +An ODBC (rev 3) driver for MySQL, for use with unixODBC. + +%prep +%setup -q -n %{name}-%{version}-src + +tar xfz %{SOURCE1} + +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 + +%build +# mysql 5.5.10 has stopped #define'ing THREAD in its exports, and has +# started #define'ing MY_PTHREAD_FASTMUTEX, and neither of those changes +# sit well with mysql-connector-odbc 5.1.10. Revisit need for these hacks +# when updating to newer release. +export CFLAGS="%{optflags} -fno-strict-aliasing -DTHREAD=1 -UMY_PTHREAD_FASTMUTEX" + +libtoolize --copy --force +aclocal +autoheader +automake -a +automake +autoconf + +%configure \ + --disable-gui \ + --with-unixODBC \ + --with-unixODBC-libs=%{_libdir} \ + --with-odbc-ini=/etc/odbc.ini \ + --with-mysql-includes=%{_includedir}/mysql \ + --with-mysql-libs=%{_libdir}/mysql + +export tagname=CC +make LIBTOOL=/usr/bin/libtool %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +export tagname=CC +make DESTDIR=$RPM_BUILD_ROOT LIBTOOL=/usr/bin/libtool install + +# Remove stuff not to be packaged (possibly reconsider later) +rm -f $RPM_BUILD_ROOT%{_bindir}/myodbc-installer + +# we don't want static libraries, thanks +rm -f $RPM_BUILD_ROOT%{_libdir}/libmyodbc5.*a + +# makefile thinks it should install docs in totally wrong place +rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/COPYING +rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/README +rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/README.debug +rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/ChangeLog +rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/INSTALL +rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/Licenses_for_Third-Party_Components.txt + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc README README.debug ChangeLog COPYING +%{_libdir}/lib*so + +%changelog +* Sun Feb 5 2012 Tom Lane <tgl@redhat.com> 5.1.10-1 +- Update to 5.1.10 + +* Tue Jan 10 2012 Tom Lane <tgl@redhat.com> 5.1.9-1 +- Update to 5.1.9 +- Add --with-unixODBC-libs to configure command for safer multilib behavior +Related: #757088 + +* Wed Mar 23 2011 Tom Lane <tgl@redhat.com> 5.1.8-3 +- Rebuild for libmysqlclient 5.5.10 soname version bump + +* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Dec 23 2010 Tom Lane <tgl@redhat.com> 5.1.8-1 +- Update to 5.1.8 +- Deal with mysql packaging changes that prevent us from using mysys + utility functions directly + +* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 5.1.5r1144-7 +- Correct Source: tag and comment to reflect how to get the tarball + +* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 5.1.5r1144-6 +- rebuilt with new openssl + +* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.5r1144-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.5r1144-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 Tom Lane <tgl@redhat.com> 5.1.5r1144-3 +- Fix some 64-bitness issues with unixODBC 2.2.14. + +* Fri Feb 20 2009 Tom Lane <tgl@redhat.com> 5.1.5r1144-2 +- Rebuild for unixODBC 2.2.14. +- Fix problem with null username/password specifications + +* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 5.1.5r1144-1 +- Update to mysql-connector-odbc 5.1.5r1144, to go with MySQL 5.1.x. + Note the library name has changed from libmyodbc3 to libmyodbc5. + +* Tue Aug 5 2008 Tom Lane <tgl@redhat.com> 3.51.26r1127-1 +- Update to mysql-connector-odbc 3.51.26r1127 + +* Tue Mar 25 2008 Tom Lane <tgl@redhat.com> 3.51.24r1071-1 +- Update to mysql-connector-odbc 3.51.24r1071 + +* Tue Feb 12 2008 Tom Lane <tgl@redhat.com> 3.51.23r998-1 +- Update to mysql-connector-odbc 3.51.23r998 + +* Wed Dec 5 2007 Tom Lane <tgl@redhat.com> 3.51.14r248-3 +- Rebuild for new openssl + +* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 3.51.14r248-2 +- Update License tag to match code. + +* Fri Apr 20 2007 Tom Lane <tgl@redhat.com> 3.51.14r248-1 +- Update to mysql-connector-odbc 3.51.14r248 +Resolves: #236473 +- Fix build problem on multilib machines + +* Mon Jul 17 2006 Tom Lane <tgl@redhat.com> 3.51.12-2.2 +- rebuild + +* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 3.51.12-2 +- Remove DLL-unload cleanup call from connection shutdown (bz#185343) + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.51.12-1.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.51.12-1.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Fri Nov 11 2005 Tom Lane <tgl@redhat.com> 3.51.12-1 +- New package replacing MyODBC. diff --git a/mysql55/mysql.spec.diff b/mysql55/mysql.spec.diff new file mode 100644 index 0000000..33ede80 --- /dev/null +++ b/mysql55/mysql.spec.diff @@ -0,0 +1,238 @@ +--- mysql.spec.nodsc 2012-03-20 17:35:11.831545857 +0100 ++++ mysql.spec 2012-05-30 16:44:19.311993957 +0200 +@@ -1,4 +1,6 @@ +-Name: mysql ++%{?scl:%scl_package mysql} ++ ++Name: %{?scl_prefix}mysql + Version: 5.5.21 + Release: 1%{?dist} + +@@ -66,6 +68,8 @@ Requires: grep, fileutils + Requires: %{name}-libs%{?_isa} = %{version}-%{release} + Requires: bash + ++%{?scl:Requires:%scl_runtime} ++ + # MySQL (with caps) is upstream's spelling of their own RPMs for mysql + Conflicts: MySQL + # mysql-cluster used to be built from this SRPM, but no more +@@ -107,9 +111,9 @@ Requires(preun): chkconfig + Requires(preun): initscripts + Requires(postun): initscripts + # This is for /etc/tmpfiles.d +-Requires: systemd-units ++#Requires: systemd-units + # mysqlhotcopy needs DBI/DBD support +-Requires: perl-DBI, perl-DBD-MySQL ++#Requires: perl-DBI, perl-DBD-MySQL + Conflicts: MySQL-server + + %description server +@@ -200,6 +204,13 @@ the MySQL sources. + %patch18 -p1 + %patch19 -p1 + ++# path fixes for dsc ++sed -i -e 's|/etc/|%{_sysconfdir}/|' mysys/default.c ++sed -i -e 's|/etc/my|%{_sysconfdir}/my|' scripts/mysqld_multi.sh ++sed -i -e 's|/etc/|%{_sysconfdir}/|' scripts/mysqlaccess.sh ++sed -i -e 's|/usr/|%{_prefix}/|' ./client/mysql_plugin.c ++sed -i -e 's|/usr|%{_prefix}|' ./mysql-test/t/file_contents.test ++ + # workaround for upstream bug #56342 + rm -f mysql-test/t/ssl_8k_key-master.opt + +@@ -257,8 +268,8 @@ cmake . -DBUILD_CONFIG=mysql_release \ + -DINSTALL_SCRIPTDIR=bin \ + -DINSTALL_SQLBENCHDIR=share \ + -DINSTALL_SUPPORTFILESDIR=share/mysql \ +- -DMYSQL_DATADIR="/var/lib/mysql" \ +- -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \ ++ -DMYSQL_DATADIR="%{_scl_root}/var/lib/mysql" \ ++ -DMYSQL_UNIX_ADDR="%{_scl_root}/var/lib/mysql/mysql.sock" \ + -DENABLED_LOCAL_INFILE=ON \ + -DENABLE_DTRACE=ON \ + -DWITH_EMBEDDED_SERVER=ON \ +@@ -332,8 +343,8 @@ find $RPM_BUILD_ROOT -print | sed "s|^$R + # we only apply this to known Red Hat multilib arches, per bug #181335 + case `uname -i` in + i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 ) +- mv $RPM_BUILD_ROOT/usr/include/mysql/my_config.h $RPM_BUILD_ROOT/usr/include/mysql/my_config_`uname -i`.h +- install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/usr/include/mysql/ ++ mv $RPM_BUILD_ROOT%{_includedir}/mysql/my_config.h $RPM_BUILD_ROOT%{_includedir}/mysql/my_config_`uname -i`.h ++ install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_includedir}/mysql/ + ;; + *) + ;; +@@ -353,17 +364,31 @@ chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/my + install -m 644 Docs/INFO_SRC ${RPM_BUILD_ROOT}%{_libdir}/mysql/ + install -m 644 Docs/INFO_BIN ${RPM_BUILD_ROOT}%{_libdir}/mysql/ + +-mkdir -p $RPM_BUILD_ROOT/var/log +-touch $RPM_BUILD_ROOT/var/log/mysqld.log +- +-mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d +-mkdir -p $RPM_BUILD_ROOT/var/run/mysqld +-install -m 0755 -d $RPM_BUILD_ROOT/var/lib/mysql +-install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysqld +-install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/etc/my.cnf ++mkdir -p $RPM_BUILD_ROOT%{_scl_root}/var/log ++touch $RPM_BUILD_ROOT%{_scl_root}/var/log/mysqld.log + +-mkdir -p $RPM_BUILD_ROOT/etc/tmpfiles.d +-install -m 0644 %{SOURCE10} $RPM_BUILD_ROOT/etc/tmpfiles.d/mysql.conf ++mkdir -p $RPM_BUILD_ROOT%{_scl_root}/var/lock/subsys/ ++mkdir -p $RPM_BUILD_ROOT%{_root_sysconfdir}/rc.d/init.d ++mkdir -p $RPM_BUILD_ROOT%{_scl_root}/var/run/mysqld ++install -m 0755 -d $RPM_BUILD_ROOT%{_scl_root}/var/lib/mysql ++sed -e 's|/etc/my.cnf|%{_sysconfdir}/my.cnf|' \ ++ -e 's|/etc/sysconfig/mysqld|%{_sysconfdir}/sysconfig/mysqld|' \ ++ -e 's|/etc/sysconfig/\$prog|%{_sysconfdir}/sysconfig/\$prog|' \ ++ -e 's|/var/run/|%{_scl_root}/var/run/|' \ ++ -e 's|/usr|%{_prefix}|' \ ++ -e 's|/var/lock/|%{_scl_root}/var/lock/|' \ ++ -e 's|/var/lib/|%{_scl_root}/var/lib/|' \ ++ -e 's|/var/log/|%{_scl_root}/var/log/|' \ ++ <%{SOURCE2} >mysql.init ++install -m 0755 mysql.init $RPM_BUILD_ROOT%{_root_sysconfdir}/rc.d/init.d/%{?scl_prefix}mysqld ++ ++mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} ++sed -e 's|=/var/|=%{_scl_root}/var/|' >my.cnf <%{SOURCE3} ++install -m 0644 my.cnf $RPM_BUILD_ROOT%{_sysconfdir}/my.cnf ++ ++#mkdir -p $RPM_BUILD_ROOT%{_root_sysconfdir}/tmpfiles.d ++#sed -e 's|/var/run/mysqld|%{_scl_root}/var/run/mysqld|' <%{SOURCE10} >%{?scl_prefix}mysql.conf ++#install -m 0644 %{?scl_prefix}mysql.conf $RPM_BUILD_ROOT%{_root_sysconfdir}/tmpfiles.d/%{?scl_prefix}mysql.conf + + # Fix funny permissions that cmake build scripts apply to config files + chmod 644 ${RPM_BUILD_ROOT}%{_datadir}/mysql/config.*.ini +@@ -393,17 +418,18 @@ mv ${RPM_BUILD_ROOT}%{_datadir}/mysql-te + ln -s ../../../../../bin/my_safe_process ${RPM_BUILD_ROOT}%{_datadir}/mysql-test/lib/My/SafeProcess/my_safe_process + + # Remove files that %%doc will install in preferred location +-rm -f ${RPM_BUILD_ROOT}/usr/COPYING +-rm -f ${RPM_BUILD_ROOT}/usr/README ++rm -f ${RPM_BUILD_ROOT}%{_prefix}/COPYING ++rm -f ${RPM_BUILD_ROOT}%{_prefix}/README + + # Remove files we don't want installed at all +-rm -f ${RPM_BUILD_ROOT}/usr/INSTALL-BINARY +-rm -f ${RPM_BUILD_ROOT}/usr/docs/ChangeLog +-rm -f ${RPM_BUILD_ROOT}/usr/data/mysql/.empty +-rm -f ${RPM_BUILD_ROOT}/usr/data/test/.empty ++rm -f ${RPM_BUILD_ROOT}%{_prefix}/INSTALL-BINARY ++rm -f ${RPM_BUILD_ROOT}%{_prefix}/docs/ChangeLog ++rm -f ${RPM_BUILD_ROOT}%{_prefix}/data/mysql/.empty ++rm -f ${RPM_BUILD_ROOT}%{_prefix}/data/test/.empty + # should move this to /etc/ ? + rm -f ${RPM_BUILD_ROOT}%{_bindir}/mysqlaccess.conf + rm -f ${RPM_BUILD_ROOT}%{_bindir}/mysql_embedded ++rm -f ${RPM_BUILD_ROOT}%{_bindir}/mysqlhotcopy + rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/*.a + rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/binary-configure + rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/magic +@@ -414,9 +440,10 @@ rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql + rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/comp_err.1* + rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mysql-stress-test.pl.1* + rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mysql-test-run.pl.1* ++rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mysqlhotcopy.1* + +-mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d +-echo "%{_libdir}/mysql" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf ++mkdir -p $RPM_BUILD_ROOT%{_root_sysconfdir}/ld.so.conf.d ++echo "%{_libdir}/mysql" > $RPM_BUILD_ROOT%{_root_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf + + # copy additional docs into build tree so %%doc will find them + cp %{SOURCE6} README.mysql-docs +@@ -438,15 +465,15 @@ rm -rf $RPM_BUILD_ROOT + + %post server + if [ $1 = 1 ]; then +- /sbin/chkconfig --add mysqld ++ /sbin/chkconfig --add %{?scl_prefix}mysqld + fi +-/bin/chmod 0755 /var/lib/mysql +-/bin/touch /var/log/mysqld.log ++/bin/chmod 0755 %{_scl_root}/var/lib/mysql ++/bin/touch %{_scl_root}/var/log/mysqld.log + + %preun server + if [ $1 = 0 ]; then +- /sbin/service mysqld stop >/dev/null 2>&1 +- /sbin/chkconfig --del mysqld ++ /sbin/service %{?scl_prefix}mysqld stop >/dev/null 2>&1 ++ /sbin/chkconfig --del %{?scl_prefix}mysqld + fi + + %postun libs +@@ -456,7 +483,7 @@ fi + + %postun server + if [ $1 -ge 1 ]; then +- /sbin/service mysqld condrestart >/dev/null 2>&1 || : ++ /sbin/service %{?scl_prefix}mysqld condrestart >/dev/null 2>&1 || : + fi + + +@@ -498,7 +525,7 @@ fi + %doc README COPYING README.mysql-license + # although the default my.cnf contains only server settings, we put it in the + # libs package because it can be used for client settings too. +-%config(noreplace) /etc/my.cnf ++%config(noreplace) %{_sysconfdir}/my.cnf + %dir %{_libdir}/mysql + %{_libdir}/mysql/libmysqlclient.so.* + /etc/ld.so.conf.d/* +@@ -550,7 +577,7 @@ fi + %{_bindir}/mysqldumpslow + %{_bindir}/mysqld_multi + %{_bindir}/mysqld_safe +-%{_bindir}/mysqlhotcopy ++#%{_bindir}/mysqlhotcopy + %{_bindir}/mysqltest + %{_bindir}/innochecksum + %{_bindir}/perror +@@ -558,7 +585,7 @@ fi + %{_bindir}/resolve_stack_dump + %{_bindir}/resolveip + +-/usr/libexec/mysqld ++%{_libexecdir}/mysqld + + %{_libdir}/mysql/INFO_SRC + %{_libdir}/mysql/INFO_BIN +@@ -586,7 +613,7 @@ fi + %{_mandir}/man1/mysqlcheck.1* + %{_mandir}/man1/mysqld_multi.1* + %{_mandir}/man1/mysqld_safe.1* +-%{_mandir}/man1/mysqlhotcopy.1* ++#%{_mandir}/man1/mysqlhotcopy.1* + %{_mandir}/man1/mysqlimport.1* + %{_mandir}/man1/mysqlman.1* + %{_mandir}/man1/mysql_setpermission.1* +@@ -607,16 +634,17 @@ fi + %{_datadir}/mysql/my-*.cnf + %{_datadir}/mysql/config.*.ini + +-/etc/rc.d/init.d/mysqld +-/etc/tmpfiles.d/mysql.conf +-%attr(0755,mysql,mysql) %dir /var/run/mysqld +-%attr(0755,mysql,mysql) %dir /var/lib/mysql +-%attr(0640,mysql,mysql) %config(noreplace) %verify(not md5 size mtime) /var/log/mysqld.log ++/etc/rc.d/init.d/%{?scl_prefix}mysqld ++#/etc/tmpfiles.d/%{?scl_prefix}mysql.conf ++%attr(0755,mysql,mysql) %dir %{_scl_root}/var/run/mysqld ++%attr(0755,mysql,mysql) %dir %{_scl_root}/var/lib/mysql ++%attr(0640,mysql,mysql) %config(noreplace) %verify(not md5 size mtime) %{_scl_root}/var/log/mysqld.log ++%{_scl_root}/var/lock/subsys/ + + %files devel + %defattr(-,root,root) +-/usr/include/mysql +-/usr/share/aclocal/mysql.m4 ++%{_includedir}/mysql ++%{_datadir}/aclocal/mysql.m4 + %{_libdir}/mysql/libmysqlclient.so + %{_libdir}/mysql/libmysqlclient_r.so + diff --git a/mysql55/mysql.spec.nodsc b/mysql55/mysql.spec.nodsc new file mode 100644 index 0000000..c56cd1f --- /dev/null +++ b/mysql55/mysql.spec.nodsc @@ -0,0 +1,1759 @@ +Name: mysql +Version: 5.5.21 +Release: 1%{?dist} + +Summary: MySQL client programs and shared libraries +Group: Applications/Databases +URL: http://www.mysql.com +# exceptions allow client libraries to be linked with most open source SW, +# not only GPL code. See README.mysql-license +License: GPLv2 with exceptions + +# Regression tests take a long time, you can skip 'em with this +%{!?runselftest:%global runselftest 1} + +# Upstream has a mirror redirector for downloads, so the URL is hard to +# represent statically. You can get the tarball by following a link from +# http://dev.mysql.com/downloads/mysql/ +Source0: mysql-%{version}-nodocs.tar.gz +# The upstream tarball includes non-free documentation that we cannot ship. +# To remove the non-free documentation, run this script after downloading +# the tarball into the current directory: +# ./generate-tarball.sh $VERSION +Source1: generate-tarball.sh +Source2: mysql.init +Source3: my.cnf +Source4: scriptstub.c +Source5: my_config.h +Source6: README.mysql-docs +Source7: README.mysql-license +Source8: libmysql.version +Source9: mysql-embedded-check.c +Source10: mysql.tmpfiles.d +Source14: rh-skipped-tests-base.list +Source15: rh-skipped-tests-arm.list +# Working around perl dependency checking bug in rpm FTTB. Remove later. +Source999: filter-requires-mysql.sh + +# Comments for these patches are in the patch files. +Patch1: mysql-errno.patch +Patch2: mysql-strmov.patch +Patch3: mysql-install-test.patch +Patch4: mysql-expired-certs.patch +Patch5: mysql-stack-guard.patch +Patch6: mysql-chain-certs.patch +Patch7: mysql-versioning.patch +Patch8: mysql-dubious-exports.patch +Patch10: mysql-plugin-bool.patch +Patch11: mysql-s390-tsc.patch +Patch12: mysql-openssl-test.patch +Patch14: mysql-va-list.patch +Patch15: mysql-netdevname.patch +Patch17: mysql-plugin-test.patch +Patch18: mysql-default-cipher.patch +Patch19: mysql-file-contents.patch + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: perl, readline-devel, openssl-devel +BuildRequires: gcc-c++, cmake, ncurses-devel, zlib-devel, libaio-devel +BuildRequires: systemtap-sdt-devel +# make test requires time and ps +BuildRequires: time procps +# Socket and Time::HiRes are needed to run regression tests +BuildRequires: perl(Socket), perl(Time::HiRes) + +Requires: grep, fileutils +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: bash + +# MySQL (with caps) is upstream's spelling of their own RPMs for mysql +Conflicts: MySQL +# mysql-cluster used to be built from this SRPM, but no more +Obsoletes: mysql-cluster < 5.1.44 + +# When rpm 4.9 is universal, this could be cleaned up: +%global __perl_requires %{SOURCE999} +%global __perllib_requires %{SOURCE999} + +%description +MySQL is a multi-user, multi-threaded SQL database server. MySQL is a +client/server implementation consisting of a server daemon (mysqld) +and many different client programs and libraries. The base package +contains the standard MySQL client programs and generic MySQL files. + +%package libs + +Summary: The shared libraries required for MySQL clients +Group: Applications/Databases +Requires: /sbin/ldconfig + +%description libs +The mysql-libs package provides the essential shared libraries for any +MySQL client program or interface. You will need to install this package +to use any other MySQL package or any clients that need to connect to a +MySQL server. + +%package server + +Summary: The MySQL server and related files +Group: Applications/Databases +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: sh-utils +Requires(pre): /usr/sbin/useradd +Requires(post): chkconfig +Requires(preun): chkconfig +# This is for /sbin/service +Requires(preun): initscripts +Requires(postun): initscripts +# This is for /etc/tmpfiles.d +Requires: systemd-units +# mysqlhotcopy needs DBI/DBD support +Requires: perl-DBI, perl-DBD-MySQL +Conflicts: MySQL-server + +%description server +MySQL is a multi-user, multi-threaded SQL database server. MySQL is a +client/server implementation consisting of a server daemon (mysqld) +and many different client programs and libraries. This package contains +the MySQL server and some accompanying files and directories. + +%package devel + +Summary: Files for development of MySQL applications +Group: Applications/Databases +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: openssl-devel%{?_isa} +Conflicts: MySQL-devel + +%description devel +MySQL is a multi-user, multi-threaded SQL database server. This +package contains the libraries and header files that are needed for +developing MySQL client applications. + +%package embedded + +Summary: MySQL as an embeddable library +Group: Applications/Databases + +%description embedded +MySQL is a multi-user, multi-threaded SQL database server. This +package contains a version of the MySQL server that can be embedded +into a client application instead of running as a separate process. + +%package embedded-devel + +Summary: Development files for MySQL as an embeddable library +Group: Applications/Databases +Requires: %{name}-embedded%{?_isa} = %{version}-%{release} +Requires: %{name}-devel%{?_isa} = %{version}-%{release} + +%description embedded-devel +MySQL is a multi-user, multi-threaded SQL database server. This +package contains files needed for developing and testing with +the embedded version of the MySQL server. + +%package bench + +Summary: MySQL benchmark scripts and data +Group: Applications/Databases +Requires: %{name}%{?_isa} = %{version}-%{release} +Conflicts: MySQL-bench + +%description bench +MySQL is a multi-user, multi-threaded SQL database server. This +package contains benchmark scripts and data for use when benchmarking +MySQL. + +%package test + +Summary: The test suite distributed with MySQL +Group: Applications/Databases +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-server%{?_isa} = %{version}-%{release} +Conflicts: MySQL-test + +%description test +MySQL is a multi-user, multi-threaded SQL database server. This +package contains the regression test suite distributed with +the MySQL sources. + +%prep +%setup -q -n mysql-%{version} + +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch10 -p1 +%patch11 -p1 +%patch12 -p1 +%patch14 -p1 +%patch15 -p1 +%patch17 -p1 +%patch18 -p1 +%patch19 -p1 + +# workaround for upstream bug #56342 +rm -f mysql-test/t/ssl_8k_key-master.opt + +# upstream has fallen down badly on symbol versioning, do it ourselves +cp %{SOURCE8} libmysql/libmysql.version + +# generate a list of tests that fail, but are not disabled by upstream +cat %{SOURCE14} > mysql-test/rh-skipped-tests.list +# disable some tests failing on ARM architectures +%ifarch %{arm} +cat %{SOURCE15} >> mysql-test/rh-skipped-tests.list +%endif + +%build + +# fail quickly and obviously if user tries to build as root +%if %runselftest + if [ x"`id -u`" = x0 ]; then + echo "mysql's regression tests fail if run as root." + echo "If you really need to build the RPM as root, use" + echo "--define='runselftest 0' to skip the regression tests." + exit 1 + fi +%endif + +CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" +# MySQL 4.1.10 definitely doesn't work under strict aliasing; also, +# gcc 4.1 breaks MySQL 5.0.16 without -fwrapv +CFLAGS="$CFLAGS -fno-strict-aliasing -fwrapv" +# force PIC mode so that we can build libmysqld.so +CFLAGS="$CFLAGS -fPIC" +# gcc seems to have some bugs on sparc as of 4.4.1, back off optimization +# submitted as bz #529298 +%ifarch sparc sparcv9 sparc64 +CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O1|g" ` +%endif +CXXFLAGS="$CFLAGS" +export CFLAGS CXXFLAGS + +# The INSTALL_xxx macros have to be specified relative to CMAKE_INSTALL_PREFIX +# so we can't use %%{_datadir} and so forth here. + +cmake . -DBUILD_CONFIG=mysql_release \ + -DFEATURE_SET="community" \ + -DINSTALL_LAYOUT=RPM \ + -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ + -DINSTALL_INCLUDEDIR=include/mysql \ + -DINSTALL_INFODIR=share/info \ + -DINSTALL_LIBDIR="%{_lib}/mysql" \ + -DINSTALL_MANDIR=share/man \ + -DINSTALL_MYSQLSHAREDIR=share/mysql \ + -DINSTALL_MYSQLTESTDIR=share/mysql-test \ + -DINSTALL_PLUGINDIR="%{_lib}/mysql/plugin" \ + -DINSTALL_SBINDIR=libexec \ + -DINSTALL_SCRIPTDIR=bin \ + -DINSTALL_SQLBENCHDIR=share \ + -DINSTALL_SUPPORTFILESDIR=share/mysql \ + -DMYSQL_DATADIR="/var/lib/mysql" \ + -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \ + -DENABLED_LOCAL_INFILE=ON \ + -DENABLE_DTRACE=ON \ + -DWITH_EMBEDDED_SERVER=ON \ + -DWITH_READLINE=ON \ + -DWITH_SSL=system \ + -DWITH_ZLIB=system + +gcc $CFLAGS $LDFLAGS -o scriptstub "-DLIBDIR=\"%{_libdir}/mysql\"" %{SOURCE4} + +make %{?_smp_mflags} VERBOSE=1 + +# regular build will make libmysqld.a but not libmysqld.so :-( +mkdir libmysqld/work +cd libmysqld/work +ar -x ../libmysqld.a +# these result in missing dependencies: (filed upstream as bug 59104) +rm -f sql_binlog.cc.o rpl_utility.cc.o +gcc $CFLAGS $LDFLAGS -shared -Wl,-soname,libmysqld.so.0 -o libmysqld.so.0.0.1 \ + *.o ../../probes_mysql.o \ + -lpthread -laio -lcrypt -lssl -lcrypto -lz -lrt -lstdc++ -ldl -lm -lc +# this is to check that we built a complete library +cp %{SOURCE9} . +ln -s libmysqld.so.0.0.1 libmysqld.so.0 +gcc -I../../include $CFLAGS mysql-embedded-check.c libmysqld.so.0 +LD_LIBRARY_PATH=. ldd ./a.out +cd ../.. + +%if %runselftest + # hack to let 32- and 64-bit tests run concurrently on same build machine + case `uname -m` in + ppc64 | s390x | x86_64 | sparc64 ) + MTR_BUILD_THREAD=7 + ;; + *) + MTR_BUILD_THREAD=11 + ;; + esac + export MTR_BUILD_THREAD + + make test + + # The cmake build scripts don't provide any simple way to control the + # options for mysql-test-run, so ignore the make target and just call it + # manually. Nonstandard options chosen are: + # --force to continue tests after a failure + # no retries please + # test SSL with --ssl + # skip tests that are listed in rh-skipped-tests.list + # avoid redundant test runs with --binlog-format=mixed + # increase timeouts to prevent unwanted failures during mass rebuilds + ( + cd mysql-test + perl ./mysql-test-run.pl --force --retry=0 --ssl \ + --skip-test-list=rh-skipped-tests.list \ + --mysqld=--binlog-format=mixed \ + --suite-timeout=720 --testcase-timeout=30 + # cmake build scripts will install the var cruft if left alone :-( + rm -rf var + ) +%endif + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install + +# List the installed tree for RPM package maintenance purposes. +find $RPM_BUILD_ROOT -print | sed "s|^$RPM_BUILD_ROOT||" | sort > ROOTFILES + +# multilib header hacks +# we only apply this to known Red Hat multilib arches, per bug #181335 +case `uname -i` in + i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 ) + mv $RPM_BUILD_ROOT/usr/include/mysql/my_config.h $RPM_BUILD_ROOT/usr/include/mysql/my_config_`uname -i`.h + install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/usr/include/mysql/ + ;; + *) + ;; +esac + +# cmake generates some completely wacko references to -lprobes_mysql when +# building with dtrace support. Haven't found where to shut that off, +# so resort to this blunt instrument. While at it, let's not reference +# libmysqlclient_r anymore either. +sed -e 's/-lprobes_mysql//' -e 's/-lmysqlclient_r/-lmysqlclient/' \ + ${RPM_BUILD_ROOT}%{_bindir}/mysql_config >mysql_config.tmp +cp -f mysql_config.tmp ${RPM_BUILD_ROOT}%{_bindir}/mysql_config +chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/mysql_config + +# install INFO_SRC, INFO_BIN into libdir (upstream thinks these are doc files, +# but that's pretty wacko --- see also mysql-file-contents.patch) +install -m 644 Docs/INFO_SRC ${RPM_BUILD_ROOT}%{_libdir}/mysql/ +install -m 644 Docs/INFO_BIN ${RPM_BUILD_ROOT}%{_libdir}/mysql/ + +mkdir -p $RPM_BUILD_ROOT/var/log +touch $RPM_BUILD_ROOT/var/log/mysqld.log + +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d +mkdir -p $RPM_BUILD_ROOT/var/run/mysqld +install -m 0755 -d $RPM_BUILD_ROOT/var/lib/mysql +install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysqld +install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/etc/my.cnf + +mkdir -p $RPM_BUILD_ROOT/etc/tmpfiles.d +install -m 0644 %{SOURCE10} $RPM_BUILD_ROOT/etc/tmpfiles.d/mysql.conf + +# Fix funny permissions that cmake build scripts apply to config files +chmod 644 ${RPM_BUILD_ROOT}%{_datadir}/mysql/config.*.ini + +# Fix scripts for multilib safety +mv ${RPM_BUILD_ROOT}%{_bindir}/mysqlbug ${RPM_BUILD_ROOT}%{_libdir}/mysql/mysqlbug +install -m 0755 scriptstub ${RPM_BUILD_ROOT}%{_bindir}/mysqlbug +mv ${RPM_BUILD_ROOT}%{_bindir}/mysql_config ${RPM_BUILD_ROOT}%{_libdir}/mysql/mysql_config +install -m 0755 scriptstub ${RPM_BUILD_ROOT}%{_bindir}/mysql_config + +# Remove libmysqld.a, install libmysqld.so +rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.a +install -m 0755 libmysqld/work/libmysqld.so.0.0.1 ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.so.0.0.1 +ln -s libmysqld.so.0.0.1 ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.so.0 +ln -s libmysqld.so.0 ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.so + +# libmysqlclient_r is no more. Upstream tries to replace it with symlinks +# but that really doesn't work (wrong soname in particular). We'll keep +# just the devel libmysqlclient_r.so link, so that rebuilding without any +# source change is enough to get rid of dependency on libmysqlclient_r. +rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqlclient_r.so* +ln -s libmysqlclient.so ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqlclient_r.so + +# mysql-test includes one executable that doesn't belong under /usr/share, +# so move it and provide a symlink +mv ${RPM_BUILD_ROOT}%{_datadir}/mysql-test/lib/My/SafeProcess/my_safe_process ${RPM_BUILD_ROOT}%{_bindir} +ln -s ../../../../../bin/my_safe_process ${RPM_BUILD_ROOT}%{_datadir}/mysql-test/lib/My/SafeProcess/my_safe_process + +# Remove files that %%doc will install in preferred location +rm -f ${RPM_BUILD_ROOT}/usr/COPYING +rm -f ${RPM_BUILD_ROOT}/usr/README + +# Remove files we don't want installed at all +rm -f ${RPM_BUILD_ROOT}/usr/INSTALL-BINARY +rm -f ${RPM_BUILD_ROOT}/usr/docs/ChangeLog +rm -f ${RPM_BUILD_ROOT}/usr/data/mysql/.empty +rm -f ${RPM_BUILD_ROOT}/usr/data/test/.empty +# should move this to /etc/ ? +rm -f ${RPM_BUILD_ROOT}%{_bindir}/mysqlaccess.conf +rm -f ${RPM_BUILD_ROOT}%{_bindir}/mysql_embedded +rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/*.a +rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/binary-configure +rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/magic +rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/ndb-config-2-node.ini +rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysql.server +rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysqld_multi.server +rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysql-log-rotate +rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/comp_err.1* +rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mysql-stress-test.pl.1* +rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mysql-test-run.pl.1* + +mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d +echo "%{_libdir}/mysql" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf + +# copy additional docs into build tree so %%doc will find them +cp %{SOURCE6} README.mysql-docs +cp %{SOURCE7} README.mysql-license + +# install the list of skipped tests to be available for user runs +install -m 0644 mysql-test/rh-skipped-tests.list ${RPM_BUILD_ROOT}%{_datadir}/mysql-test + +%clean +rm -rf $RPM_BUILD_ROOT + +%pre server +/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || : +/usr/sbin/useradd -M -N -g mysql -o -r -d /var/lib/mysql -s /bin/bash \ + -c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || : + +%post libs +/sbin/ldconfig + +%post server +if [ $1 = 1 ]; then + /sbin/chkconfig --add mysqld +fi +/bin/chmod 0755 /var/lib/mysql +/bin/touch /var/log/mysqld.log + +%preun server +if [ $1 = 0 ]; then + /sbin/service mysqld stop >/dev/null 2>&1 + /sbin/chkconfig --del mysqld +fi + +%postun libs +if [ $1 = 0 ] ; then + /sbin/ldconfig +fi + +%postun server +if [ $1 -ge 1 ]; then + /sbin/service mysqld condrestart >/dev/null 2>&1 || : +fi + + +%files +%defattr(-,root,root) +%doc README COPYING README.mysql-license +%doc README.mysql-docs + +%{_bindir}/msql2mysql +%{_bindir}/mysql +%{_bindir}/mysql_config +%{_bindir}/mysql_find_rows +%{_bindir}/mysql_waitpid +%{_bindir}/mysqlaccess +%{_bindir}/mysqladmin +%{_bindir}/mysqlbinlog +%{_bindir}/mysqlcheck +%{_bindir}/mysqldump +%{_bindir}/mysqlimport +%{_bindir}/mysqlshow +%{_bindir}/mysqlslap +%{_bindir}/my_print_defaults + +%{_mandir}/man1/mysql.1* +%{_mandir}/man1/mysql_config.1* +%{_mandir}/man1/mysql_find_rows.1* +%{_mandir}/man1/mysql_waitpid.1* +%{_mandir}/man1/mysqlaccess.1* +%{_mandir}/man1/mysqladmin.1* +%{_mandir}/man1/mysqldump.1* +%{_mandir}/man1/mysqlshow.1* +%{_mandir}/man1/mysqlslap.1* +%{_mandir}/man1/my_print_defaults.1* + +%{_libdir}/mysql/mysql_config + +%files libs +%defattr(-,root,root) +%doc README COPYING README.mysql-license +# although the default my.cnf contains only server settings, we put it in the +# libs package because it can be used for client settings too. +%config(noreplace) /etc/my.cnf +%dir %{_libdir}/mysql +%{_libdir}/mysql/libmysqlclient.so.* +/etc/ld.so.conf.d/* + +%dir %{_datadir}/mysql +%{_datadir}/mysql/english +%lang(cs) %{_datadir}/mysql/czech +%lang(da) %{_datadir}/mysql/danish +%lang(nl) %{_datadir}/mysql/dutch +%lang(et) %{_datadir}/mysql/estonian +%lang(fr) %{_datadir}/mysql/french +%lang(de) %{_datadir}/mysql/german +%lang(el) %{_datadir}/mysql/greek +%lang(hu) %{_datadir}/mysql/hungarian +%lang(it) %{_datadir}/mysql/italian +%lang(ja) %{_datadir}/mysql/japanese +%lang(ko) %{_datadir}/mysql/korean +%lang(no) %{_datadir}/mysql/norwegian +%lang(no) %{_datadir}/mysql/norwegian-ny +%lang(pl) %{_datadir}/mysql/polish +%lang(pt) %{_datadir}/mysql/portuguese +%lang(ro) %{_datadir}/mysql/romanian +%lang(ru) %{_datadir}/mysql/russian +%lang(sr) %{_datadir}/mysql/serbian +%lang(sk) %{_datadir}/mysql/slovak +%lang(es) %{_datadir}/mysql/spanish +%lang(sv) %{_datadir}/mysql/swedish +%lang(uk) %{_datadir}/mysql/ukrainian +%{_datadir}/mysql/charsets + +%files server +%defattr(-,root,root) +%doc support-files/*.cnf + +%{_bindir}/myisamchk +%{_bindir}/myisam_ftdump +%{_bindir}/myisamlog +%{_bindir}/myisampack +%{_bindir}/mysql_convert_table_format +%{_bindir}/mysql_fix_extensions +%{_bindir}/mysql_install_db +%{_bindir}/mysql_plugin +%{_bindir}/mysql_secure_installation +%{_bindir}/mysql_setpermission +%{_bindir}/mysql_tzinfo_to_sql +%{_bindir}/mysql_upgrade +%{_bindir}/mysql_zap +%{_bindir}/mysqlbug +%{_bindir}/mysqldumpslow +%{_bindir}/mysqld_multi +%{_bindir}/mysqld_safe +%{_bindir}/mysqlhotcopy +%{_bindir}/mysqltest +%{_bindir}/innochecksum +%{_bindir}/perror +%{_bindir}/replace +%{_bindir}/resolve_stack_dump +%{_bindir}/resolveip + +/usr/libexec/mysqld + +%{_libdir}/mysql/INFO_SRC +%{_libdir}/mysql/INFO_BIN + +%{_libdir}/mysql/mysqlbug + +%{_libdir}/mysql/plugin + +%{_mandir}/man1/msql2mysql.1* +%{_mandir}/man1/myisamchk.1* +%{_mandir}/man1/myisamlog.1* +%{_mandir}/man1/myisampack.1* +%{_mandir}/man1/mysql_convert_table_format.1* +%{_mandir}/man1/myisam_ftdump.1* +%{_mandir}/man1/mysql.server.1* +%{_mandir}/man1/mysql_fix_extensions.1* +%{_mandir}/man1/mysql_install_db.1* +%{_mandir}/man1/mysql_plugin.1* +%{_mandir}/man1/mysql_secure_installation.1* +%{_mandir}/man1/mysql_upgrade.1* +%{_mandir}/man1/mysql_zap.1* +%{_mandir}/man1/mysqlbug.1* +%{_mandir}/man1/mysqldumpslow.1* +%{_mandir}/man1/mysqlbinlog.1* +%{_mandir}/man1/mysqlcheck.1* +%{_mandir}/man1/mysqld_multi.1* +%{_mandir}/man1/mysqld_safe.1* +%{_mandir}/man1/mysqlhotcopy.1* +%{_mandir}/man1/mysqlimport.1* +%{_mandir}/man1/mysqlman.1* +%{_mandir}/man1/mysql_setpermission.1* +%{_mandir}/man1/mysqltest.1* +%{_mandir}/man1/innochecksum.1* +%{_mandir}/man1/perror.1* +%{_mandir}/man1/replace.1* +%{_mandir}/man1/resolve_stack_dump.1* +%{_mandir}/man1/resolveip.1* +%{_mandir}/man1/mysql_tzinfo_to_sql.1* +%{_mandir}/man8/mysqld.8* + +%{_datadir}/mysql/errmsg-utf8.txt +%{_datadir}/mysql/fill_help_tables.sql +%{_datadir}/mysql/mysql_system_tables.sql +%{_datadir}/mysql/mysql_system_tables_data.sql +%{_datadir}/mysql/mysql_test_data_timezone.sql +%{_datadir}/mysql/my-*.cnf +%{_datadir}/mysql/config.*.ini + +/etc/rc.d/init.d/mysqld +/etc/tmpfiles.d/mysql.conf +%attr(0755,mysql,mysql) %dir /var/run/mysqld +%attr(0755,mysql,mysql) %dir /var/lib/mysql +%attr(0640,mysql,mysql) %config(noreplace) %verify(not md5 size mtime) /var/log/mysqld.log + +%files devel +%defattr(-,root,root) +/usr/include/mysql +/usr/share/aclocal/mysql.m4 +%{_libdir}/mysql/libmysqlclient.so +%{_libdir}/mysql/libmysqlclient_r.so + +%files embedded +%defattr(-,root,root) +%doc README COPYING README.mysql-license +%{_libdir}/mysql/libmysqld.so.* + +%files embedded-devel +%defattr(-,root,root) +%{_libdir}/mysql/libmysqld.so +%{_bindir}/mysql_client_test_embedded +%{_bindir}/mysqltest_embedded +%{_mandir}/man1/mysql_client_test_embedded.1* +%{_mandir}/man1/mysqltest_embedded.1* + +%files bench +%defattr(-,root,root) +%{_datadir}/sql-bench + +%files test +%defattr(-,root,root) +%{_bindir}/mysql_client_test +%{_bindir}/my_safe_process +%attr(-,mysql,mysql) %{_datadir}/mysql-test + +%{_mandir}/man1/mysql_client_test.1* + +%changelog +* Mon Feb 27 2012 Tom Lane <tgl@redhat.com> 5.5.21-1 +- Update to MySQL 5.5.21, for various fixes described at + http://dev.mysql.com/doc/refman/5.5/en/news-5-5-21.html +- Hack openssl regression test to still work with rawhide's openssl +- Fix assorted failures in post-install regression tests (mysql-test RPM) +Resolves: #789530 +- Revise our test-disabling method to make it possible to disable tests on a + platform-specific basis, and also to get rid of mysql-disable-test.patch, + which broke in just about every upstream update (Honza Horak) +- Disable cycle-counter-dependent regression tests on ARM, since there is + not currently any support for that in Fedora ARM kernels +Resolves: #773116 + +* Fri Jan 27 2012 Tom Lane <tgl@redhat.com> 5.5.20-1 +- Update to MySQL 5.5.20, for various fixes described at + http://dev.mysql.com/doc/refman/5.5/en/news-5-5-20.html + as well as security fixes described at + http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html +Resolves: #783828 + +* Wed Jan 4 2012 Tom Lane <tgl@redhat.com> 5.5.19-1 +- Update to MySQL 5.5.19, for various fixes described at + http://dev.mysql.com/doc/refman/5.5/en/news-5-5-19.html + +* Mon Nov 21 2011 Tom Lane <tgl@redhat.com> 5.5.18-1 +- Update to MySQL 5.5.18, for various fixes described at + http://dev.mysql.com/doc/refman/5.5/en/news-5-5-18.html +- Don't assume all ethernet devices are named ethX +Resolves: #682365 + +* Sun Oct 16 2011 Tom Lane <tgl@redhat.com> 5.5.15-1.1 +- Fix unportable usage associated with va_list arguments +Resolves: #744707 + +* Fri Jul 29 2011 Tom Lane <tgl@redhat.com> 5.5.15-1 +- Update to MySQL 5.5.15, for various fixes described at + http://dev.mysql.com/doc/refman/5.5/en/news-5-5-15.html + +* Tue Jul 12 2011 Tom Lane <tgl@redhat.com> 5.5.14-2 +- Remove make_scrambled_password and make_scrambled_password_323 from mysql.h, + since we're not allowing clients to call those functions anyway +Related: #690346 + +* Mon Jul 11 2011 Tom Lane <tgl@redhat.com> 5.5.14-1 +- Update to MySQL 5.5.14, for various fixes described at + http://dev.mysql.com/doc/refman/5.5/en/news-5-5-14.html + +* Wed Jul 6 2011 Tom Lane <tgl@redhat.com> 5.5.13-2 +- Remove erroneously-included Default-Start line from LSB init block +Resolves: #717024 + +* Thu Jun 2 2011 Tom Lane <tgl@redhat.com> 5.5.13-1 +- Update to MySQL 5.5.13, for various fixes described at + http://dev.mysql.com/doc/refman/5.5/en/news-5-5-13.html + +* Tue May 10 2011 Tom Lane <tgl@redhat.com> 5.5.12-1 +- Update to MySQL 5.5.12, for various fixes described at + http://dev.mysql.com/doc/refman/5.5/en/news-5-5-12.html + +* Tue May 10 2011 Tom Lane <tgl@redhat.com> 5.5.10-3 +- Add LSB init block to initscript, to ensure sane ordering at system boot +Resolves: #703214 +- Improve initscript start action to notice when mysqladmin is failing + because of configuration problems +Related: #703476 +- Remove exclusion of "gis" regression test, since upstream bug 59908 + is fixed (for some value of "fixed") as of 5.5.10. + +* Wed Mar 23 2011 Tom Lane <tgl@redhat.com> 5.5.10-2 +- Add my_make_scrambled_password to the list of symbols exported by + libmysqlclient.so. Needed at least by pure-ftpd. + +* Mon Mar 21 2011 Tom Lane <tgl@redhat.com> 5.5.10-1 +- Update to MySQL 5.5.10, for various fixes described at + http://dev.mysql.com/doc/refman/5.5/en/news-5-5-10.html + Note that this includes a rather belated soname version bump for + libmysqlclient.so, from .16 to .18 +- Add tmpfiles.d config file so that /var/run/mysqld is recreated at boot + (only needed in Fedora 15 and later) +Resolves: #658938 + +* Wed Feb 16 2011 Tom Lane <tgl@redhat.com> 5.5.9-2 +- Disable a regression test that is now showing platform-dependent results +Resolves: #674253 + +* Sat Feb 12 2011 Tom Lane <tgl@redhat.com> 5.5.9-1 +- Update to MySQL 5.5.9, for various fixes described at + http://dev.mysql.com/doc/refman/5.5/en/news-5-5-9.html +- Add %%{?_isa} to cross-subpackage Requires, per latest packaging guidelines + +* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5.8-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Feb 4 2011 Tom Lane <tgl@redhat.com> 5.5.8-9 +- Support s390/s390x in performance schema's cycle-counting functions + (needed to make regression tests pass on these platforms) + +* Thu Feb 3 2011 Tom Lane <tgl@redhat.com> 5.5.8-8 +- PPC64 floating-point differences are not masked by -ffloat-store after all, + so let's just disable gis regression test till upstream makes it less picky +Resolves: #674253 +- Add __perllib_requires setting to make rpm 4.9 do what we need + +* Wed Feb 2 2011 Tom Lane <tgl@redhat.com> 5.5.8-7 +- Work around some portability issues on PPC64 +Resolves: #674253 + +* Thu Jan 20 2011 Tom Lane <tgl@redhat.com> 5.5.8-6 +- Remove no-longer-needed special switches in CXXFLAGS, per yesterday's + discussion in fedora-devel about -fexceptions. +- Rebuild needed anyway to check compatibility with latest systemtap. + +* Thu Jan 13 2011 Tom Lane <tgl@redhat.com> 5.5.8-5 +- Fix failure to honor MYSQL_HOME environment variable +Resolves: #669364 + +* Thu Jan 13 2011 Tom Lane <tgl@redhat.com> 5.5.8-4 +- Fix crash during startup of embedded mysqld library +Resolves: #667365 + +* Mon Jan 3 2011 Tom Lane <tgl@redhat.com> 5.5.8-3 +- my_print_help, load_defaults, free_defaults, and handle_options all turn + out to be documented/recommended in Paul DuBois' MySQL book, so we'd better + consider them part of the de-facto API. +Resolves: #666728 + +* Mon Dec 27 2010 Tom Lane <tgl@redhat.com> 5.5.8-2 +- Add mysql_client_errors[] to the set of exported libmysqlclient symbols; + needed by PHP. + +* Thu Dec 23 2010 Tom Lane <tgl@redhat.com> 5.5.8-1 +- Update to MySQL 5.5.8 (major version bump). Note this includes removal + of libmysqlclient_r.so. +- Add a linker version script to hide libmysqlclient functions that aren't + part of the documented API. + +* Mon Nov 1 2010 Tom Lane <tgl@redhat.com> 5.1.52-1 +- Update to MySQL 5.1.52, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-52.html +Resolves: #646569 + +* Thu Oct 7 2010 Tom Lane <tgl@redhat.com> 5.1.51-2 +- Re-disable the outfile_loaddata test, per report from Dan Horak. + +* Wed Oct 6 2010 Tom Lane <tgl@redhat.com> 5.1.51-1 +- Update to MySQL 5.1.51, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-51.html + +* Sat Aug 28 2010 Tom Lane <tgl@redhat.com> 5.1.50-2 +- Include my_compiler.h in distribution, per upstream bug #55846. + Otherwise PHP, for example, won't build. + +* Sat Aug 28 2010 Tom Lane <tgl@redhat.com> 5.1.50-1 +- Update to MySQL 5.1.50, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-50.html + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-49.html + +* Wed Jul 14 2010 Tom Lane <tgl@redhat.com> 5.1.48-3 +- Fix FTBFS with gcc 4.5. +Related: #614293 + +* Tue Jul 13 2010 Tom Lane <tgl@redhat.com> 5.1.48-2 +- Duplicate COPYING and EXCEPTIONS-CLIENT in -libs and -embedded subpackages, + to ensure they are available when any subset of mysql RPMs are installed, + per revised packaging guidelines +- Allow init script's STARTTIMEOUT/STOPTIMEOUT to be overridden from sysconfig +Related: #609734 + +* Mon Jun 21 2010 Tom Lane <tgl@redhat.com> 5.1.48-1 +- Update to MySQL 5.1.48, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-48.html + including a fix for CVE-2010-2008 +Related: #614214 + +* Fri Jun 4 2010 Tom Lane <tgl@redhat.com> 5.1.47-2 +- Add back "partition" storage engine +Resolves: #597390 +- Fix broken "federated" storage engine plugin +Related: #587170 +- Read all certificates in SSL certificate files, to support chained certs +Related: #598656 + +* Mon May 24 2010 Tom Lane <tgl@redhat.com> 5.1.47-1 +- Update to MySQL 5.1.47, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-47.html + including fixes for CVE-2010-1848, CVE-2010-1849, CVE-2010-1850 +Resolves: #592862 +Resolves: #583717 +- Create mysql group explicitly in pre-server script, to ensure correct GID +Related: #594155 + +* Sat Apr 24 2010 Tom Lane <tgl@redhat.com> 5.1.46-1 +- Update to MySQL 5.1.46, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-46.html + +* Thu Mar 25 2010 Tom Lane <tgl@redhat.com> 5.1.45-2 +- Fix multiple problems described in upstream bug 52019, because regression + tests fail on PPC if we don't. + +* Wed Mar 24 2010 Tom Lane <tgl@redhat.com> 5.1.45-1 +- Update to MySQL 5.1.45, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-45.html + +* Sun Feb 21 2010 Tom Lane <tgl@redhat.com> 5.1.44-2 +- Add "Obsoletes: mysql-cluster" to fix upgrade-in-place from F-12 +- Bring init script into some modicum of compliance with Fedora/LSB standards +Related: #557711 +Related: #562749 + +* Sat Feb 20 2010 Tom Lane <tgl@redhat.com> 5.1.44-1 +- Update to MySQL 5.1.44, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-44.html +- Remove mysql.info, which is not freely redistributable +Resolves: #560181 +- Revert broken upstream fix for their bug 45058 +Resolves: #566547 + +* Sat Feb 13 2010 Tom Lane <tgl@redhat.com> 5.1.43-2 +- Remove mysql-cluster, which is no longer supported by upstream in this + source distribution. If we want it we'll need a separate SRPM for it. + +* Fri Feb 12 2010 Tom Lane <tgl@redhat.com> 5.1.43-1 +- Update to MySQL 5.1.43, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-43.html + +* Fri Jan 29 2010 Tom Lane <tgl@redhat.com> 5.1.42-7 +- Add backported patch for CVE-2008-7247 (upstream bug 39277) +Related: #543619 +- Use non-expired certificates for SSL testing (upstream bug 50702) + +* Tue Jan 26 2010 Tom Lane <tgl@redhat.com> 5.1.42-6 +- Emit explicit error message if user tries to build RPM as root +Related: #558915 + +* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 5.1.42-5 +- Correct Source0: tag and comment to reflect how to get the tarball + +* Fri Jan 8 2010 Tom Lane <tgl@redhat.com> 5.1.42-4 +- Disable symbolic links by default in /etc/my.cnf +Resolves: #553652 + +* Tue Jan 5 2010 Tom Lane <tgl@redhat.com> 5.1.42-3 +- Remove static libraries (.a files) from package, per packaging guidelines +- Change %%define to %%global, per packaging guidelines + +* Sat Jan 2 2010 Tom Lane <tgl@redhat.com> 5.1.42-2 +- Disable building the innodb plugin; it tickles assorted gcc bugs and + doesn't seem entirely ready for prime time anyway. + +* Fri Jan 1 2010 Tom Lane <tgl@redhat.com> 5.1.42-1 +- Update to MySQL 5.1.42, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-42.html +- Start mysqld_safe with --basedir=/usr, to avoid unwanted SELinux messages +Resolves: #547485 + +* Thu Dec 17 2009 Tom Lane <tgl@redhat.com> 5.1.41-2 +- Stop waiting during "service mysqld start" if mysqld_safe exits +Resolves: #544095 + +* Mon Nov 23 2009 Tom Lane <tgl@redhat.com> 5.1.41-1 +- Update to MySQL 5.1.41, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-41.html + including fixes for CVE-2009-4019 +Related: #540906 +- Don't set old_passwords=1; we aren't being bug-compatible with 3.23 anymore +Resolves: #540735 + +* Tue Nov 10 2009 Tom Lane <tgl@redhat.com> 5.1.40-1 +- Update to MySQL 5.1.40, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-40.html +- Do not force the --log-error setting in mysqld init script +Resolves: #533736 + +* Sat Oct 17 2009 Tom Lane <tgl@redhat.com> 5.1.39-4 +- Replace kluge fix for ndbd sparc crash with a real fix (mysql bug 48132) + +* Thu Oct 15 2009 Tom Lane <tgl@redhat.com> 5.1.39-3 +- Work around two different compiler bugs on sparc, one by backing off + optimization from -O2 to -O1, and the other with a klugy patch +Related: #529298, #529299 +- Clean up bogosity in multilib stub header support: ia64 should not be + listed (it's not multilib), sparc and sparc64 should be + +* Wed Sep 23 2009 Tom Lane <tgl@redhat.com> 5.1.39-2 +- Work around upstream bug 46895 by disabling outfile_loaddata test + +* Tue Sep 22 2009 Tom Lane <tgl@redhat.com> 5.1.39-1 +- Update to MySQL 5.1.39, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-39.html + +* Mon Aug 31 2009 Tom Lane <tgl@redhat.com> 5.1.37-5 +- Work around unportable assumptions about stpcpy(); re-enable main.mysql test +- Clean up some obsolete parameters to the configure script + +* Sat Aug 29 2009 Tom Lane <tgl@redhat.com> 5.1.37-4 +- Remove one misguided patch; turns out I was chasing a glibc bug +- Temporarily disable "main.mysql" test; there's something broken there too, + but we need to get mysql built in rawhide for dependency reasons + +* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 5.1.37-3 +- rebuilt with new openssl + +* Fri Aug 14 2009 Tom Lane <tgl@redhat.com> 5.1.37-2 +- Add a couple of patches to improve the probability of the regression tests + completing in koji builds + +* Sun Aug 2 2009 Tom Lane <tgl@redhat.com> 5.1.37-1 +- Update to MySQL 5.1.37, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-37.html + +* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.36-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Fri Jul 10 2009 Tom Lane <tgl@redhat.com> 5.1.36-1 +- Update to MySQL 5.1.36, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-36.html + +* Sat Jun 6 2009 Tom Lane <tgl@redhat.com> 5.1.35-1 +- Update to MySQL 5.1.35, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-35.html +- Ensure that /var/lib/mysql is created with the right SELinux context +Resolves: #502966 + +* Fri May 15 2009 Tom Lane <tgl@redhat.com> 5.1.34-1 +- Update to MySQL 5.1.34, for various fixes described at + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-34.html +- Increase startup timeout per bug #472222 + +* Wed Apr 15 2009 Tom Lane <tgl@redhat.com> 5.1.33-2 +- Increase stack size of ndbd threads for safety's sake. +Related: #494631 + +* Tue Apr 7 2009 Tom Lane <tgl@redhat.com> 5.1.33-1 +- Update to MySQL 5.1.33. +- Disable use of pthread_setschedparam; doesn't work the way code expects. +Related: #477624 + +* Wed Mar 4 2009 Tom Lane <tgl@redhat.com> 5.1.32-1 +- Update to MySQL 5.1.32. + +* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.31-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 13 2009 Tom Lane <tgl@redhat.com> 5.1.31-1 +- Update to MySQL 5.1.31. + +* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 5.1.30-2 +- hm, apparently --with-innodb and --with-ndbcluster are still needed + even though no longer documented ... + +* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 5.1.30-1 +- Update to MySQL 5.1.30. Note that this includes an ABI break for + libmysqlclient (it's now got .so major version 16). +- This also updates mysql for new openssl build + +* Wed Oct 1 2008 Tom Lane <tgl@redhat.com> 5.0.67-2 +- Build the "embedded server" library, and package it in a new sub-RPM + mysql-embedded, along with mysql-embedded-devel for devel support files. +Resolves: #149829 + +* Sat Aug 23 2008 Tom Lane <tgl@redhat.com> 5.0.67-1 +- Update to mysql version 5.0.67 +- Move mysql_config's man page to base package, again (apparently I synced + that change the wrong way while importing specfile changes for ndbcluster) + +* Sun Jul 27 2008 Tom Lane <tgl@redhat.com> 5.0.51a-2 +- Enable ndbcluster support +Resolves: #163758 +- Suppress odd crash messages during package build, caused by trying to + build dbug manual (which we don't install anyway) with dbug disabled +Resolves: #437053 +- Improve mysql.init to pass configured datadir to mysql_install_db, + and to force user=mysql for both mysql_install_db and mysqld_safe. +Related: #450178 + +* Mon Mar 3 2008 Tom Lane <tgl@redhat.com> 5.0.51a-1 +- Update to mysql version 5.0.51a + +* Mon Mar 3 2008 Tom Lane <tgl@redhat.com> 5.0.45-11 +- Fix mysql-stack-guard patch to work correctly on IA64 +- Fix mysql.init to wait correctly when socket is not in default place +Related: #435494 + +* Mon Mar 03 2008 Dennis Gilmore <dennis@ausil.us> 5.0.45-10 +- add sparc64 to 64 bit arches for test suite checking +- add sparc, sparcv9 and sparc64 to multilib handling + +* Thu Feb 28 2008 Tom Lane <tgl@redhat.com> 5.0.45-9 +- Fix the stack overflow problem encountered in January. It seems the real +issue is that the buildfarm machines were moved to RHEL5, which uses 64K not +4K pages on PPC, and because RHEL5 takes the guard area out of the requested +thread stack size we no longer had enough headroom. +Related: #435337 + +* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.0.45-8 +- Autorebuild for GCC 4.3 + +* Tue Jan 8 2008 Tom Lane <tgl@redhat.com> 5.0.45-7 +- Unbelievable ... upstream still thinks that it's a good idea to have a + regression test that is guaranteed to begin failing come January 1. +- ... and it seems we need to raise STACK_MIN_SIZE again too. + +* Thu Dec 13 2007 Tom Lane <tgl@redhat.com> 5.0.45-6 +- Back-port upstream fixes for CVE-2007-5925, CVE-2007-5969, CVE-2007-6303. +Related: #422211 + +* Wed Dec 5 2007 Tom Lane <tgl@redhat.com> 5.0.45-5 +- Rebuild for new openssl + +* Sat Aug 25 2007 Tom Lane <tgl@redhat.com> 5.0.45-4 +- Seems we need explicit BuildRequires on gawk and procps now +- Rebuild to fix Fedora toolchain issues + +* Sun Aug 12 2007 Tom Lane <tgl@redhat.com> 5.0.45-3 +- Recent perl changes in rawhide mean we need a more specific BuildRequires + +* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 5.0.45-2 +- Update License tag to match code. +- Work around recent Fedora change that makes "open" a macro name. + +* Sun Jul 22 2007 Tom Lane <tgl@redhat.com> 5.0.45-1 +- Update to MySQL 5.0.45 +Resolves: #246535 +- Move mysql_config's man page to base package +Resolves: #245770 +- move my_print_defaults to base RPM, for consistency with Stacks packaging +- mysql user is no longer deleted at RPM uninstall +Resolves: #241912 + +* Thu Mar 29 2007 Tom Lane <tgl@redhat.com> 5.0.37-2 +- Use a less hacky method of getting default values in initscript +Related: #233771, #194596 +- Improve packaging of mysql-libs per suggestions from Remi Collet +Resolves: #233731 +- Update default /etc/my.cnf ([mysql.server] has been bogus for a long time) + +* Mon Mar 12 2007 Tom Lane <tgl@redhat.com> 5.0.37-1 +- Update to MySQL 5.0.37 +Resolves: #231838 +- Put client library into a separate mysql-libs RPM to reduce dependencies +Resolves: #205630 + +* Fri Feb 9 2007 Tom Lane <tgl@redhat.com> 5.0.33-1 +- Update to MySQL 5.0.33 +- Install band-aid fix for "view" regression test designed to fail after 2006 +- Don't chmod -R the entire database directory tree on every startup +Related: #221085 +- Fix unsafe use of install-info +Resolves: #223713 +- Cope with new automake in F7 +Resolves: #224171 + +* Thu Nov 9 2006 Tom Lane <tgl@redhat.com> 5.0.27-1 +- Update to MySQL 5.0.27 (see CVE-2006-4031, CVE-2006-4226, CVE-2006-4227) +Resolves: #202247, #202675, #203427, #203428, #203432, #203434, #208641 +- Fix init script to return status 1 on server start timeout +Resolves: #203910 +- Move mysqldumpslow from base package to mysql-server +Resolves: #193559 +- Adjust link options for BDB module +Resolves: #199368 + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.0.22-2.1 +- rebuild + +* Sat Jun 10 2006 Tom Lane <tgl@redhat.com> 5.0.22-2 +- Work around brew's tendency not to clean up failed builds completely, + by adding code in mysql-testing.patch to kill leftover mysql daemons. + +* Thu Jun 8 2006 Tom Lane <tgl@redhat.com> 5.0.22-1 +- Update to MySQL 5.0.22 (fixes CVE-2006-2753) +- Install temporary workaround for gcc bug on s390x (bz #193912) + +* Tue May 2 2006 Tom Lane <tgl@redhat.com> 5.0.21-2 +- Fix bogus perl Requires for mysql-test + +* Mon May 1 2006 Tom Lane <tgl@redhat.com> 5.0.21-1 +- Update to MySQL 5.0.21 + +* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 5.0.18-4 +- Modify multilib header hack to not break non-RH arches, per bug #181335 +- Remove logrotate script, per bug #180639. +- Add a new mysql-test RPM to carry the regression test files; + hack up test scripts as needed to make them run in /usr/share/mysql-test. + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.0.18-2.1 +- bump again for double-long bug on ppc(64) + +* Thu Feb 9 2006 Tom Lane <tgl@redhat.com> 5.0.18-2 +- err-log option has been renamed to log-error, fix my.cnf and initscript + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.0.18-1.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Thu Jan 5 2006 Tom Lane <tgl@redhat.com> 5.0.18-1 +- Update to MySQL 5.0.18 + +* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 5.0.16-4 +- fix my_config.h for ppc platforms + +* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 5.0.16-3 +- my_config.h needs to guard against 64-bit platforms that also define the + 32-bit symbol + +* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 5.0.16-2 +- oops, looks like we want uname -i not uname -m + +* Mon Dec 12 2005 Tom Lane <tgl@redhat.com> 5.0.16-1 +- Update to MySQL 5.0.16 +- Add EXCEPTIONS-CLIENT license info to the shipped documentation +- Make my_config.h architecture-independent for multilib installs; + put the original my_config.h into my_config_$ARCH.h +- Add -fwrapv to CFLAGS so that gcc 4.1 doesn't break it + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Mon Nov 14 2005 Tom Lane <tgl@redhat.com> 5.0.15-3 +- Make stop script wait for daemon process to disappear (bz#172426) + +* Wed Nov 9 2005 Tom Lane <tgl@redhat.com> 5.0.15-2 +- Rebuild due to openssl library update. + +* Thu Nov 3 2005 Tom Lane <tgl@redhat.com> 5.0.15-1 +- Update to MySQL 5.0.15 (scratch build for now) + +* Wed Oct 5 2005 Tom Lane <tgl@redhat.com> 4.1.14-1 +- Update to MySQL 4.1.14 + +* Tue Aug 23 2005 Tom Lane <tgl@redhat.com> 4.1.12-3 +- Use politically correct patch name. + +* Tue Jul 12 2005 Tom Lane <tgl@redhat.com> 4.1.12-2 +- Fix buffer overflow newly exposed in isam code; it's the same issue + previously found in myisam, and not very exciting, but I'm tired of + seeing build warnings. + +* Mon Jul 11 2005 Tom Lane <tgl@redhat.com> 4.1.12-1 +- Update to MySQL 4.1.12 (includes a fix for bz#158688, bz#158689) +- Extend mysql-test-ssl.patch to solve rpl_openssl test failure (bz#155850) +- Update mysql-lock-ssl.patch to match the upstream committed version +- Add --with-isam to re-enable the old ISAM table type, per bz#159262 +- Add dependency on openssl-devel per bz#159569 +- Remove manual.txt, as upstream decided not to ship it anymore; + it was redundant with the mysql.info file anyway. + +* Mon May 9 2005 Tom Lane <tgl@redhat.com> 4.1.11-4 +- Include proper locking for OpenSSL in the server, per bz#155850 + +* Mon Apr 25 2005 Tom Lane <tgl@redhat.com> 4.1.11-3 +- Enable openssl tests during build, per bz#155850 +- Might as well turn on --disable-dependency-tracking + +* Fri Apr 8 2005 Tom Lane <tgl@redhat.com> 4.1.11-2 +- Avoid dependency on <asm/atomic.h>, cause it won't build anymore on ia64. + This is probably a cleaner solution for bz#143537, too. + +* Thu Apr 7 2005 Tom Lane <tgl@redhat.com> 4.1.11-1 +- Update to MySQL 4.1.11 to fix bz#152911 as well as other issues +- Move perl-DBI, perl-DBD-MySQL dependencies to server package (bz#154123) +- Override configure thread library test to suppress HAVE_LINUXTHREADS check +- Fix BDB failure on s390x (bz#143537) +- At last we can enable "make test" on all arches + +* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 4.1.10a-1 +- Update to MySQL 4.1.10a to fix security vulnerabilities (bz#150868, + for CAN-2005-0711, and bz#150871 for CAN-2005-0709, CAN-2005-0710). + +* Sun Mar 6 2005 Tom Lane <tgl@redhat.com> 4.1.10-3 +- Fix package Requires: interdependencies. + +* Sat Mar 5 2005 Tom Lane <tgl@redhat.com> 4.1.10-2 +- Need -fno-strict-aliasing in at least one place, probably more. +- Work around some C spec violations in mysql. + +* Fri Feb 18 2005 Tom Lane <tgl@redhat.com> 4.1.10-1 +- Update to MySQL 4.1.10. + +* Sat Jan 15 2005 Tom Lane <tgl@redhat.com> 4.1.9-1 +- Update to MySQL 4.1.9. + +* Wed Jan 12 2005 Tom Lane <tgl@redhat.com> 4.1.7-10 +- Don't assume /etc/my.cnf will specify pid-file (bz#143724) + +* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 4.1.7-9 +- Rebuilt for new readline. + +* Tue Dec 21 2004 Tom Lane <tgl@redhat.com> 4.1.7-8 +- Run make test on all archs except s390x (which seems to have a bdb issue) + +* Mon Dec 13 2004 Tom Lane <tgl@redhat.com> 4.1.7-7 +- Suppress someone's silly idea that libtool overhead can be skipped + +* Sun Dec 12 2004 Tom Lane <tgl@redhat.com> 4.1.7-6 +- Fix init script to not need a valid username for startup check (bz#142328) +- Fix init script to honor settings appearing in /etc/my.cnf (bz#76051) +- Enable SSL (bz#142032) + +* Thu Dec 2 2004 Tom Lane <tgl@redhat.com> 4.1.7-5 +- Add a restorecon to keep the mysql.log file in the right context (bz#143887) + +* Tue Nov 23 2004 Tom Lane <tgl@redhat.com> 4.1.7-4 +- Turn off old_passwords in default /etc/my.cnf file, for better compatibility + with mysql 3.x clients (per suggestion from Joe Orton). + +* Fri Oct 29 2004 Tom Lane <tgl@redhat.com> 4.1.7-3 +- Handle ldconfig more cleanly (put a file in /etc/ld.so.conf.d/). + +* Thu Oct 28 2004 Tom Lane <tgl@redhat.com> 4.1.7-2 +- rebuild in devel branch + +* Wed Oct 27 2004 Tom Lane <tgl@redhat.com> 4.1.7-1 +- Update to MySQL 4.1.x. + +* Tue Oct 12 2004 Tom Lane <tgl@redhat.com> 3.23.58-13 +- fix security issues CAN-2004-0835, CAN-2004-0836, CAN-2004-0837 + (bugs #135372, 135375, 135387) +- fix privilege escalation on GRANT ALL ON `Foo\_Bar` (CAN-2004-0957) + +* Wed Oct 06 2004 Tom Lane <tgl@redhat.com> 3.23.58-12 +- fix multilib problem with mysqlbug and mysql_config +- adjust chkconfig priority per bug #128852 +- remove bogus quoting per bug #129409 (MySQL 4.0 has done likewise) +- add sleep to mysql.init restart(); may or may not fix bug #133993 + +* Tue Oct 05 2004 Tom Lane <tgl@redhat.com> 3.23.58-11 +- fix low-priority security issues CAN-2004-0388, CAN-2004-0381, CAN-2004-0457 + (bugs #119442, 125991, 130347, 130348) +- fix bug with dropping databases under recent kernels (bug #124352) + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> 3.23.58-10 +- rebuilt + +* Sat Apr 17 2004 Warren Togami <wtogami@redhat.com> 3.23.58-9 +- remove redundant INSTALL-SOURCE, manual.* +- compress manual.txt.bz2 +- BR time + +* Tue Mar 16 2004 Tom Lane <tgl@redhat.com> 3.23.58-8 +- repair logfile attributes in %%files, per bug #102190 +- repair quoting problem in mysqlhotcopy, per bug #112693 +- repair missing flush in mysql_setpermission, per bug #113960 +- repair broken error message printf, per bug #115165 +- delete mysql user during uninstall, per bug #117017 +- rebuilt + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Tue Feb 24 2004 Tom Lane <tgl@redhat.com> +- fix chown syntax in mysql.init +- rebuild + +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Tue Nov 18 2003 Kim Ho <kho@redhat.com> 3.23.58-5 +- update mysql.init to use anonymous user (UNKNOWN_MYSQL_USER) for + pinging mysql server (#108779) + +* Mon Oct 27 2003 Kim Ho <kho@redhat.com> 3.23.58-4 +- update mysql.init to wait (max 10 seconds) for mysql server to + start (#58732) + +* Mon Oct 27 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.58-3 +- re-enable Berkeley DB support (#106832) +- re-enable ia64 testing + +* Fri Sep 19 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.58-2 +- rebuilt + +* Mon Sep 15 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.58-1 +- upgrade to 3.23.58 for security fix + +* Tue Aug 26 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.57-2 +- rebuilt + +* Wed Jul 02 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.57-1 +- revert to prior version of MySQL due to license incompatibilities + with packages that link against the client. The MySQL folks are + looking into the issue. + +* Wed Jun 18 2003 Patrick Macdonald <patrickm@redhat.com> 4.0.13-4 +- restrict test on ia64 (temporary) + +* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> 4.0.13-3 +- rebuilt + +* Thu May 29 2003 Patrick Macdonald <patrickm@redhat.com> 4.0.13-2 +- fix filter-requires-mysql.sh with less restrictive for mysql-bench + +* Wed May 28 2003 Patrick Macdonald <patrickm@redhat.com> 4.0.13-1 +- update for MySQL 4.0 +- back-level shared libraries available in mysqlclient10 package + +* Fri May 09 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.56-2 +- add sql-bench package (#90110) + +* Wed Mar 19 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.56-1 +- upgrade to 3.23.56 for security fixes +- remove patch for double-free (included in 3.23.56) + +* Tue Feb 18 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.54a-11 +- enable thread safe client +- add patch for double free fix + +* Wed Jan 22 2003 Tim Powers <timp@redhat.com> +- rebuilt + +* Mon Jan 13 2003 Karsten Hopp <karsten@redhat.de> 3.23.54a-9 +- disable checks on s390x + +* Sat Jan 4 2003 Jeff Johnson <jbj@redhat.com> 3.23.54a-8 +- use internal dep generator. + +* Wed Jan 1 2003 Bill Nottingham <notting@redhat.com> 3.23.54a-7 +- fix mysql_config on hammer + +* Sun Dec 22 2002 Tim Powers <timp@redhat.com> 3.23.54a-6 +- don't use rpms internal dep generator + +* Tue Dec 17 2002 Elliot Lee <sopwith@redhat.com> 3.23.54a-5 +- Push it into the build system + +* Mon Dec 16 2002 Joe Orton <jorton@redhat.com> 3.23.54a-4 +- upgrade to 3.23.54a for safe_mysqld fix + +* Thu Dec 12 2002 Joe Orton <jorton@redhat.com> 3.23.54-3 +- upgrade to 3.23.54 for latest security fixes + +* Tue Nov 19 2002 Jakub Jelinek <jakub@redhat.com> 3.23.52-5 +- Always include <errno.h> for errno +- Remove unpackaged files + +* Tue Nov 12 2002 Florian La Roche <Florian.LaRoche@redhat.de> +- do not prereq userdel, not used at all + +* Mon Sep 9 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.52-4 +- Use %%{_libdir} +- Add patch for x86-64 + +* Wed Sep 4 2002 Jakub Jelinek <jakub@redhat.com> 3.23.52-3 +- rebuilt with gcc-3.2-7 + +* Thu Aug 29 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.52-2 +- Add --enable-local-infile to configure - a new option + which doesn't default to the old behaviour (#72885) + +* Fri Aug 23 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.52-1 +- 3.23.52. Fixes a minor security problem, various bugfixes. + +* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> 3.23.51-5 +- rebuilt with gcc-3.2 (we hope) + +* Mon Jul 22 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-4 +- rebuild + +* Thu Jul 18 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-3 +- Fix #63543 and #63542 + +* Thu Jul 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-2 +- Turn off bdb on PPC(#68591) +- Turn off the assembly optimizations, for safety. + +* Wed Jun 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-1 +- Work around annoying auto* thinking this is a crosscompile +- 3.23.51 + +* Fri Jun 21 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Mon Jun 10 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.50-2 +- Add dependency on perl-DBI and perl-DBD-MySQL (#66349) + +* Thu May 30 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.50-1 +- 3.23.50 + +* Thu May 23 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Mon May 13 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-4 +- Rebuild +- Don't set CXX to gcc, it doesn't work anymore +- Exclude Alpha + +* Mon Apr 8 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-3 +- Add the various .cnf examples as doc files to mysql-server (#60349) +- Don't include manual.ps, it's just 200 bytes with a URL inside (#60349) +- Don't include random files in /usr/share/mysql (#60349) +- langify (#60349) + +* Thu Feb 21 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-2 +- Rebuild + +* Sun Feb 17 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-1 +- 3.23.49 + +* Thu Feb 14 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.48-2 +- work around perl dependency bug. + +* Mon Feb 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.48-1 +- 3.23.48 + +* Thu Jan 17 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.47-4 +- Use kill, not mysqladmin, to flush logs and shut down. Thus, + an admin password can be set with no problems. +- Remove reload from init script + +* Wed Jan 16 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.47-3 +- remove db3-devel from buildrequires, + MySQL has had its own bundled copy since the mid thirties + +* Sun Jan 6 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.47-1 +- 3.23.47 +- Don't build for alpha, toolchain immature. + +* Mon Dec 3 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.46-1 +- 3.23.46 +- use -fno-rtti and -fno-exceptions, and set CXX to increase stability. + Recommended by mysql developers. + +* Sun Nov 25 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.45-1 +- 3.23.45 + +* Wed Nov 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.44-2 +- centralize definition of datadir in the initscript (#55873) + +* Fri Nov 2 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.44-1 +- 3.23.44 + +* Thu Oct 4 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.43-1 +- 3.23.43 + +* Mon Sep 10 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.42-1 +- 3.23.42 +- reenable innodb + +* Tue Aug 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.41-1 +- 3.23.41 bugfix release +- disable innodb, to avoid the broken updates +- Use "mysqladmin flush_logs" instead of kill -HUP in logrotate + script (#51711) + +* Sat Jul 21 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.40, bugfix release +- Add zlib-devel to buildrequires: + +* Fri Jul 20 2001 Trond Eivind Glomsrd <teg@redhat.com> +- BuildRequires-tweaking + +* Thu Jun 28 2001 Trond Eivind Glomsrd <teg@redhat.com> +- Reenable test, but don't run them for s390, s390x or ia64 +- Make /etc/my.cnf config(noplace). Same for /etc/logrotate.d/mysqld + +* Thu Jun 14 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.29 +- enable innodb +- enable assembly again +- disable tests for now... + +* Tue May 15 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.38 +- Don't use BDB on Alpha - no fast mutexes + +* Tue Apr 24 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.37 +- Add _GNU_SOURCE to the compile flags + +* Wed Mar 28 2001 Trond Eivind Glomsrd <teg@redhat.com> +- Make it obsolete our 6.2 PowerTools packages +- 3.23.36 bugfix release - fixes some security issues + which didn't apply to our standard configuration +- Make "make test" part of the build process, except on IA64 + (it fails there) + +* Tue Mar 20 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.35 bugfix release +- Don't delete the mysql user on uninstall + +* Tue Mar 13 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.34a bugfix release + +* Wed Feb 7 2001 Trond Eivind Glomsrd <teg@redhat.com> +- added readline-devel to BuildRequires: + +* Tue Feb 6 2001 Trond Eivind Glomsrd <teg@redhat.com> +- small i18n-fixes to initscript (action needs $) + +* Tue Jan 30 2001 Trond Eivind Glomsrd <teg@redhat.com> +- make it shut down and rotate logs without using mysqladmin + (from #24909) + +* Mon Jan 29 2001 Trond Eivind Glomsrd <teg@redhat.com> +- conflict with "MySQL" + +* Tue Jan 23 2001 Trond Eivind Glomsrd <teg@redhat.com> +- improve gettextizing + +* Mon Jan 22 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.32 +- fix logrotate script (#24589) + +* Wed Jan 17 2001 Trond Eivind Glomsrd <teg@redhat.com> +- gettextize +- move the items in Requires(post): to Requires: in preparation + for an errata for 7.0 when 3.23.31 is released +- 3.23.31 + +* Tue Jan 16 2001 Trond Eivind Glomsrd <teg@redhat.com> +- add the log file to the rpm database, and make it 0640 + (#24116) +- as above in logrotate script +- changes to the init sequence - put most of the data + in /etc/my.cnf instead of hardcoding in the init script +- use /var/run/mysqld/mysqld.pid instead of + /var/run/mysqld/pid +- use standard safe_mysqld +- shut down cleaner + +* Mon Jan 08 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.30 +- do an explicit chmod on /var/lib/mysql in post, to avoid + any problems with broken permissons. There is a report + of rm not changing this on its own (#22989) + +* Mon Jan 01 2001 Trond Eivind Glomsrd <teg@redhat.com> +- bzipped source +- changed from 85 to 78 in startup, so it starts before + apache (which can use modules requiring mysql) + +* Wed Dec 27 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.29a + +* Tue Dec 19 2000 Trond Eivind Glomsrd <teg@redhat.com> +- add requirement for new libstdc++, build for errata + +* Mon Dec 18 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.29 + +* Mon Nov 27 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.28 (gamma) +- remove old patches, as they are now upstreamed + +* Thu Nov 14 2000 Trond Eivind Glomsrd <teg@redhat.com> +- Add a requirement for a new glibc (#20735) +- build on IA64 + +* Wed Nov 1 2000 Trond Eivind Glomsrd <teg@redhat.com> +- disable more assembly + +* Wed Nov 1 2000 Jakub Jelinek <jakub@redhat.com> +- fix mysql on SPARC (#20124) + +* Tue Oct 31 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.27 + +* Wed Oct 25 2000 Trond Eivind Glomsrd <teg@redhat.com> +- add patch for fixing bogus aliasing in mysql from Jakub, + which should fix #18905 and #18620 + +* Mon Oct 23 2000 Trond Eivind Glomsrd <teg@redhat.com> +- check for negative niceness values, and negate it + if present (#17899) +- redefine optflags on IA32 FTTB + +* Wed Oct 18 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.26, which among other fixes now uses mkstemp() + instead of tempnam(). +- revert changes made yesterday, the problem is now + isolated + +* Tue Oct 17 2000 Trond Eivind Glomsrd <teg@redhat.com> +- use the compat C++ compiler FTTB. Argh. +- add requirement of ncurses4 (see above) + +* Sun Oct 01 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.25 +- fix shutdown problem (#17956) + +* Tue Sep 26 2000 Trond Eivind Glomsrd <teg@redhat.com> +- Don't try to include no-longer-existing PUBLIC file + as doc (#17532) + +* Thu Sep 12 2000 Trond Eivind Glomsrd <teg@redhat.com> +- rename config file to /etc/my.cnf, which is what + mysqld wants... doh. (#17432) +- include a changed safe_mysqld, so the pid file option + works. +- make mysql dir world readable to they can access the + mysql socket. (#17432) +- 3.23.24 + +* Wed Sep 06 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.23 + +* Sun Aug 27 2000 Trond Eivind Glomsrd <teg@redhat.com> +- Add "|| :" to condrestart to avoid non-zero exit code + +* Thu Aug 24 2000 Trond Eivind Glomsrd <teg@redhat.com> +- it's mysql.com, not mysql.org and use correct path to + source (#16830) + +* Wed Aug 16 2000 Trond Eivind Glomsrd <teg@redhat.com> +- source file from /etc/rc.d, not /etc/rd.d. Doh. + +* Sun Aug 13 2000 Trond Eivind Glomsrd <teg@redhat.com> +- don't run ldconfig -n, it doesn't update ld.so.cache + (#16034) +- include some missing binaries +- use safe_mysqld to start the server (request from + mysql developers) + +* Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> +- condrestart fixes + +* Mon Aug 01 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.22. Disable the old patches, they're now in. + +* Thu Jul 27 2000 Trond Eivind Glomsrd <teg@redhat.com> +- bugfixes in the initscript +- move the .so link to the devel package + +* Wed Jul 19 2000 Trond Eivind Glomsrd <teg@redhat.com> +- rebuild due to glibc changes + +* Tue Jul 18 2000 Trond Eivind Glomsrd <teg@redhat.com> +- disable compiler patch +- don't include info directory file + +* Mon Jul 17 2000 Trond Eivind Glomsrd <teg@redhat.com> +- move back to /etc/rc.d/init.d + +* Fri Jul 14 2000 Trond Eivind Glomsrd <teg@redhat.com> +- more cleanups in initscript + +* Thu Jul 13 2000 Trond Eivind Glomsrd <teg@redhat.com> +- add a patch to work around compiler bug + (from monty@mysql.com) + +* Wed Jul 12 2000 Trond Eivind Glomsrd <teg@redhat.com> +- don't build the SQL daemon statically (glibc problems) +- fix the logrotate script - only flush log if mysql + is running +- change the reloading procedure +- remove icon - glint is obsolete a long time ago + +* Wed Jul 12 2000 Prospector <bugzilla@redhat.com> +- automatic rebuild + +* Mon Jul 10 2000 Trond Eivind Glomsrd <teg@redhat.com> +- try the new compiler again +- build the SQL daemon statically +- add compile time support for complex charsets +- enable assembler +- more cleanups in initscript + +* Sun Jul 09 2000 Trond Eivind Glomsrd <teg@redhat.com> +- use old C++ compiler +- Exclusivearch x86 + +* Sat Jul 08 2000 Trond Eivind Glomsrd <teg@redhat.com> +- move .so files to devel package +- more cleanups +- exclude sparc for now + +* Wed Jul 05 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 3.23.21 +- remove file from /etc/sysconfig +- Fix initscript a bit - initialization of databases doesn't + work yet +- specify the correct licenses +- include a /etc/my.conf (empty, FTTB) +- add conditional restart to spec file + +* Tue Jul 2 2000 Jakub Jelinek <jakub@redhat.com> +- Rebuild with new C++ + +* Fri Jun 30 2000 Trond Eivind Glomsrd <teg@redhat.com> +- update to 3.23.20 +- use %%configure, %%makeinstall, %%{_tmppath}, %%{_mandir}, + %%{_infodir}, /etc/init.d +- remove the bench package +- change some of the descriptions a little bit +- fix the init script +- some compile fixes +- specify mysql user +- use mysql uid 27 (postgresql is 26) +- don't build on ia64 + +* Sat Feb 26 2000 Jos Vos <jos@xos.nl> +- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0 +- Upgrade from version 3.22.27 to 3.22.32. +- Do "make install" instead of "make install-strip", because "install -s" + now appears to fail on various scripts. Afterwards, strip manually. +- Reorganize subpackages, according to common Red Hat packages: the client + program and shared library become the base package and the server and + some accompanying files are now in a separate server package. The + server package implicitly requires the base package (shared library), + but we have added a manual require tag anyway (because of the shared + config file, and more). +- Rename the mysql-benchmark subpackage to mysql-bench. + +* Mon Jan 31 2000 Jos Vos <jos@xos.nl> +- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1 +- Add post(un)install scripts for updating ld.so.conf (client subpackage). + +* Sun Nov 21 1999 Jos Vos <jos@xos.nl> +- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0 +- Initial version. +- Some ideas borrowed from Red Hat Powertools 6.1, although this spec + file is a full rewrite from scratch. diff --git a/mysql55/perl-DBD-MySQL.spec.diff b/mysql55/perl-DBD-MySQL.spec.diff new file mode 100644 index 0000000..4e75122 --- /dev/null +++ b/mysql55/perl-DBD-MySQL.spec.diff @@ -0,0 +1,55 @@ +--- perl-DBD-MySQL.spec.nodsc 2012-05-31 15:43:06.321488097 +0200 ++++ perl-DBD-MySQL.spec 2012-06-01 14:22:04.705935866 +0200 +@@ -1,4 +1,11 @@ +-Name: perl-DBD-MySQL ++# Sets %%pkg_name to 'perl-DBD-MySQL' if we build for scl. ++%{?scl:%scl_package perl-DBD-MySQL} ++# If we don't build for scl, then pkg_name is empty. ++# This way, we can always use %%pkg_name for 'perl-DBD-MySQL', be it scl build or not. ++%{!?scl:%global pkg_name perl-DBD-MySQL} ++# %%{name} then references to either 'perl-DBD-MySQL' (not in scl) or '%%{?scl:%scl_prefix}perl-DBD-MySQL' (in scl). ++ ++Name: %{?scl:%scl_prefix}perl-DBD-MySQL + Version: 4.021 + Release: 1%{?dist} + Summary: A MySQL interface for perl +@@ -7,12 +14,12 @@ License: GPL+ or Artistic + URL: http://search.cpan.org/dist/DBD-mysql/ + Source0: http://www.cpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-%{version}.tar.gz + BuildRequires: perl(DBI) >= 1.607 +-BuildRequires: mysql, mysql-devel, zlib-devel ++BuildRequires: %{?scl:%scl_prefix}mysql, %{?scl:%scl_prefix}mysql-devel, zlib-devel + BuildRequires: perl(Carp) + BuildRequires: perl(ExtUtils::MakeMaker) + BuildRequires: perl(DynaLoader) + Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +-Provides: perl-DBD-mysql = %{version}-%{release} ++Provides: %{?scl:%scl_prefix}perl-DBD-mysql = %{version}-%{release} + + %{?perl_default_filter} + +@@ -31,8 +38,10 @@ for file in lib/DBD/mysql.pm ChangeLog; + done + + %build +-perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" --ssl ++%{?scl:scl enable %scl - << \EOF} ++perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}" --ssl + make %{?_smp_mflags} ++%{?scl:EOF} + + %install + make pure_install PERL_INSTALL_ROOT=%{buildroot} +@@ -47,9 +56,9 @@ find %{buildroot} -type d -depth -exec r + + %files + %doc ChangeLog INSTALL.html README TODO +-%{perl_vendorarch}/Bundle/ +-%{perl_vendorarch}/DBD/ +-%{perl_vendorarch}/auto/DBD/ ++%{?scl:%_scl_root}%{perl_vendorarch}/Bundle/ ++%{?scl:%_scl_root}%{perl_vendorarch}/DBD/ ++%{?scl:%_scl_root}%{perl_vendorarch}/auto/DBD/ + %{_mandir}/man3/*.3* + + %changelog diff --git a/mysql55/perl-DBD-MySQL.spec.nodsc b/mysql55/perl-DBD-MySQL.spec.nodsc new file mode 100644 index 0000000..e50ba7f --- /dev/null +++ b/mysql55/perl-DBD-MySQL.spec.nodsc @@ -0,0 +1,279 @@ +Name: perl-DBD-MySQL +Version: 4.021 +Release: 1%{?dist} +Summary: A MySQL interface for perl +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/DBD-mysql/ +Source0: http://www.cpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-%{version}.tar.gz +BuildRequires: perl(DBI) >= 1.607 +BuildRequires: mysql, mysql-devel, zlib-devel +BuildRequires: perl(Carp) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(DynaLoader) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Provides: perl-DBD-mysql = %{version}-%{release} + +%{?perl_default_filter} + +%description +An implementation of DBI for MySQL for Perl. + +%prep +%setup -q -n DBD-mysql-%{version} +# Correct file permissions +find . -type f | xargs chmod -x + +for file in lib/DBD/mysql.pm ChangeLog; do + iconv -f iso-8859-1 -t utf-8 <$file >${file}_ + touch -r ${file}{,_} + mv -f ${file}{_,} +done + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" --ssl +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';' +find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' +%{_fixperms} %{buildroot}/* + +%check +# Full test coverage requires a live MySQL database +#make test + +%files +%doc ChangeLog INSTALL.html README TODO +%{perl_vendorarch}/Bundle/ +%{perl_vendorarch}/DBD/ +%{perl_vendorarch}/auto/DBD/ +%{_mandir}/man3/*.3* + +%changelog +* Wed May 02 2012 Petr Šabata <contyk@redhat.com> - 4.021-1 +- 4.021 bump + +* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.020-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Aug 22 2011 Petr Sabata <contyk@redhat.com> - 4.020-1 +- 4.020 bump + +* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4.019-3 +- Perl mass rebuild + +* Fri May 13 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4.019-2 +- apply tested patch from F-15 (is_prefix replaced by strncmp) #703185 +- remove deffattr + +* Mon May 9 2011 Petr Sabata <psabata@redhat.com> - 4.019-1 +- 4.019 bump +- Removing the clean section +- Adding DynaLoader to BR + +* Tue Mar 22 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4.018-3 +- rebuilt for libmysqlclient + +* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.018-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Oct 27 2010 Marcela Mašláňová <mmaslano@redhat.com> - 4.018-1 +- update + +* Thu Aug 12 2010 Petr Pisar <ppisar@redhat.com> - 4.017-1 +- 4.017 bump (bug #623614) +- Preserve time stamps while converting character set + +* Mon Jul 12 2010 Petr Pisar <ppisar@redhat.com> - 4.016-1 +- 4.016 bump (bug #597759) + +* Mon May 31 2010 Petr Pisar <ppisar@redhat.com> - 4.014-1 +- 4.014 bump (bug #597759) + +* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 4.013-5 +- Mass rebuild with perl-5.12.0 + +* Sun Mar 07 2010 Chris Weyl <cweyl@alumni.drew.edu> - 4.013-4 +- add perl_default_filter (remove mysql.so provides) + +* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 4.013-3 +- rebuild against perl 5.10.1 + +* Mon Oct 26 2009 Stepan Kasal <skasal@redhat.com> - 4.013-2 +- new upstream version + +* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 4.011-3 +- rebuilt with new openssl + +* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.011-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jun 10 2009 Stepan Kasal <skasal@redhat.com> - 4.011-1 +- new upstream version +- apply iconv on primary source + +* Mon Apr 6 2009 Marcela Mašláňová <mmaslano@redhat.com> - 4.010-1 +- update to the latest version + +* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.005-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Jan 22 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.005-9 +- respin (mysql) + +* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4.005-8 +- Rebuild for perl 5.10 (again) + +* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.005-7 +- Autorebuild for GCC 4.3 + +* Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4.005-6 +- rebuild for new perl + +* Wed Dec 5 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-5 +- Rebuild for new openssl + +* Wed Oct 24 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-4 +- Fix utf-8 rpmlint warning + +* Tue Oct 23 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-3 +- Use fixperms macro +- Remove BR: perl + +* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 4.005-2.1 +- add BR: perl(ExtUtils::MakeMaker) + +* Fri Aug 24 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-2 +- rebuild + +* Mon Aug 13 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-1 +- New version from CPAN: 4.005 + +* Thu Jun 07 2007 Robin Norwood <rnorwood@redhat.com> - 4.004-1 +- New version from CPAN: 4.004 +- Move requires filter into spec file + +* Sat Dec 02 2006 Robin Norwood <rnorwood@redhat.com> - 3.0008-1 +- New version from CPAN: 3.0008 + +* Fri Sep 29 2006 Robin Norwood <rnorwood@redhat.com> - 3.0007-1 +- Bugzilla: 208633 +- Upgrade to upstream version 3.0007 version to fix some minor bugs. + +* Mon Jul 17 2006 Jason Vas Dias <jvdias@redhat.com> - 3.0006-1.FC6 +- Upgrade to 3.0006 + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> +- rebuild + +* Wed May 31 2006 Jason Vas Dias <jvdias@redhat.com> - 3.0004-1.FC6 +- upgrade to upstream version 3.0004 + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.0002-2.2.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.0002-2.2.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 3.0002-2.2 +- rebuild for new perl-5.8.8 + +* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt for new gcc + +* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt for new gcj + +* Thu Nov 10 2005 Tomas Mraz <tmraz@redhat.com> - 3.0002-2 +- rebuilt against new openssl + +* Mon Jul 11 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 3.0002-1 +- Update to 3.0002. + +* Wed Apr 27 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.9007-1 +- Update to 2.9007. (#156059) + +* Thu Apr 14 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.9006-1 +- Update to 2.9006. +- Specfile cleanup. (#154755) + +* Thu Nov 25 2004 Miloslav Trmac <mitr@redhat.com> - 2.9004-4 +- Convert man page to UTF-8 + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 2.9003-1 +- update to 2.9003 + +* Mon Jul 7 2003 Chip Turner <cturner@redhat.com> 2.9002-1 +- move to 2.9002 + +* Thu Jul 3 2003 Chip Turner <cturner@redhat.com> 2.1021-5 +- rebuild + +* Mon Jan 27 2003 Chip Turner <cturner@redhat.com> +- version bump and rebuild + +* Wed Jan 1 2003 Chip Turner <cturner@redhat.com> +- turn ssl on and allow Makefile.PL to yse mysql_config to find proper link flags +- update to 2.1021 + +* Sat Dec 14 2002 Chip Turner <cturner@redhat.com> +- don't use internal rpm dep generator + +* Wed Nov 20 2002 Chip Turner <cturner@redhat.com> +- rebuild + +* Wed Aug 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.1017-3 +- Rebuild + +* Tue Jun 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.1017-2 +- Rebuild, to fix #66304 + +* Wed Jun 5 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.1017-1 +- New version - no longer integrated into msql-mysql modules + +* Thu May 23 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Fri Feb 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.2219-6 +- Rebuild + +* Fri Feb 8 2002 Chip Turner <cturner@minbar.devel.redhat.com> +- filter out "soft" dependencies: perl(Data::ShowTable) + +* Thu Feb 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.2219-4 +- Rebuild + +* Tue Jan 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.2219-3 +- Rebuild + +* Wed Jan 09 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Tue Jan 8 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.2219-1 +- 1.2219 + +* Fri Jul 20 2001 Trond Eivind Glomsrød <teg@redhat.com> +- Add zlib-devel to buildrequires (#49536) + +* Sun Jul 1 2001 Trond Eivind Glomsrød <teg@redhat.com> +- Add perl and perl-DBI to BuildRequires + +* Wed May 30 2001 Trond Eivind Glomsrød <teg@redhat.com> +- Change Group to Applications/Databases + +* Tue May 1 2001 Trond Eivind Glomsrød <teg@redhat.com> +- 1.2216 +- Add doc files +- Minor cleanups + +* Thu Nov 30 2000 Trond Eivind Glomsrød <teg@redhat.com> +- First cut diff --git a/mysql55/ruby-mysql.spec.diff b/mysql55/ruby-mysql.spec.diff new file mode 100644 index 0000000..f218b1e --- /dev/null +++ b/mysql55/ruby-mysql.spec.diff @@ -0,0 +1,58 @@ +--- ruby-mysql.spec.nodsc 2012-05-31 10:25:30.648935292 +0200 ++++ ruby-mysql.spec 2012-06-01 14:21:48.393990525 +0200 +@@ -1,4 +1,12 @@ +-Name: ruby-mysql ++# Sets %%pkg_name to 'ruby-mysql' if we build for scl. ++%{?scl:%scl_package ruby-mysql} ++# If we don't build for scl, then pkg_name is empty. ++# This way, we can always use %%pkg_name for 'ruby-mysql', be it scl build or not. ++%{!?scl:%global pkg_name ruby-mysql} ++# %%{name} then references to either 'ruby-mysql' (not in scl) or '%%{?scl:%scl_prefix}ruby-mysql' (in scl). ++%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')} ++ ++Name: %{?scl_prefix}ruby-mysql + Version: 2.8.2 + Release: 6%{?dist} + Summary: A Ruby interface to MySQL +@@ -9,10 +17,11 @@ URL: http://www.tmtm.org/en/m + + Source0: http://tmtm.org/downloads/mysql/ruby/mysql-ruby-%{version}.tar.gz + +-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +-BuildRequires: ruby ruby-devel mysql-devel ++BuildRequires: ruby ruby-devel %{?scl_prefix}mysql-devel + Requires: ruby(abi) = 1.9.1 +-Provides: ruby(mysql) = %{version} ++Provides: %{?scl_prefix}ruby(mysql) = %{version} ++ ++%{?scl:Requires:%scl_runtime} + + %description + This is the MySQL API module for Ruby. It provides the same functions for +@@ -24,13 +33,14 @@ Ruby programs that the MySQL C API provi + + + %build ++%{?scl:scl enable %scl - << \EOF} + export CONFIGURE_ARGS="--with-cflags='%{optflags}'" +-ruby extconf.rb --vendor --with-mysql-config ++ruby extconf.rb --with-mysql-config=%{_bindir}/mysql_config ++sed -ie 's|$(DESTDIR)/usr/|$(DESTDIR)%{_prefix}/|g' Makefile + make %{?_smp_mflags} +- ++%{?scl:EOF} + + %install +-rm -rf $RPM_BUILD_ROOT + env DESTDIR=$RPM_BUILD_ROOT make install + + +@@ -41,7 +51,7 @@ rm -rf $RPM_BUILD_ROOT + %files + %defattr(-,root,root,-) + %doc README.html README_ja.html tommy.css COPYING COPYING.ja +-%{ruby_vendorarchdir}/mysql.so ++%{?scl:%_scl_root}%{ruby_sitearch}/mysql.so + + + %changelog diff --git a/mysql55/ruby-mysql.spec.nodsc b/mysql55/ruby-mysql.spec.nodsc new file mode 100644 index 0000000..41cd11f --- /dev/null +++ b/mysql55/ruby-mysql.spec.nodsc @@ -0,0 +1,121 @@ +Name: ruby-mysql +Version: 2.8.2 +Release: 6%{?dist} +Summary: A Ruby interface to MySQL + +Group: Development/Languages +License: Ruby +URL: http://www.tmtm.org/en/mysql/ruby/ + +Source0: http://tmtm.org/downloads/mysql/ruby/mysql-ruby-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: ruby ruby-devel mysql-devel +Requires: ruby(abi) = 1.9.1 +Provides: ruby(mysql) = %{version} + +%description +This is the MySQL API module for Ruby. It provides the same functions for +Ruby programs that the MySQL C API provides for C programs. + + +%prep +%setup -q -n mysql-ruby-%{version} + + +%build +export CONFIGURE_ARGS="--with-cflags='%{optflags}'" +ruby extconf.rb --vendor --with-mysql-config +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +env DESTDIR=$RPM_BUILD_ROOT make install + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc README.html README_ja.html tommy.css COPYING COPYING.ja +%{ruby_vendorarchdir}/mysql.so + + +%changelog +* Wed Feb 15 2012 Orion Poplawski <orion@cora.nwra.com> - 2.8.2-6 +- Update to current ruby packaging (bug #788435) + +* Tue Feb 7 2012 Orion Poplawski <orion@cora.nwra.com> - 2.8.2-5 +- Rebuild for ruby 1.9 + +* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Mar 23 2011 Dan Horák <dan@danny.cz> - 2.8.2-3 +- rebuilt for mysql 5.5.10 (soname bump in libmysqlclient) + +* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Jul 8 2010 Orion Poplawski <orion@cora.nwra.com> - 2.8.2-1 +- Update to 2.8.2 + +* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.8-4 +- rebuilt with new openssl + +* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Jan 23 2009 Orion Poplawski <orion@cora.nwra.com> - 2.8-1 +- Update to 2.8 + +* Fri Mar 7 2008 Orion Poplawski <orion@cora.nwra.com> - 2.7.5-1 +- Update to 2.7.5 + +* Sat Feb 9 2008 Orion Poplawski <orion@cora.nwra.com> - 2.7.4-1 +- Update to 2.7.4 + +* Wed Dec 5 2007 Orion Poplawski <orion@cora.nwra.com> - 2.7.3-3 +- Rebuild for new openssl + +* Thu Aug 23 2007 Orion Poplawski <orion@cora.nwra.com> - 2.7.3-2 +- Update license tag to Ruby +- Rebuild for BuildID + +* Thu May 17 2007 Orion Poplawski <orion@cora.nwra.com> - 2.7.3-1 +- Update to 2.7.3 + +* Wed Oct 3 2006 Orion Poplawski <orion@cora.nwra.com> - 2.7.1-2 +- rebuilt for unwind info generation, broken in gcc-4.1.1-21 + +* Wed Sep 20 2006 Orion Poplawski <orion@cora.nwra.com> - 2.7.1-1 +- Update to 2.7.1 + +* Tue Feb 28 2006 Oliver Andrich <oliver.andrich@gmail.com> - 2.7-8 +- changed the license to Distributable based on Bug #179933 + +* Fri Feb 04 2006 Oliver Andrich <oliver.andrich@gmail.com> - 2.7-6 +- fixed the build problems in x86_64 + +* Fri Feb 03 2006 Oliver Andrich <oliver.andrich@gmail.com> - 2.7-5 +- included the license documents COPYING and COPYING.ja +- fixed the license: Distributable -> GPL + +* Sun Jan 22 2006 Oliver Andrich <oliver.andrich@gmail.com> - 2.7-4 +- fixed changelog (next try) +- moved the package to the suggested group Development/Languages +- added %{?_smp_mflags} to the make call in the build phase +- the summary duplication in the description was removed + +* Sun Jan 22 2006 Oliver Andrich <oliver.andrich@gmail.com> - 2.7-3 +- added documentation +- fixed changelog + +* Sun Jan 22 2006 Oliver Andrich <oliver.andrich@gmail.com> - 2.7-1 +- First build diff --git a/postgresql91/PyGreSQL.spec.diff b/postgresql91/PyGreSQL.spec.diff new file mode 100644 index 0000000..c3ff182 --- /dev/null +++ b/postgresql91/PyGreSQL.spec.diff @@ -0,0 +1,56 @@ +1c1,8 +< Name: PyGreSQL +--- +> # Sets %%pkg_name to 'PyGreSQL' if we build for scl. +> %{?scl:%scl_package PyGreSQL} +> # If we don't build for scl, then pkg_name is empty. +> # This way, we can always use %%pkg_name for 'PyGreSQL', be it scl build or not. +> %{!?scl:%global pkg_name PyGreSQL} +> # %%{name} then references to either 'PyGreSQL' (not in scl) or '%%{?scl:%scl_prefix}PyGreSQL' (in scl). +> +> Name: %{?scl_prefix}PyGreSQL +22,25c29,30 +< Provides: postgresql-python = 8.5.0-1 +< Obsoletes: postgresql-python < 8.5 +< +< BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +--- +> Provides: %{?scl_prefix}postgresql-python = 8.5.0-1 +> Obsoletes: %{?scl_prefix}postgresql-python < 8.5 +27c32 +< BuildRequires: postgresql-devel python-devel +--- +> BuildRequires: %{?scl_prefix}postgresql-devel python-devel +37c42 +< %setup -q +--- +> %setup -q -n %{pkg_name}-%{version} +46c51 +< +--- +> %{?scl:scl enable %scl - << \EOF} +47a53 +> %{?scl:EOF} +50,55c56,58 +< rm -rf $RPM_BUILD_ROOT +< +< %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +< +< %clean +< rm -rf $RPM_BUILD_ROOT +--- +> %{?scl:scl enable %scl - << \EOF} +> %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT%{?scl:%_scl_root} +> %{?scl:EOF} +61,65c64,68 +< %{python_sitearch}/*.so +< %{python_sitearch}/*.py +< %{python_sitearch}/*.pyc +< %{python_sitearch}/*.pyo +< %{python_sitearch}/*.egg-info +--- +> %{?scl:%_scl_root}%{python_sitearch}/*.so +> %{?scl:%_scl_root}%{python_sitearch}/*.py +> %{?scl:%_scl_root}%{python_sitearch}/*.pyc +> %{?scl:%_scl_root}%{python_sitearch}/*.pyo +> %{?scl:%_scl_root}%{python_sitearch}/*.egg-info diff --git a/postgresql91/PyGreSQL.spec.nodsc b/postgresql91/PyGreSQL.spec.nodsc new file mode 100644 index 0000000..522ddf9 --- /dev/null +++ b/postgresql91/PyGreSQL.spec.nodsc @@ -0,0 +1,92 @@ +Name: PyGreSQL +Version: 4.0 +Release: 4%{?dist} +Summary: A Python client library for PostgreSQL + +Group: Applications/Databases +URL: http://www.pygresql.org/ +# Author states his intention is to dual license under PostgreSQL or Python +# licenses --- this is not too clear from the current tarball documentation, +# but hopefully will be clearer in future releases. +# The PostgreSQL license is very similar to other MIT licenses, but the OSI +# recognizes it as an independent license, so we do as well. +License: PostgreSQL or Python + +Source0: ftp://ftp.pygresql.org/pub/distrib/PyGreSQL-%{version}.tgz + +Patch1: PyGreSQL-set-decimal.patch + +# PyGreSQL was originally shipped as a sub-RPM of the PostgreSQL package; +# these Provides/Obsoletes give a migration path. Note there is no +# intention of changing the version numbers in future. +Provides: postgresql-python = 8.5.0-1 +Obsoletes: postgresql-python < 8.5 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +BuildRequires: postgresql-devel python-devel + +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +%description +PostgreSQL is an advanced Object-Relational database management system. +The PyGreSQL package provides a module for developers to use when writing +Python code for accessing a PostgreSQL database. + +%prep +%setup -q + +%patch1 -p1 + +# Some versions of PyGreSQL.tgz contain wrong file permissions +chmod 755 tutorial +chmod 644 tutorial/*.py + +%build + +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT + +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc docs/*.txt +%doc tutorial +%{python_sitearch}/*.so +%{python_sitearch}/*.py +%{python_sitearch}/*.pyc +%{python_sitearch}/*.pyo +%{python_sitearch}/*.egg-info + +%changelog +* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Jul 7 2011 Tom Lane <tgl@redhat.com> 4.0-3 +- Add upstream patch for set_decimal bug +Resolves: #719093 + +* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 29 2010 Tom Lane <tgl@redhat.com> 4.0-1 +- Update to PyGreSQL 4.0 +- Relabel license as PostgreSQL now that that's separately recognized by OSI. + +* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.8.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Tue Nov 24 2009 Tom Lane <tgl@redhat.com> 3.8.1-2 +- Fix License tag and permissions on example scripts under tutorial/, + per discussion in package review request. +Related: #452321 + +* Fri Jun 20 2008 Tom Lane <tgl@redhat.com> 3.8.1-1 +- Created package by stripping down postgresql specfile and adjusting + to meet current packaging guidelines for python modules. diff --git a/postgresql91/perl-DBD-Pg.spec.diff b/postgresql91/perl-DBD-Pg.spec.diff new file mode 100644 index 0000000..21b1134 --- /dev/null +++ b/postgresql91/perl-DBD-Pg.spec.diff @@ -0,0 +1,40 @@ +1c1,8 +< Name: perl-DBD-Pg +--- +> # Sets %%pkg_name to 'perl-DBD-Pg' if we build for scl. +> %{?scl:%scl_package perl-DBD-Pg} +> # If we don't build for scl, then pkg_name is empty. +> # This way, we can always use %%pkg_name for 'perl-DBD-Pg', be it scl build or not. +> %{!?scl:%global pkg_name perl-DBD-Pg} +> # %%{name} then references to either 'perl-DBD-Pg' (not in scl) or '%%{?scl:%scl_prefix}perl-DBD-Pg' (in scl). +> +> Name: %{?scl:%scl_prefix}perl-DBD-Pg +16,17c23,24 +< BuildRequires: postgresql-devel >= 7.4 +< BuildRequires: perl(Test::Simple), postgresql-server +--- +> BuildRequires: %{?scl:%scl_prefix}postgresql-devel >= 7.4 +> BuildRequires: perl(Test::Simple), %{?scl:%scl_prefix}postgresql-server +23c30 +< Provides: perl(DBD::Pg) = %{version} +--- +> Provides: %{?scl:%scl_prefix}perl(DBD::Pg) = %{version} +37c44,45 +< %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +--- +> %{?scl:scl enable %scl - << \EOF} +> %{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +38a47 +> %{?scl:EOF} +55c64 +< LC_ALL=C make test +--- +> #LC_ALL=C make test +59,61c68,70 +< %{perl_vendorarch}/DBD/ +< %{perl_vendorarch}/auto/DBD/ +< %{perl_vendorarch}/Bundle/DBD/Pg.pm +--- +> %{?scl:%_scl_root}%{perl_vendorarch}/DBD/ +> %{?scl:%_scl_root}%{perl_vendorarch}/auto/DBD/ +> %{?scl:%_scl_root}%{perl_vendorarch}/Bundle/DBD/Pg.pm diff --git a/postgresql91/perl-DBD-Pg.spec.nodsc b/postgresql91/perl-DBD-Pg.spec.nodsc new file mode 100644 index 0000000..1e4db06 --- /dev/null +++ b/postgresql91/perl-DBD-Pg.spec.nodsc @@ -0,0 +1,300 @@ +Name: perl-DBD-Pg +Summary: A PostgreSQL interface for perl +Version: 2.19.2 +Release: 1%{?dist} +License: GPLv2+ or Artistic +Group: Development/Libraries +Source0: http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/DBD-Pg-%{version}.tar.gz +URL: http://search.cpan.org/dist/DBD-Pg/ +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# Prevent bug #443495 +BuildRequires: perl(DBI) >= 1.607 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) >= 0.61 +BuildRequires: perl(version) +BuildRequires: postgresql-devel >= 7.4 +BuildRequires: perl(Test::Simple), postgresql-server + +Requires: perl(DBI) >= 1.52 +# test requirements +Requires: perl(Data::Peek) +# Missed by the find provides script: +Provides: perl(DBD::Pg) = %{version} + +%filter_from_provides /perl(DBD::Pg)$/d +%{?perl_default_filter} +%{?perl_default_subpackage_tests} + +%description +DBD::Pg is a Perl module that works with the DBI module to provide access +to PostgreSQL databases. + +%prep +%setup -q -n DBD-Pg-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%check +# Full test coverage requires a live PostgreSQL database (see the README file) +#export DBI_DSN=dbi:Pg:dbname=<database> +#export DBI_USER=<username> +#export DBI_PASS=<password> +# If variables undefined, package test will create it's own database. All +# tests pass then if LC_ALL=C. Otherwise +# <https://rt.cpan.org/Public/Bug/Display.html?id=56705> appears. +LC_ALL=C make test + +%files +%doc Changes README README.dev TODO +%{perl_vendorarch}/DBD/ +%{perl_vendorarch}/auto/DBD/ +%{perl_vendorarch}/Bundle/DBD/Pg.pm +%{_mandir}/man3/*.3* + + +%changelog +* Wed Mar 14 2012 Marcela Mašláňová <mmaslano@redhat.com> 2.19.2-1 +- bump to 2.19.2 + +* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.18.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.18.0-3 +- Perl mass rebuild + +* Mon Apr 4 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.18.0-2 +- add requirement for test file + +* Tue Mar 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.18.0-1 +- update to 2.18.0 + +* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Nov 24 2010 Marcela Mašláňová <mmaslano@redhat.com> 2.17.2-1 +- update by Fedora::App::MaintainerTools 0.006 +- updating to latest GA CPAN version (2.17.2) + +* Thu Sep 30 2010 Petr Sabata <psabata@redhat.com> - 2.17.1-3 +- Fixing BuildRequires (perl-version, Test::More) +- Re-enabling tests +- Resolves: rhbz#633108 + +* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.17.1-2 +- Mass rebuild with perl-5.12.0 + +* Tue Apr 27 2010 Petr Pisar <ppisar@redhat.com> - 2.17.1-1 +- upstream released 2.17.1 +- GPL+ license corrected to GPLv2+ +- enable and run %%check in C locale + +* Wed Jan 27 2010 Stepan Kasal <skasal@redhat.com> - 2.15.1-3 +- drop patch that was upstreamed long ago (<=2.8.7) + +* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 2.15.1-2 +- rebuild against perl 5.10.1 + +* Thu Sep 24 2009 Stepan Kasal <skasal@redhat.com> - 2.15.1-1 +- new upstream version +- add versioned provide (#525502) + +* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.13.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jun 10 2009 Stepan Kasal <skasal@redhat.com> - 2.13.1-2 +- rebuild against perl-DBI-1.609 + +* Mon May 4 2009 Stepan Kasal <skasal@redhat.com> - 2.13.1-1 +- new upstream release, also fixes #498899 + +* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Dec 5 2008 Stepan Kasal <skasal@redhat.com> - 2.11.6-2 +- fix the source URL + +* Fri Dec 5 2008 Marcela Mašláňová <mmaslano@redhat.com> - 2.11.6-1 +- update + +* Fri Oct 31 2008 Marcela Maslanova <mmaslano@redhat.com> - 2.11.2-1 +- update to 2.11.2 + +* Mon Aug 29 2008 Marcela Maslanova <mmaslano@redhat.com> - 2.10.0-1 +- update to 2.10.0 + +* Mon Aug 25 2008 Marcela Maslanova <mmaslano@redhat.com> - 2.9.2-1 +- update to 2.9.2 + +* Mon Jul 28 2008 Marcela Maslanova <mmaslano@redhat.com> - 2.8.7-1 +- new version has Pg.pm twice in two locations +- update + +* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.49-9 +- Rebuild for perl 5.10 (again) + +* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.49-8 +- Autorebuild for GCC 4.3 + +* Tue Jan 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.49-7 +- rebuild for new perl + +* Wed Oct 24 2007 Robin Norwood <rnorwood@redhat.com> - 1.49-6 +- Apply changes from package review. +- Resolves: bz#226252 + +* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.49-5.1 +- add BR: perl(ExtUtils::MakeMaker) + +* Fri Aug 24 2007 Robin Norwood <rnorwood@redhat.com> - 1.49-5 +- Fix license tag +- Add %%doc +- Remove explicit Provides: perl(DBD::Pg) = %%{version} +- Other cleanups + +* Tue Jul 17 2007 Robin Norwood <rnorwood@redhat.com> - 1.49-4 +- Fix summary + +* Tue Dec 06 2006 Robin Norwood <rnorwood@redhat.com> - 1.49-3 +- rebuild for new version of postgres. + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.49-2 +- rebuild + +* Wed May 31 2006 Jason Vas Dias <jvdias@redhat.com> - 1.49-1 +- Upgrade to upstream version 1.49 + +* Wed Apr 12 2006 Jason Vas Dias <jvdias@redhat.com> - 1.48-1 +- Upgrade to upstream version 1.48 + +* Wed Mar 22 2006 Jason Vas Dias <jvdias@redhat.com> - 1.47-1 +- Upgrade to upstream version 1.47 + +* Wed Mar 08 2006 Jason Vas Dias <jvdias@redhat.com> - 1.45-1 +- Upgrade to upstream version 1.45 + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.43-2.2.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.43-2.2.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 1.43-2.2 +- rebuild for new perl-5.8.8 + +* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt for new gcc + +* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt for new gcj + +* Thu Nov 03 2005 Florian La Roche <laroche@redhat.com> +- make sure correct Provides: are generated for this module + +* Tue Jun 28 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.43-1 +- Update to 1.43 (corrects #156840). + +* Thu May 19 2005 Warren Togami <wtogami@redhat.com> - 1.41-2 +- Disable gcc optimization to workaround broken placeholders (#156840) + +* Wed Apr 13 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.41-1 +- Update to 1.41. +- Updated the requirements versions. +- Specfile cleanup. (#154203) + +* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 1.40-2 +- rebuild for new libpq soname + +* Thu Mar 31 2005 Warren Togami <wtogami@redhat.com> 1.40-1 +- 1.40 + +* Tue Oct 12 2004 Chip Turner <cturner@redhat.com> 1.32-1 +- bugzilla: 127755, update to 1.32 + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1.31-2 +- rebuild + +* Thu Dec 11 2003 Chip Turner <cturner@redhat.com> 1.31-1 +- update to 1.31 + +* Mon Jul 7 2003 Chip Turner <cturner@redhat.com> 1.22-1 +- move to upstream 1.22 + +* Mon Jan 27 2003 Chip Turner <cturner@redhat.com> +- version bump and rebuild + +* Mon Jan 13 2003 Chip Turner <cturner@redhat.com> +- update to 1.21 + +* Sat Dec 14 2002 Chip Turner <cturner@redhat.com> +- don't use internal rpm dep generator + +* Wed Nov 20 2002 Chip Turner <cturner@redhat.com> +- rebuild + +* Wed Aug 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-5 +- Rebuild + +* Tue Jun 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-4 +- Rebuild, to fix #66304 + +* Wed Jun 5 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-3 +- Integrate with newer perl + +* Thu May 23 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Tue May 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-1 +- 1.13 + +* Fri Feb 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-8 +- Rebuild + +* Thu Feb 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-7 +- Rebuild + +* Thu Jan 31 2002 Tim Powers <timp@redhat.com> +- rebuild to solve more deps + +* Tue Jan 29 2002 Bill Nottingham <notting@redhat.com> 1.01-5 +- rebuild (dependencies) + +* Tue Jan 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-4 +- Rebuild + +* Wed Jan 09 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Tue Jan 8 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-2 +- Rebuild + +* Sun Jul 1 2001 Trond Eivind Glomsrød <teg@redhat.com> +- 1.01 bugfix release ("bytea" coredumped with values outside 0...127) +- Add perl-DBI and perl to BuildRequires (they were just in Requires: previously) + +* Wed May 30 2001 Trond Eivind Glomsrød <teg@redhat.com> +- 1.00 +- change group to Applications/Databases from Applications/CPAN + +* Tue May 1 2001 Trond Eivind Glomsrød <teg@redhat.com> +- 0.98, for postgresql-7.1 +- add doc files +- cleanups + +* Thu Nov 30 2000 Trond Eivind Glomsrød <teg@redhat.com> +- First cut diff --git a/postgresql91/postgresql-odbc.spec.diff b/postgresql91/postgresql-odbc.spec.diff new file mode 100644 index 0000000..30ad8f9 --- /dev/null +++ b/postgresql91/postgresql-odbc.spec.diff @@ -0,0 +1,28 @@ +--- postgresql-odbc.spec.nodsc 2012-06-05 09:30:02.138368463 +0200 ++++ postgresql-odbc.spec 2012-05-21 14:21:24.485319290 +0200 +@@ -1,4 +1,6 @@ +-Name: postgresql-odbc ++%{?scl:%scl_package postgresql-odbc} ++ ++Name: %{?scl_prefix}postgresql-odbc + Summary: PostgreSQL ODBC driver + Version: 09.01.0100 + Release: 1%{?dist} +@@ -21,7 +23,7 @@ Source1: acinclude.m4 + + Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root + BuildRequires: unixODBC-devel +-BuildRequires: libtool automake autoconf postgresql-devel ++BuildRequires: libtool automake autoconf %{?scl_prefix}postgresql-devel + BuildRequires: openssl-devel krb5-devel pam-devel zlib-devel readline-devel + + # This spec file and ancillary files are licensed in accordance with +@@ -48,7 +50,7 @@ autoheader + + %build + +-%configure --with-unixodbc --disable-dependency-tracking ++%configure --with-unixodbc --disable-dependency-tracking --with-libpq=%{_bindir}/pg_config + + make + diff --git a/postgresql91/postgresql-odbc.spec.nodsc b/postgresql91/postgresql-odbc.spec.nodsc new file mode 100644 index 0000000..cc2c549 --- /dev/null +++ b/postgresql91/postgresql-odbc.spec.nodsc @@ -0,0 +1,208 @@ +Name: postgresql-odbc +Summary: PostgreSQL ODBC driver +Version: 09.01.0100 +Release: 1%{?dist} +License: LGPLv2+ +Group: Applications/Databases +URL: http://psqlodbc.projects.postgresql.org/ + +Source0: http://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-%{version}.tar.gz + +# CAUTION: acinclude.m4 has to be kept in sync with package's aclocal.m4. +# This is a kluge that ought to go away, but upstream currently isn't +# shipping their custom macros anywhere except in aclocal.m4. (The macros +# actually come from the Postgres source tree, but we haven't got that +# available while building this RPM.) To generate: in psqlodbc source tree, +# aclocal -I . -I $PGSRC/config +# then strip aclocal.m4 down to just the PGAC macros. +# BUT: as of 09.00.0200, configure.ac hasn't been updated to use latest +# PG macros, so keep using the previous version of acinclude.m4. +Source1: acinclude.m4 + +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: unixODBC-devel +BuildRequires: libtool automake autoconf postgresql-devel +BuildRequires: openssl-devel krb5-devel pam-devel zlib-devel readline-devel + +# This spec file and ancillary files are licensed in accordance with +# the psqlodbc license. + +%description +This package includes the driver needed for applications to access a +PostgreSQL system via ODBC (Open Database Connectivity). + +%prep +%setup -q -n psqlodbc-%{version} + +# Some missing macros. Courtesy Owen Taylor <otaylor@redhat.com>. +cp -p %{SOURCE1} . + +# Use build system's libtool.m4, not the one in the package. +rm -f libtool.m4 + +libtoolize --force --copy +aclocal -I . +automake --add-missing --copy +autoconf +autoheader + +%build + +%configure --with-unixodbc --disable-dependency-tracking + +make + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install + +# Provide the old library name "psqlodbc.so" as a symlink, +# and remove the rather useless .la file +pushd ${RPM_BUILD_ROOT}%{_libdir} + ln -s psqlodbcw.so psqlodbc.so + rm psqlodbcw.la +popd + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%attr(755,root,root) %{_libdir}/psqlodbcw.so +%{_libdir}/psqlodbc.so +%doc license.txt readme.txt docs/* + +%changelog +* Tue Jan 10 2012 Tom Lane <tgl@redhat.com> 09.01.0100-1 +- Update to version 09.01.0100 + +* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 09.00.0200-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 29 2010 Tom Lane <tgl@redhat.com> 09.00.0200-1 +- Update to version 09.00.0200 + +* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 08.04.0200-2 +- Correct Source0: tag and comment to reflect how to get the tarball + +* Wed Dec 30 2009 Tom Lane <tgl@redhat.com> 08.04.0200-1 +- Update to version 08.04.0200 + +* Fri Aug 28 2009 Tom Lane <tgl@redhat.com> 08.04.0100-2 +- Rebuild with new openssl + +* Tue Aug 18 2009 Tom Lane <tgl@redhat.com> 08.04.0100-1 +- Update to version 08.04.0100 + +* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 08.03.0200-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 08.03.0200-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 Tom Lane <tgl@redhat.com> 08.03.0200-2 +- Rebuild for unixODBC 2.2.14. + +* Tue Aug 5 2008 Tom Lane <tgl@redhat.com> 08.03.0200-1 +- Update to version 08.03.0200 + +* Tue Feb 12 2008 Tom Lane <tgl@redhat.com> 08.03.0100-1 +- Update to version 08.03.0100 +- Since it looks like upstream has decided to stick with psqlodbcw.so + permanently, allow the library to have that name. But continue to + provide psqlodbc.so as a symlink. + +* Fri Nov 2 2007 Tom Lane <tgl@redhat.com> 08.02.0500-1 +- Update to version 08.02.0500 + +* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 08.02.0200-2 +- Update License tag to match code. + +* Wed Apr 25 2007 Tom Lane <tgl@redhat.com> 08.02.0200-1 +- Update to version 08.02.0200 + +* Mon Dec 11 2006 Tom Lane <tgl@redhat.com> 08.01.0200-4 +- Rebuild for new Postgres libraries + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 08.01.0200-3.1 +- rebuild + +* Sat Jun 10 2006 Tom Lane <tgl@redhat.com> 08.01.0200-3 +- Fix BuildRequires: for mock build environment + +* Wed Mar 22 2006 Tom Lane <tgl@redhat.com> 08.01.0200-2 +- Change library name back to psqlodbc.so, because it appears that upstream + will revert to that name in next release; no point in thrashing the name. +- Include documentation files unaccountably omitted before (bug #184158) + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 08.01.0200-1.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 08.01.0200-1.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Feb 3 2006 Tom Lane <tgl@redhat.com> 08.01.0200-1 +- Update to version 08.01.0200. +- Upstream now calls the library psqlodbcw.so ... add a symlink to avoid + breaking existing odbc configuration files. + +* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 08.01.0102-1 +- Update to version 08.01.0102. +- Add buildrequires postgresql-devel (bz #174505) + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Mon Nov 7 2005 Tom Lane <tgl@redhat.com> 08.01.0100-1 +- Update to version 08.01.0100. + +* Wed Mar 2 2005 Tom Lane <tgl@redhat.com> 08.00.0100-1 +- Update to version 08.00.0100. + +* Fri Nov 12 2004 Tom Lane <tgl@redhat.com> 7.3-9 +- back-port 64-bit fixes from current upstream (bug #139004) + +* Tue Sep 21 2004 Tom Lane <tgl@redhat.com> 7.3-8 +- rebuilt + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> +- Correct License: annotation. + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Fri Nov 21 2003 David Jee <djee@redhat.com> 7.3-5 +- rebuild + +* Wed Nov 05 2003 David Jee <djee@redhat.com> 7.3-4 +- import new community version 07.03.0200 + +* Mon Sep 15 2003 Andrew Overholt <overholt@redhat.com> 7.3-3 +- autotools fixes (courtesy Alex Oliva <aoliva@redhat.com> and + Owen Taylor <otaylor@redhat.com>) + +* Tue Jul 08 2003 Andrew Overholt <overholt@redhat.com> 7.3-3 +- allow use with unixODBC (courtesy Troels Arvin) [Bug #97998] + +* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Mon Jun 02 2003 Andrew Overholt <overholt@redhat.com> 7.3-1 +- sync to new community version (07.03.0100 => v7.3, r1) + +* Thu Jan 23 2003 Tim Powers <timp@redhat.com> 1-2 +- rebuild + +* Tue Jan 14 2003 Andrew Overholt <overholt@redhat.com> +- 1-1 +- initial build (just took old package sections) diff --git a/postgresql91/postgresql.spec.diff b/postgresql91/postgresql.spec.diff new file mode 100644 index 0000000..af7ab90 --- /dev/null +++ b/postgresql91/postgresql.spec.diff @@ -0,0 +1,314 @@ +--- postgresql.spec.nodsc 2012-03-29 11:25:13.635351493 +0200 ++++ postgresql.spec 2012-08-20 14:30:19.263974141 +0200 +@@ -29,6 +29,8 @@ + # The base package, the libs package, the devel package, and the server package + # always get built. + ++%{?scl:%scl_package postgresql} ++ + %global beta 0 + %{?beta:%global __os_install_post /usr/lib/rpm/brp-compress} + +@@ -46,11 +48,12 @@ + %{!?pam:%global pam 1} + %{!?sdt:%global sdt 1} + %{!?selinux:%global selinux 1} +-%{!?runselftest:%global runselftest 1} ++%{!?runselftest:%global runselftest 0} ++%{!?_unitdir:%global _unitdir /lib/systemd/system} + + + Summary: PostgreSQL client programs +-Name: postgresql ++Name: %{?scl_prefix}postgresql + %global majorversion 9.1 + Version: 9.1.3 + Release: 3%{?dist} +@@ -61,9 +64,6 @@ License: PostgreSQL + Group: Applications/Databases + Url: http://www.postgresql.org/ + +-# This number must be NVR-greater than any PG version shipped in F15: +-%global first_systemd_version 0:9.0.99 +- + # This SRPM includes a copy of the previous major release, which is needed for + # in-place upgrade of an old database. In most cases it will not be critical + # that this be kept up with the latest minor release of the previous series. +@@ -95,7 +95,6 @@ Patch3: postgresql-perl-rpath.patch + BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk + BuildRequires: perl(ExtUtils::Embed), perl-devel + BuildRequires: readline-devel zlib-devel +-BuildRequires: systemd-units + + %if %plpython + BuildRequires: python-devel +@@ -144,6 +143,8 @@ BuildRequires: libselinux-devel + # main package requires -libs subpackage + Requires: %{name}-libs%{?_isa} = %{version}-%{release} + ++%{?scl:Requires:%scl_runtime} ++ + Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root + + %description +@@ -180,15 +181,13 @@ Requires(pre): /usr/sbin/useradd + # for /sbin/ldconfig + Requires(post): glibc + Requires(postun): glibc +-# pre/post stuff needs systemd too +-Requires(post): systemd-units +-Requires(preun): systemd-units +-Requires(postun): systemd-units + # This is actually needed for the %%triggerun script but Requires(triggerun) + # is not valid. We can use post because this particular %%triggerun script + # should fire just after this package is installed. +-Requires(post): systemd-sysv + Requires(post): chkconfig ++# This is for /sbin/service ++Requires(preun): initscripts ++Requires(postun): initscripts + + %description server + PostgreSQL is an advanced Object-Relational database management system (DBMS). +@@ -298,7 +297,7 @@ benchmarks. + %endif + + %prep +-%setup -q ++%setup -q %{?scl:-n %{pkg_name}-%{version}} + %patch1 -p1 + %patch2 -p1 + %patch3 -p1 +@@ -349,7 +348,7 @@ CFLAGS="$CFLAGS -DLINUX_OOM_ADJ=0" + %endif + %if %pltcl + --with-tcl \ +- --with-tclconfig=%{_libdir} \ ++ --with-tclconfig=%{?scl:%_root_libdir}%{!?scl:%_libdir} \ + %endif + %if %plpython + --with-python \ +@@ -383,8 +382,8 @@ CFLAGS="$CFLAGS -DLINUX_OOM_ADJ=0" + %if %selinux + --with-selinux \ + %endif +- --with-system-tzdata=/usr/share/zoneinfo \ +- --datadir=/usr/share/pgsql ++ --with-system-tzdata=%{?scl:%_root_datadir}%{!?scl:%_datadir}/zoneinfo \ ++ --datadir=%{_datadir}/pgsql + + make %{?_smp_mflags} world + +@@ -424,7 +423,7 @@ rm -f src/tutorial/GNUmakefile + ./configure --build=%{_build} --host=%{_host} \ + --prefix=%{_libdir}/pgsql/postgresql-%{prevmajorversion} \ + --disable-rpath \ +- --with-system-tzdata=/usr/share/zoneinfo ++ --with-system-tzdata=%{?scl:%_root_datadir}%{!?scl:%_datadir}/zoneinfo + + make %{?_smp_mflags} all + +@@ -440,12 +439,12 @@ make DESTDIR=$RPM_BUILD_ROOT install-wor + # we only apply this to known Red Hat multilib arches, per bug #177564 + case `uname -i` in + i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 ) +- mv $RPM_BUILD_ROOT/usr/include/pg_config.h $RPM_BUILD_ROOT/usr/include/pg_config_`uname -i`.h +- install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/usr/include/ +- mv $RPM_BUILD_ROOT/usr/include/pgsql/server/pg_config.h $RPM_BUILD_ROOT/usr/include/pgsql/server/pg_config_`uname -i`.h +- install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/usr/include/pgsql/server/ +- mv $RPM_BUILD_ROOT/usr/include/ecpg_config.h $RPM_BUILD_ROOT/usr/include/ecpg_config_`uname -i`.h +- install -m 644 %{SOURCE7} $RPM_BUILD_ROOT/usr/include/ ++ mv $RPM_BUILD_ROOT%{_includedir}/pg_config.h $RPM_BUILD_ROOT%{_includedir}/pg_config_`uname -i`.h ++ install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_includedir}/ ++ mv $RPM_BUILD_ROOT%{_includedir}/pgsql/server/pg_config.h $RPM_BUILD_ROOT%{_includedir}/pgsql/server/pg_config_`uname -i`.h ++ install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_includedir}/pgsql/server/ ++ mv $RPM_BUILD_ROOT%{_includedir}/ecpg_config.h $RPM_BUILD_ROOT%{_includedir}/ecpg_config_`uname -i`.h ++ install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_includedir}/ + ;; + *) + ;; +@@ -459,8 +458,11 @@ sed -e 's|^PGVERSION=.*$|PGVERSION=%{ver + -e 's|^PGENGINE=.*$|PGENGINE=%{_bindir}|' \ + -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ + -e 's|^PREVPGENGINE=.*$|PREVPGENGINE=%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin|' \ ++ -e 's|SERVICE_NAME=postgresql|SERVICE_NAME=%{?scl_prefix}postgresql|' \ ++ -e 's|/var/lib|%{?_scl_root}/var/lib|' \ + <%{SOURCE9} >postgresql-setup + touch -r %{SOURCE9} postgresql-setup ++ + install -m 755 postgresql-setup $RPM_BUILD_ROOT%{_bindir}/postgresql-setup + + # prep the startup check script, including insertion of some values it needs +@@ -472,24 +474,44 @@ touch -r %{SOURCE4} postgresql-check-db- + install -m 755 postgresql-check-db-dir $RPM_BUILD_ROOT%{_bindir}/postgresql-check-db-dir + + install -d $RPM_BUILD_ROOT%{_unitdir} +-install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/postgresql.service ++install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/%{?scl_prefix}postgresql.service ++ ++install -d $RPM_BUILD_ROOT%{_libdir}/pgsql ++cat > sclenv << EOF ++# scl-related environment variables ++# LD_LIBRARY_PATH=%_libdir:\$LD_LIBRARY_PATH ++LD_LIBRARY_PATH=%_libdir ++EOF ++install -m 644 sclenv $RPM_BUILD_ROOT%{_libdir}/pgsql/sclenv ++ ++install -d $RPM_BUILD_ROOT%{_prefix}/var/run ++install -d $RPM_BUILD_ROOT%{_prefix}/var/lock/subsys + + install -d $RPM_BUILD_ROOT/etc/rc.d/init.d +-install -m 755 %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql ++sed -e 's|/# Provides: postgresql|# Provides: %{?scl_prefix}postgresql|g' \ ++ -e 's|/etc/sysconfig/pgsql|%{_sysconfdir}/sysconfig/pgsql|g' \ ++ -e 's|/usr/bin|%{_bindir}|g' \ ++ -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \ ++ -e 's|^PGENGINE=.*$|PGENGINE=%{_bindir}|' \ ++ -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ ++ -e 's|^PREVPGENGINE=.*$|PREVPGENGINE=%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin|' \ ++ -e 's|SERVICE_NAME=postgresql|SERVICE_NAME=%{?scl_prefix}postgresql|' \ ++ <%{SOURCE11} >postgresql.init ++install -m 755 postgresql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/%{?scl_prefix}postgresql + + %if %pam + install -d $RPM_BUILD_ROOT/etc/pam.d +-install -m 644 %{SOURCE14} $RPM_BUILD_ROOT/etc/pam.d/postgresql ++install -m 644 %{SOURCE14} $RPM_BUILD_ROOT/etc/pam.d/%{?scl_prefix}postgresql + %endif + + # PGDATA needs removal of group and world permissions due to pg_pwd hole. +-install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/data ++install -d -m 700 $RPM_BUILD_ROOT%{?_scl_root}/var/lib/pgsql/data + + # backups of data go here... +-install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/backups ++install -d -m 700 $RPM_BUILD_ROOT%{?_scl_root}/var/lib/pgsql/backups + + # postgres' .bash_profile +-install -m 644 %{SOURCE15} $RPM_BUILD_ROOT/var/lib/pgsql/.bash_profile ++install -m 644 %{SOURCE15} $RPM_BUILD_ROOT%{?_scl_root}/var/lib/pgsql/.bash_profile + + + %if %upgrade +@@ -623,40 +645,57 @@ cat psql-%{majorversion}.lang >>main.lst + + %pre server + /usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || : +-/usr/sbin/useradd -M -N -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \ ++/usr/sbin/useradd -M -N -g postgres -o -r -d %{?_scl_root}/var/lib/pgsql -s /bin/bash \ + -c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || : + + %post server +-/sbin/ldconfig +-if [ $1 -eq 1 ] ; then +- # Initial installation +- /bin/systemctl daemon-reload >/dev/null 2>&1 || : ++if [ -e /bin/systemctl ] ; then ++ # We don't want old init script if we have systemd ++ rm -f /etc/rc.d/init.d/%{?scl_prefix}postgresql ++ ++ if [ $1 -eq 1 ] ; then ++ # Initial installation ++ /bin/systemctl daemon-reload >/dev/null 2>&1 || : ++ fi ++ ++ # Run this when upgrading from SysV initscript to native systemd unit ++ %triggerun server -- postgresql-server < %{first_systemd_version} ++ # Save the current service runlevel info ++ # User must manually run systemd-sysv-convert --apply postgresql ++ # to migrate them to systemd targets ++ /usr/bin/systemd-sysv-convert --save postgresql >/dev/null 2>&1 || : ++ ++ # Run these because the SysV package being removed won't do them ++ /sbin/chkconfig --del postgresql >/dev/null 2>&1 || : ++ /bin/systemctl try-restart %{?scl_prefix}postgresql.service >/dev/null 2>&1 || : ++else ++ # We don't want new systemd unit file if we don't have systemd ++ rm -f %{_unitdir}/%{?scl_prefix}postgresql.service ++ /sbin/chkconfig --add %{?scl_prefix}postgresql ++ /sbin/ldconfig + fi + +-# Run this when upgrading from SysV initscript to native systemd unit +-%triggerun server -- postgresql-server < %{first_systemd_version} +-# Save the current service runlevel info +-# User must manually run systemd-sysv-convert --apply postgresql +-# to migrate them to systemd targets +-/usr/bin/systemd-sysv-convert --save postgresql >/dev/null 2>&1 || : +- +-# Run these because the SysV package being removed won't do them +-/sbin/chkconfig --del postgresql >/dev/null 2>&1 || : +-/bin/systemctl try-restart postgresql.service >/dev/null 2>&1 || : +- + %preun server + if [ $1 -eq 0 ] ; then + # Package removal, not upgrade +- /bin/systemctl --no-reload disable postgresql.service >/dev/null 2>&1 || : +- /bin/systemctl stop postgresql.service >/dev/null 2>&1 || : ++ if [ -e /bin/systemctl ] ; then ++ /bin/systemctl --no-reload disable %{?scl_prefix}postgresql.service >/dev/null 2>&1 || : ++ /bin/systemctl stop %{?scl_prefix}postgresql.service >/dev/null 2>&1 || : ++ else ++ /sbin/service %{?scl_prefix}postgresql stop >/dev/null 2>&1 ++ /sbin/chkconfig --del %{?scl_prefix}postgresql ++ fi + fi + + %postun server + /sbin/ldconfig +-/bin/systemctl daemon-reload >/dev/null 2>&1 || : + if [ $1 -ge 1 ] ; then + # Package upgrade, not uninstall +- /bin/systemctl try-restart postgresql.service >/dev/null 2>&1 || : ++ if [ -e /bin/systemctl ] ; then ++ /bin/systemctl try-restart %{?scl_prefix}postgresql.service >/dev/null 2>&1 || : ++ else ++ /sbin/service %{?scl_prefix}postgresql condrestart >/dev/null 2>&1 || : ++ fi + fi + + %if %plperl +@@ -833,10 +872,11 @@ rm -rf $RPM_BUILD_ROOT + + %files server -f server.lst + %defattr(-,root,root) +-%{_unitdir}/postgresql.service +-/etc/rc.d/init.d/postgresql ++%{_libdir}/pgsql/sclenv ++%{_unitdir}/%{?scl_prefix}postgresql.service ++/etc/rc.d/init.d/%{?scl_prefix}postgresql + %if %pam +-%config(noreplace) /etc/pam.d/postgresql ++%config(noreplace) /etc/pam.d/%{?scl_prefix}postgresql + %endif + %{_bindir}/initdb + %{_bindir}/pg_basebackup +@@ -867,10 +907,10 @@ rm -rf $RPM_BUILD_ROOT + %dir %{_datadir}/pgsql/contrib + %dir %{_datadir}/pgsql/extension + %{_datadir}/pgsql/extension/plpgsql* +-%attr(700,postgres,postgres) %dir /var/lib/pgsql +-%attr(700,postgres,postgres) %dir /var/lib/pgsql/data +-%attr(700,postgres,postgres) %dir /var/lib/pgsql/backups +-%attr(644,postgres,postgres) %config(noreplace) /var/lib/pgsql/.bash_profile ++%attr(700,postgres,postgres) %dir %{?_scl_root}/var/lib/pgsql ++%attr(700,postgres,postgres) %dir %{?_scl_root}/var/lib/pgsql/data ++%attr(700,postgres,postgres) %dir %{?_scl_root}/var/lib/pgsql/backups ++%attr(644,postgres,postgres) %config(noreplace) %{?_scl_root}/var/lib/pgsql/.bash_profile + %{_libdir}/pgsql/libpqwalreceiver.so + %{_libdir}/pgsql/*_and_*.so + %{_libdir}/pgsql/euc2004_sjis2004.so +@@ -878,10 +918,12 @@ rm -rf $RPM_BUILD_ROOT + %{_datadir}/pgsql/information_schema.sql + %{_datadir}/pgsql/snowball_create.sql + %{_datadir}/pgsql/sql_features.txt ++%dir %{_prefix}/var/run ++%dir %{_prefix}/var/lock/subsys + + %files devel -f devel.lst + %defattr(-,root,root) +-/usr/include/* ++%{_includedir}/* + %{_bindir}/ecpg + %{_libdir}/libpq.so + %{_libdir}/libecpg.so diff --git a/postgresql91/postgresql.spec.nodsc b/postgresql91/postgresql.spec.nodsc new file mode 100644 index 0000000..3bebb5b --- /dev/null +++ b/postgresql91/postgresql.spec.nodsc @@ -0,0 +1,1544 @@ +# This is the PostgreSQL Global Development Group Official RPMset spec file, +# or a derivative thereof. +# Copyright 2003-2009 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org> +# and others listed. + +# Major Contributors: +# --------------- +# Lamar Owen +# Trond Eivind Glomsrd <teg@redhat.com> +# Thomas Lockhart +# Reinhard Max +# Karl DeBisschop +# Peter Eisentraut +# Joe Conway +# Andrew Overholt +# David Jee +# Kaj J. Niemi +# Sander Steffann +# Tom Lane +# and others in the Changelog.... + +# This spec file and ancillary files are licensed in accordance with +# The PostgreSQL license. + +# In this file you can find the default build package list macros. +# These can be overridden by defining on the rpm command line: +# rpm --define 'packagename 1' .... to force the package to build. +# rpm --define 'packagename 0' .... to force the package NOT to build. +# The base package, the libs package, the devel package, and the server package +# always get built. + +%global beta 0 +%{?beta:%global __os_install_post /usr/lib/rpm/brp-compress} + +%{!?test:%global test 1} +%{!?upgrade:%global upgrade 1} +%{!?plpython:%global plpython 1} +%{!?pltcl:%global pltcl 1} +%{!?plperl:%global plperl 1} +%{!?ssl:%global ssl 1} +%{!?kerberos:%global kerberos 1} +%{!?ldap:%global ldap 1} +%{!?nls:%global nls 1} +%{!?uuid:%global uuid 1} +%{!?xml:%global xml 1} +%{!?pam:%global pam 1} +%{!?sdt:%global sdt 1} +%{!?selinux:%global selinux 1} +%{!?runselftest:%global runselftest 1} + + +Summary: PostgreSQL client programs +Name: postgresql +%global majorversion 9.1 +Version: 9.1.3 +Release: 3%{?dist} + +# The PostgreSQL license is very similar to other MIT licenses, but the OSI +# recognizes it as an independent license, so we do as well. +License: PostgreSQL +Group: Applications/Databases +Url: http://www.postgresql.org/ + +# This number must be NVR-greater than any PG version shipped in F15: +%global first_systemd_version 0:9.0.99 + +# This SRPM includes a copy of the previous major release, which is needed for +# in-place upgrade of an old database. In most cases it will not be critical +# that this be kept up with the latest minor release of the previous series. +%global prevversion 9.0.7 +%global prevmajorversion 9.0 + +Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2 +# The PDF file is generated by generate-pdf.sh, which see for comments +Source1: postgresql-%{version}-US.pdf +# generate-pdf.sh is not used during RPM build, but include for documentation +Source2: generate-pdf.sh +Source3: ftp://ftp.postgresql.org/pub/source/v%{prevversion}/postgresql-%{prevversion}.tar.bz2 +Source4: postgresql-check-db-dir +Source5: Makefile.regress +Source6: pg_config.h +Source7: ecpg_config.h +Source8: README.rpm-dist +Source9: postgresql-setup +Source10: postgresql.service +Source11: postgresql.init +Source14: postgresql.pam +Source15: postgresql-bashprofile + +# Comments for these patches are in the patch files. +Patch1: rpm-pgsql.patch +Patch2: postgresql-logging.patch +Patch3: postgresql-perl-rpath.patch + +BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk +BuildRequires: perl(ExtUtils::Embed), perl-devel +BuildRequires: readline-devel zlib-devel +BuildRequires: systemd-units + +%if %plpython +BuildRequires: python-devel +%endif + +%if %pltcl +BuildRequires: tcl-devel +%endif + +%if %ssl +BuildRequires: openssl-devel +%endif + +%if %kerberos +BuildRequires: krb5-devel +%endif + +%if %ldap +BuildRequires: openldap-devel +%endif + +%if %nls +BuildRequires: gettext >= 0.10.35 +%endif + +%if %uuid +BuildRequires: uuid-devel +%endif + +%if %xml +BuildRequires: libxml2-devel libxslt-devel +%endif + +%if %pam +BuildRequires: pam-devel +%endif + +%if %sdt +BuildRequires: systemtap-sdt-devel +%endif + +%if %selinux +BuildRequires: libselinux-devel +%endif + +# main package requires -libs subpackage +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root + +%description +PostgreSQL is an advanced Object-Relational database management system (DBMS). +The base postgresql package contains the client programs that you'll need to +access a PostgreSQL DBMS server, as well as HTML documentation for the whole +system. These client programs can be located on the same machine as the +PostgreSQL server, or on a remote machine that accesses a PostgreSQL server +over a network connection. The PostgreSQL server can be found in the +postgresql-server sub-package. + + +%package libs +Summary: The shared libraries required for any PostgreSQL clients +Group: Applications/Databases +Provides: libpq.so = %{version}-%{release} +# for /sbin/ldconfig +Requires(post): glibc +Requires(postun): glibc + +%description libs +The postgresql-libs package provides the essential shared libraries for any +PostgreSQL client program or interface. You will need to install this package +to use any other PostgreSQL package or any clients that need to connect to a +PostgreSQL server. + + +%package server +Summary: The programs needed to create and run a PostgreSQL server +Group: Applications/Databases +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires(pre): /usr/sbin/useradd +# for /sbin/ldconfig +Requires(post): glibc +Requires(postun): glibc +# pre/post stuff needs systemd too +Requires(post): systemd-units +Requires(preun): systemd-units +Requires(postun): systemd-units +# This is actually needed for the %%triggerun script but Requires(triggerun) +# is not valid. We can use post because this particular %%triggerun script +# should fire just after this package is installed. +Requires(post): systemd-sysv +Requires(post): chkconfig + +%description server +PostgreSQL is an advanced Object-Relational database management system (DBMS). +The postgresql-server package contains the programs needed to create +and run a PostgreSQL server, which will in turn allow you to create +and maintain PostgreSQL databases. + + +%package docs +Summary: Extra documentation for PostgreSQL +Group: Applications/Databases +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description docs +The postgresql-docs package contains some additional documentation for +PostgreSQL. Currently, this includes the main documentation in PDF format +and source files for the PostgreSQL tutorial. + + +%package contrib +Summary: Extension modules distributed with PostgreSQL +Group: Applications/Databases +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description contrib +The postgresql-contrib package contains various extension modules that are +included in the PostgreSQL distribution. + + +%package devel +Summary: PostgreSQL development header files and libraries +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description devel +The postgresql-devel package contains the header files and libraries +needed to compile C or C++ applications which will directly interact +with a PostgreSQL database management server. It also contains the ecpg +Embedded C Postgres preprocessor. You need to install this package if you want +to develop applications which will interact with a PostgreSQL server. + + +%if %upgrade +%package upgrade +Summary: Support for upgrading from the previous major release of PostgreSQL +Group: Applications/Databases +Requires: %{name}-server%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description upgrade +The postgresql-upgrade package contains the pg_upgrade utility and supporting +files needed for upgrading a PostgreSQL database from the previous major +version of PostgreSQL. +%endif + + +%if %plperl +%package plperl +Summary: The Perl procedural language for PostgreSQL +Group: Applications/Databases +Requires: %{name}-server%{?_isa} = %{version}-%{release} +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description plperl +The postgresql-plperl package contains the PL/Perl procedural language, +which is an extension to the PostgreSQL database server. +Install this if you want to write database functions in Perl. +%endif + +%if %plpython +%package plpython +Summary: The Python procedural language for PostgreSQL +Group: Applications/Databases +Requires: %{name}-server%{?_isa} = %{version}-%{release} + +%description plpython +The postgresql-plpython package contains the PL/Python procedural language, +which is an extension to the PostgreSQL database server. +Install this if you want to write database functions in Python. +%endif + +%if %pltcl +%package pltcl +Summary: The Tcl procedural language for PostgreSQL +Group: Applications/Databases +Requires: %{name}-server%{?_isa} = %{version}-%{release} + +%description pltcl +The postgresql-plptcl package contains the PL/Tcl procedural language, +which is an extension to the PostgreSQL database server. +Install this if you want to write database functions in Tcl. +%endif + +%if %test +%package test +Summary: The test suite distributed with PostgreSQL +Group: Applications/Databases +Requires: %{name}-server%{?_isa} = %{version}-%{release} +Requires: %{name}-devel%{?_isa} = %{version}-%{release} + +%description test +The postgresql-test package contains files needed for various tests for the +PostgreSQL database management system, including regression tests and +benchmarks. +%endif + +%prep +%setup -q +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 + +# We used to run autoconf here, but there's no longer any real need to, +# since Postgres ships with a reasonably modern configure script. + +cp -p %{SOURCE1} . + +%if %upgrade +tar xfj %{SOURCE3} +%endif + +# remove .gitignore files to ensure none get into the RPMs (bug #642210) +find . -type f -name .gitignore | xargs rm + +%build + +# fail quickly and obviously if user tries to build as root +%if %runselftest + if [ x"`id -u`" = x0 ]; then + echo "postgresql's regression tests fail if run as root." + echo "If you really need to build the RPM as root, use" + echo "--define='runselftest 0' to skip the regression tests." + exit 1 + fi +%endif + +CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS + +# Strip out -ffast-math from CFLAGS.... +CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100` +# Add LINUX_OOM_ADJ=0 to ensure child processes reset postmaster's oom_adj +CFLAGS="$CFLAGS -DLINUX_OOM_ADJ=0" +# let's try removing this kluge, it may just be a workaround for bz#520916 +# # use -O1 on sparc64 and alpha +# %%ifarch sparc64 alpha +# CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O1|g" ` +# %%endif + +%configure --disable-rpath \ +%if %beta + --enable-debug \ + --enable-cassert \ +%endif +%if %plperl + --with-perl \ +%endif +%if %pltcl + --with-tcl \ + --with-tclconfig=%{_libdir} \ +%endif +%if %plpython + --with-python \ +%endif +%if %ldap + --with-ldap \ +%endif +%if %ssl + --with-openssl \ +%endif +%if %pam + --with-pam \ +%endif +%if %kerberos + --with-krb5 \ + --with-gssapi \ +%endif +%if %uuid + --with-ossp-uuid \ +%endif +%if %xml + --with-libxml \ + --with-libxslt \ +%endif +%if %nls + --enable-nls \ +%endif +%if %sdt + --enable-dtrace \ +%endif +%if %selinux + --with-selinux \ +%endif + --with-system-tzdata=/usr/share/zoneinfo \ + --datadir=/usr/share/pgsql + +make %{?_smp_mflags} world + +# Have to hack makefile to put correct path into tutorial scripts +sed "s|C=\`pwd\`;|C=%{_libdir}/pgsql/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile +make %{?_smp_mflags} -C src/tutorial NO_PGXS=1 all +rm -f src/tutorial/GNUmakefile + +%if %runselftest + pushd src/test/regress + make all + make MAX_CONNECTIONS=5 check + make clean + popd + pushd src/pl + make MAX_CONNECTIONS=5 check + popd + pushd contrib + make MAX_CONNECTIONS=5 check + popd +%endif + +# undo the "make clean" above +%if %test + pushd src/test/regress + make all + popd +%endif + +%if %upgrade + pushd postgresql-%{prevversion} + + # The upgrade build can be pretty stripped-down, but make sure that + # any options that affect on-disk file layout match the previous + # major release! Also, note we intentionally do not use %%configure + # here, because we *don't* want its ideas about installation paths. + ./configure --build=%{_build} --host=%{_host} \ + --prefix=%{_libdir}/pgsql/postgresql-%{prevmajorversion} \ + --disable-rpath \ + --with-system-tzdata=/usr/share/zoneinfo + + make %{?_smp_mflags} all + + popd +%endif + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install-world + +# multilib header hack; note pg_config.h is installed in two places! +# we only apply this to known Red Hat multilib arches, per bug #177564 +case `uname -i` in + i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 ) + mv $RPM_BUILD_ROOT/usr/include/pg_config.h $RPM_BUILD_ROOT/usr/include/pg_config_`uname -i`.h + install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/usr/include/ + mv $RPM_BUILD_ROOT/usr/include/pgsql/server/pg_config.h $RPM_BUILD_ROOT/usr/include/pgsql/server/pg_config_`uname -i`.h + install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/usr/include/pgsql/server/ + mv $RPM_BUILD_ROOT/usr/include/ecpg_config.h $RPM_BUILD_ROOT/usr/include/ecpg_config_`uname -i`.h + install -m 644 %{SOURCE7} $RPM_BUILD_ROOT/usr/include/ + ;; + *) + ;; +esac + +install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial +cp -p src/tutorial/* $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial + +# prep the setup script, including insertion of some values it needs +sed -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \ + -e 's|^PGENGINE=.*$|PGENGINE=%{_bindir}|' \ + -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ + -e 's|^PREVPGENGINE=.*$|PREVPGENGINE=%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin|' \ + <%{SOURCE9} >postgresql-setup +touch -r %{SOURCE9} postgresql-setup +install -m 755 postgresql-setup $RPM_BUILD_ROOT%{_bindir}/postgresql-setup + +# prep the startup check script, including insertion of some values it needs +sed -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \ + -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ + -e 's|^PGDOCDIR=.*$|PGDOCDIR=%{_docdir}/%{name}-%{version}|' \ + <%{SOURCE4} >postgresql-check-db-dir +touch -r %{SOURCE4} postgresql-check-db-dir +install -m 755 postgresql-check-db-dir $RPM_BUILD_ROOT%{_bindir}/postgresql-check-db-dir + +install -d $RPM_BUILD_ROOT%{_unitdir} +install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/postgresql.service + +install -d $RPM_BUILD_ROOT/etc/rc.d/init.d +install -m 755 %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql + +%if %pam +install -d $RPM_BUILD_ROOT/etc/pam.d +install -m 644 %{SOURCE14} $RPM_BUILD_ROOT/etc/pam.d/postgresql +%endif + +# PGDATA needs removal of group and world permissions due to pg_pwd hole. +install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/data + +# backups of data go here... +install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/backups + +# postgres' .bash_profile +install -m 644 %{SOURCE15} $RPM_BUILD_ROOT/var/lib/pgsql/.bash_profile + + +%if %upgrade + pushd postgresql-%{prevversion} + make DESTDIR=$RPM_BUILD_ROOT install + popd + + # remove stuff we don't actually need for upgrade purposes + pushd $RPM_BUILD_ROOT%{_libdir}/pgsql/postgresql-%{prevmajorversion} + rm bin/clusterdb + rm bin/createdb + rm bin/createlang + rm bin/createuser + rm bin/dropdb + rm bin/droplang + rm bin/dropuser + rm bin/ecpg + rm bin/initdb + rm bin/pg_config + rm bin/pg_controldata + rm bin/pg_dump + rm bin/pg_dumpall + rm bin/pg_restore + rm bin/psql + rm bin/reindexdb + rm bin/vacuumdb + rm -rf include + rm lib/dict_snowball.so + rm lib/libecpg* + rm lib/libpg* + rm lib/libpq* + rm -rf lib/pgxs + rm lib/plpgsql.so + rm -rf share/doc + rm -rf share/man + rm -rf share/tsearch_data + rm share/*.bki + rm share/*description + rm share/*.sample + rm share/*.sql + rm share/*.txt + popd +%endif + + +%if %test + # tests. There are many files included here that are unnecessary, + # but include them anyway for completeness. We replace the original + # Makefiles, however. + mkdir -p $RPM_BUILD_ROOT%{_libdir}/pgsql/test + cp -a src/test/regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test + # pg_regress binary should be only in one subpackage, + # there will be a symlink from -test to -devel + rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress + ln -sf ../../pgxs/src/test/regress/pg_regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress + pushd $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress + rm -f GNUmakefile Makefile *.o + chmod 0755 pg_regress regress.so + popd + cp %{SOURCE5} $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile + chmod 0644 $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile +%endif + +# Fix some more documentation +# gzip doc/internals.ps +cp %{SOURCE8} README.rpm-dist +mv $RPM_BUILD_ROOT%{_docdir}/pgsql/html doc +rm -rf $RPM_BUILD_ROOT%{_docdir}/pgsql + +# remove files not to be packaged +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a +%if !%upgrade +rm -f $RPM_BUILD_ROOT%{_bindir}/pg_upgrade +rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/pg_upgrade_support.so +%endif + +# initialize file lists +cp /dev/null main.lst +cp /dev/null libs.lst +cp /dev/null server.lst +cp /dev/null devel.lst +cp /dev/null plperl.lst +cp /dev/null pltcl.lst +cp /dev/null plpython.lst + +%if %nls +%find_lang ecpg-%{majorversion} +cat ecpg-%{majorversion}.lang >>devel.lst +%find_lang ecpglib6-%{majorversion} +cat ecpglib6-%{majorversion}.lang >>libs.lst +%find_lang initdb-%{majorversion} +cat initdb-%{majorversion}.lang >>server.lst +%find_lang libpq5-%{majorversion} +cat libpq5-%{majorversion}.lang >>libs.lst +%find_lang pg_basebackup-%{majorversion} +cat pg_basebackup-%{majorversion}.lang >>server.lst +%find_lang pg_controldata-%{majorversion} +cat pg_controldata-%{majorversion}.lang >>server.lst +%find_lang pg_ctl-%{majorversion} +cat pg_ctl-%{majorversion}.lang >>server.lst +%find_lang pg_config-%{majorversion} +cat pg_config-%{majorversion}.lang >>main.lst +%find_lang pg_dump-%{majorversion} +cat pg_dump-%{majorversion}.lang >>main.lst +%find_lang pg_resetxlog-%{majorversion} +cat pg_resetxlog-%{majorversion}.lang >>server.lst +%find_lang pgscripts-%{majorversion} +cat pgscripts-%{majorversion}.lang >>main.lst +%if %plperl +%find_lang plperl-%{majorversion} +cat plperl-%{majorversion}.lang >>plperl.lst +%endif +%find_lang plpgsql-%{majorversion} +cat plpgsql-%{majorversion}.lang >>server.lst +%if %plpython +%find_lang plpython-%{majorversion} +cat plpython-%{majorversion}.lang >>plpython.lst +%endif +%if %pltcl +%find_lang pltcl-%{majorversion} +cat pltcl-%{majorversion}.lang >>pltcl.lst +%endif +%find_lang postgres-%{majorversion} +cat postgres-%{majorversion}.lang >>server.lst +%find_lang psql-%{majorversion} +cat psql-%{majorversion}.lang >>main.lst +%endif + +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + +%pre server +/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || : +/usr/sbin/useradd -M -N -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \ + -c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || : + +%post server +/sbin/ldconfig +if [ $1 -eq 1 ] ; then + # Initial installation + /bin/systemctl daemon-reload >/dev/null 2>&1 || : +fi + +# Run this when upgrading from SysV initscript to native systemd unit +%triggerun server -- postgresql-server < %{first_systemd_version} +# Save the current service runlevel info +# User must manually run systemd-sysv-convert --apply postgresql +# to migrate them to systemd targets +/usr/bin/systemd-sysv-convert --save postgresql >/dev/null 2>&1 || : + +# Run these because the SysV package being removed won't do them +/sbin/chkconfig --del postgresql >/dev/null 2>&1 || : +/bin/systemctl try-restart postgresql.service >/dev/null 2>&1 || : + +%preun server +if [ $1 -eq 0 ] ; then + # Package removal, not upgrade + /bin/systemctl --no-reload disable postgresql.service >/dev/null 2>&1 || : + /bin/systemctl stop postgresql.service >/dev/null 2>&1 || : +fi + +%postun server +/sbin/ldconfig +/bin/systemctl daemon-reload >/dev/null 2>&1 || : +if [ $1 -ge 1 ] ; then + # Package upgrade, not uninstall + /bin/systemctl try-restart postgresql.service >/dev/null 2>&1 || : +fi + +%if %plperl +%post -p /sbin/ldconfig plperl +%postun -p /sbin/ldconfig plperl +%endif + +%if %plpython +%post -p /sbin/ldconfig plpython +%postun -p /sbin/ldconfig plpython +%endif + +%if %pltcl +%post -p /sbin/ldconfig pltcl +%postun -p /sbin/ldconfig pltcl +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +# FILES section. + +%files -f main.lst +%defattr(-,root,root) +%doc doc/KNOWN_BUGS doc/MISSING_FEATURES doc/TODO +%doc COPYRIGHT README HISTORY doc/bug.template +%doc README.rpm-dist +%doc doc/html +%{_bindir}/clusterdb +%{_bindir}/createdb +%{_bindir}/createlang +%{_bindir}/createuser +%{_bindir}/dropdb +%{_bindir}/droplang +%{_bindir}/dropuser +%{_bindir}/pg_config +%{_bindir}/pg_dump +%{_bindir}/pg_dumpall +%{_bindir}/pg_restore +%{_bindir}/psql +%{_bindir}/reindexdb +%{_bindir}/vacuumdb +%{_mandir}/man1/clusterdb.* +%{_mandir}/man1/createdb.* +%{_mandir}/man1/createlang.* +%{_mandir}/man1/createuser.* +%{_mandir}/man1/dropdb.* +%{_mandir}/man1/droplang.* +%{_mandir}/man1/dropuser.* +%{_mandir}/man1/pg_config.* +%{_mandir}/man1/pg_dump.* +%{_mandir}/man1/pg_dumpall.* +%{_mandir}/man1/pg_restore.* +%{_mandir}/man1/psql.* +%{_mandir}/man1/reindexdb.* +%{_mandir}/man1/vacuumdb.* +%{_mandir}/man7/* +%dir %{_libdir}/pgsql + +%files docs +%defattr(-,root,root) +%doc *-US.pdf +%{_libdir}/pgsql/tutorial/ + +%files contrib +%defattr(-,root,root) +%{_datadir}/pgsql/extension/adminpack* +%{_datadir}/pgsql/extension/autoinc* +%{_datadir}/pgsql/extension/btree_gin* +%{_datadir}/pgsql/extension/btree_gist* +%{_datadir}/pgsql/extension/chkpass* +%{_datadir}/pgsql/extension/citext* +%{_datadir}/pgsql/extension/cube* +%{_datadir}/pgsql/extension/dblink* +%{_datadir}/pgsql/extension/dict_int* +%{_datadir}/pgsql/extension/dict_xsyn* +%{_datadir}/pgsql/extension/earthdistance* +%{_datadir}/pgsql/extension/file_fdw* +%{_datadir}/pgsql/extension/fuzzystrmatch* +%{_datadir}/pgsql/extension/hstore* +%{_datadir}/pgsql/extension/insert_username* +%{_datadir}/pgsql/extension/intagg* +%{_datadir}/pgsql/extension/intarray* +%{_datadir}/pgsql/extension/isn* +%{_datadir}/pgsql/extension/lo* +%{_datadir}/pgsql/extension/ltree* +%{_datadir}/pgsql/extension/moddatetime* +%{_datadir}/pgsql/extension/pageinspect* +%{_datadir}/pgsql/extension/pg_buffercache* +%{_datadir}/pgsql/extension/pg_freespacemap* +%{_datadir}/pgsql/extension/pg_stat_statements* +%{_datadir}/pgsql/extension/pg_trgm* +%{_datadir}/pgsql/extension/pgcrypto* +%{_datadir}/pgsql/extension/pgrowlocks* +%{_datadir}/pgsql/extension/pgstattuple* +%{_datadir}/pgsql/extension/refint* +%{_datadir}/pgsql/extension/seg* +%{_datadir}/pgsql/extension/tablefunc* +%{_datadir}/pgsql/extension/test_parser* +%{_datadir}/pgsql/extension/timetravel* +%{_datadir}/pgsql/extension/tsearch2* +%{_datadir}/pgsql/extension/unaccent* +%{_libdir}/pgsql/_int.so +%{_libdir}/pgsql/adminpack.so +%{_libdir}/pgsql/auth_delay.so +%{_libdir}/pgsql/autoinc.so +%{_libdir}/pgsql/auto_explain.so +%{_libdir}/pgsql/btree_gin.so +%{_libdir}/pgsql/btree_gist.so +%{_libdir}/pgsql/chkpass.so +%{_libdir}/pgsql/citext.so +%{_libdir}/pgsql/cube.so +%{_libdir}/pgsql/dblink.so +%{_libdir}/pgsql/dict_int.so +%{_libdir}/pgsql/dict_xsyn.so +%{_libdir}/pgsql/dummy_seclabel.so +%{_libdir}/pgsql/earthdistance.so +%{_libdir}/pgsql/file_fdw.so +%{_libdir}/pgsql/fuzzystrmatch.so +%{_libdir}/pgsql/hstore.so +%{_libdir}/pgsql/insert_username.so +%{_libdir}/pgsql/isn.so +%{_libdir}/pgsql/lo.so +%{_libdir}/pgsql/ltree.so +%{_libdir}/pgsql/moddatetime.so +%{_libdir}/pgsql/pageinspect.so +%{_libdir}/pgsql/passwordcheck.so +%{_libdir}/pgsql/pg_buffercache.so +%{_libdir}/pgsql/pg_freespacemap.so +%{_libdir}/pgsql/pg_trgm.so +%{_libdir}/pgsql/pgcrypto.so +%{_libdir}/pgsql/pgrowlocks.so +%{_libdir}/pgsql/pgstattuple.so +%{_libdir}/pgsql/pg_stat_statements.so +%{_libdir}/pgsql/refint.so +%{_libdir}/pgsql/seg.so +%{_libdir}/pgsql/tablefunc.so +%{_libdir}/pgsql/test_parser.so +%{_libdir}/pgsql/timetravel.so +%{_libdir}/pgsql/tsearch2.so +%{_libdir}/pgsql/unaccent.so +%if %selinux +%{_datadir}/pgsql/contrib/sepgsql.sql +%{_libdir}/pgsql/sepgsql.so +%endif +%if %ssl +%{_datadir}/pgsql/extension/sslinfo* +%{_libdir}/pgsql/sslinfo.so +%endif +%if %uuid +%{_datadir}/pgsql/extension/uuid-ossp* +%{_libdir}/pgsql/uuid-ossp.so +%endif +%if %xml +%{_datadir}/pgsql/extension/xml2* +%{_libdir}/pgsql/pgxml.so +%endif +%{_bindir}/oid2name +%{_bindir}/pg_archivecleanup +%{_bindir}/pg_standby +%{_bindir}/pg_test_fsync +%{_bindir}/pgbench +%{_bindir}/vacuumlo +%{_mandir}/man3/dblink* +%doc contrib/spi/*.example + +%files libs -f libs.lst +%defattr(-,root,root) +%doc COPYRIGHT +%{_libdir}/libpq.so.* +%{_libdir}/libecpg.so.* +%{_libdir}/libpgtypes.so.* +%{_libdir}/libecpg_compat.so.* + +%files server -f server.lst +%defattr(-,root,root) +%{_unitdir}/postgresql.service +/etc/rc.d/init.d/postgresql +%if %pam +%config(noreplace) /etc/pam.d/postgresql +%endif +%{_bindir}/initdb +%{_bindir}/pg_basebackup +%{_bindir}/pg_controldata +%{_bindir}/pg_ctl +%{_bindir}/pg_resetxlog +%{_bindir}/postgres +%{_bindir}/postmaster +%{_bindir}/postgresql-setup +%{_bindir}/postgresql-check-db-dir +%{_mandir}/man1/initdb.* +%{_mandir}/man1/pg_basebackup.* +%{_mandir}/man1/pg_controldata.* +%{_mandir}/man1/pg_ctl.* +%{_mandir}/man1/pg_resetxlog.* +%{_mandir}/man1/postgres.* +%{_mandir}/man1/postmaster.* +%{_datadir}/pgsql/postgres.bki +%{_datadir}/pgsql/postgres.description +%{_datadir}/pgsql/postgres.shdescription +%{_datadir}/pgsql/system_views.sql +%{_datadir}/pgsql/*.sample +%{_datadir}/pgsql/timezonesets/ +%{_datadir}/pgsql/tsearch_data/ +%{_libdir}/pgsql/dict_snowball.so +%{_libdir}/pgsql/plpgsql.so +%dir %{_datadir}/pgsql +%dir %{_datadir}/pgsql/contrib +%dir %{_datadir}/pgsql/extension +%{_datadir}/pgsql/extension/plpgsql* +%attr(700,postgres,postgres) %dir /var/lib/pgsql +%attr(700,postgres,postgres) %dir /var/lib/pgsql/data +%attr(700,postgres,postgres) %dir /var/lib/pgsql/backups +%attr(644,postgres,postgres) %config(noreplace) /var/lib/pgsql/.bash_profile +%{_libdir}/pgsql/libpqwalreceiver.so +%{_libdir}/pgsql/*_and_*.so +%{_libdir}/pgsql/euc2004_sjis2004.so +%{_datadir}/pgsql/conversion_create.sql +%{_datadir}/pgsql/information_schema.sql +%{_datadir}/pgsql/snowball_create.sql +%{_datadir}/pgsql/sql_features.txt + +%files devel -f devel.lst +%defattr(-,root,root) +/usr/include/* +%{_bindir}/ecpg +%{_libdir}/libpq.so +%{_libdir}/libecpg.so +%{_libdir}/libecpg_compat.so +%{_libdir}/libpgtypes.so +%{_libdir}/pgsql/pgxs/ +%{_mandir}/man1/ecpg.* +%{_mandir}/man3/SPI_* + +%if %upgrade +%files upgrade +%defattr(-,root,root) +%{_bindir}/pg_upgrade +%{_libdir}/pgsql/pg_upgrade_support.so +%{_libdir}/pgsql/postgresql-%{prevmajorversion} +%endif + +%if %plperl +%files plperl -f plperl.lst +%defattr(-,root,root) +%{_datadir}/pgsql/extension/plperl* +%{_libdir}/pgsql/plperl.so +%endif + +%if %pltcl +%files pltcl -f pltcl.lst +%defattr(-,root,root) +%{_datadir}/pgsql/extension/pltcl* +%{_libdir}/pgsql/pltcl.so +%{_bindir}/pltcl_delmod +%{_bindir}/pltcl_listmod +%{_bindir}/pltcl_loadmod +%{_datadir}/pgsql/unknown.pltcl +%endif + +%if %plpython +%files plpython -f plpython.lst +%defattr(-,root,root) +%{_datadir}/pgsql/extension/plpython* +%{_libdir}/pgsql/plpython2.so +%endif + +%if %test +%files test +%defattr(-,postgres,postgres) +%attr(-,postgres,postgres) %{_libdir}/pgsql/test/* +%attr(-,postgres,postgres) %dir %{_libdir}/pgsql/test +%endif + +%changelog +* Sat Mar 17 2012 Tom Lane <tgl@redhat.com> 9.1.3-3 +- Fix postgresql-setup to rely on systemd to parse the unit file, instead + of using ad-hoc code +Resolves: #804290 + +* Tue Mar 13 2012 Tom Lane <tgl@redhat.com> 9.1.3-2 +- Fix postgresql-setup to look for unit file in /usr/lib and to ignore + comments therein +Resolves: #802835 +- Resurrect a now-mostly-dummy postgresql init script, so that people can + keep on using "service postgresql initdb" if they wish +Resolves: #800416 + +* Mon Feb 27 2012 Tom Lane <tgl@redhat.com> 9.1.3-1 +- Update to PostgreSQL 9.1.3, for various fixes described at + http://www.postgresql.org/docs/9.1/static/release-9-1-3.html + including the fixes for CVE-2012-0866, CVE-2012-0867, CVE-2012-0868 +Resolves: #797918 + +* Mon Jan 9 2012 Tom Lane <tgl@redhat.com> 9.1.2-2 +- Make systemd unit file more user-friendly by resurrecting the old init + script's checks for data directory presence and version match +Resolves: #771496 + +* Mon Dec 5 2011 Tom Lane <tgl@redhat.com> 9.1.2-1 +- Update to PostgreSQL 9.1.2, for various fixes described at + http://www.postgresql.org/docs/9.1/static/release-9-1-2.html + +* Wed Nov 02 2011 Honza Horak <hhorak@redhat.com> 9.1.1-2 +- Create a symlink of pg_regress instead of full copy; + Don't strip symbols from regress libs +Related: #729012 + +* Mon Sep 26 2011 Tom Lane <tgl@redhat.com> 9.1.1-1 +- Update to PostgreSQL 9.1.1, for various fixes described at + http://www.postgresql.org/docs/9.1/static/release-9-1-1.html +- Enable build (but not test) of contrib/sepgsql +- Clean up specfile build options so that turning options off works again + +* Mon Sep 12 2011 Tom Lane <tgl@redhat.com> 9.1.0-1 +- Update to PostgreSQL 9.1.0 (major version bump); + in-place upgrade support now works from 9.0.x as the previous version + +* Wed Jul 27 2011 Tom Lane <tgl@redhat.com> 9.0.4-8 +- Convert to systemd startup support +Resolves: #696427 + +* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 9.0.4-7 +- Perl mass rebuild + +* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 9.0.4-6 +- Perl mass rebuild + +* Wed Jul 6 2011 Tom Lane <tgl@redhat.com> 9.0.4-5 +- Remove erroneously-included Default-Start line from LSB init block +Related: #717024 + +* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> 9.0.4-4 +- Perl mass rebuild +- incorporate upstream patch to make it build with Perl 5.14 + +* Fri Jun 10 2011 Tom Lane <tgl@redhat.com> 9.0.4-3 +- Work around gcc 4.6.0 bug (temporary backport from next upstream release) + +* Tue May 10 2011 Tom Lane <tgl@redhat.com> 9.0.4-2 +- Add LSB init block to initscript, to ensure sane ordering at system boot +Resolves: #703215 + +* Mon Apr 18 2011 Tom Lane <tgl@redhat.com> 9.0.4-1 +- Update to PostgreSQL 9.0.4, for various fixes described at + http://www.postgresql.org/docs/9.0/static/release-9-0-4.html +- Add %%{?_isa} to cross-subpackage Requires, per latest packaging guidelines + +* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Feb 3 2011 Tom Lane <tgl@redhat.com> 9.0.3-2 +- Remove filter-requires-perl-Pg.sh, which doesn't seem to be needed now that + PyGreSQL has been split out; and our use of it isn't compatible with rpm 4.9 + anyway + +* Tue Feb 1 2011 Tom Lane <tgl@redhat.com> 9.0.3-1 +- Update to PostgreSQL 9.0.3, for various fixes described at + http://www.postgresql.org/docs/9.0/static/release-9-0-3.html + including the fix for CVE-2010-4015 +Resolves: #674296 + +* Tue Dec 28 2010 Tom Lane <tgl@redhat.com> 9.0.2-1 +- Update to PostgreSQL 9.0.2 (major version bump) +- Create infrastructure for in-place database upgrade using pg_upgrade +Resolves: #398221 + +* Thu Dec 16 2010 Tom Lane <tgl@redhat.com> 8.4.6-1 +- Update to PostgreSQL 8.4.6, for various fixes described at + http://www.postgresql.org/docs/8.4/static/release-8-4-6.html +- Ensure we don't package any .gitignore files from the source tarball +Related: #642210 + +* Tue Oct 5 2010 Tom Lane <tgl@redhat.com> 8.4.5-1 +- Update to PostgreSQL 8.4.5, for various fixes described at + http://www.postgresql.org/docs/8.4/static/release-8-4-5.html + including the fix for CVE-2010-3433 +Related: #639371 +- Add -p "$pidfile" to initscript's status call to improve corner cases. +Related: #561010 + +* Sat Jul 31 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 8.4.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild +- Duplicate COPYRIGHT in -libs subpackage, per revised packaging guidelines + +* Wed Jun 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 8.4.4-2 +- Mass rebuild with perl-5.12.0 + +* Mon May 17 2010 Tom Lane <tgl@redhat.com> 8.4.4-1 +- Update to PostgreSQL 8.4.4, for various fixes described at + http://www.postgresql.org/docs/8.4/static/release-8-4-4.html + including fixes for CVE-2010-1169 and CVE-2010-1170 +Resolves: #593032 + +* Sun Mar 14 2010 Tom Lane <tgl@redhat.com> 8.4.3-1 +- Update to PostgreSQL 8.4.3, for various fixes described at + http://www.postgresql.org/docs/8.4/static/release-8-4-3.html + +* Mon Feb 22 2010 Tom Lane <tgl@redhat.com> 8.4.2-8 +- Bring init script into some modicum of compliance with Fedora/LSB standards +Resolves: #201043 + +* Thu Feb 18 2010 Tom "spot" Callaway <tcallawa@redhat.com> 8.4.2-7 +- adjust license tag to reflect OSI decision + +* Tue Jan 26 2010 Tom Lane <tgl@redhat.com> 8.4.2-6 +- Emit explicit error message if user tries to build RPM as root +Related: #558921 + +* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 8.4.2-5 +- Latest version of systemtap needs the probes.o file to be built again +Resolves: #557266 +- Provide script and instructions for building the documentation PDF + +* Mon Jan 11 2010 Tom Lane <tgl@redhat.com> 8.4.2-4 +- Arrange for the postmaster, but not any of its child processes, to be run + with oom_adj -17. This compensates for the OOM killer not being smart about + accounting for shared memory usage. + +* Sat Jan 9 2010 Tom Lane <tgl@redhat.com> 8.4.2-3 +- Remove the postgresql-python and postgresql-tcl subpackages. These files + are now broken out as their own packages (PyGreSQL and tcl-pgtcl, + respectively), to reflect the now longstanding split of upstream projects. +Related: #452306, #452321 + +* Tue Jan 5 2010 Tom Lane <tgl@redhat.com> 8.4.2-2 +- Remove static libraries (.a files) from package, per packaging guidelines +- Change %%define to %%global, per packaging guidelines + +* Wed Dec 16 2009 Tom Lane <tgl@redhat.com> 8.4.2-1 +- Update to PostgreSQL 8.4.2, for various fixes described at + http://www.postgresql.org/docs/8.4/static/release-8-4-2.html + including two security issues +Related: #546321 +Related: #547662 +- Use -N not the obsolete -n in useradd call +Resolves: #495727 +- Clean up specfile to eliminate rpmlint gripes, mainly by removing + no-longer-needed provisions for superseding rh-postgresql + +* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 8.4.1-5 +- rebuild against perl 5.10.1 + +* Thu Oct 15 2009 Tom Lane <tgl@redhat.com> 8.4.1-4 +- add sparc/sparc64 to multilib header support + +* Mon Sep 21 2009 Tom Lane <tgl@redhat.com> 8.4.1-3 +- Ensure pgstartup.log gets the right ownership/permissions during initdb +Resolves: #498959 + +* Wed Sep 16 2009 Tomas Mraz <tmraz@redhat.com> - 8.4.1-2 +- Use password-auth common PAM configuration instead of system-auth + +* Wed Sep 9 2009 Tom Lane <tgl@redhat.com> 8.4.1-1 +- Update to PostgreSQL 8.4.1, for various fixes described at + http://www.postgresql.org/docs/8.4/static/release-8-4-1.html + including two security issues +Related: #522085 +Related: #522092 + +* Tue Sep 01 2009 Karsten Hopp <karsten@redhat.com> 8.4.0-3.2 +- bump release and build again with the correct libssl + +* Tue Sep 01 2009 Karsten Hopp <karsten@redhat.com> 8.4.0-3.1 +- disable dtrace on s390x as a workaround until #520469 has been fixed + +* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 8.4.0-3 +- rebuilt with new openssl + +* Thu Aug 20 2009 Tom "spot" Callaway <tcallawa@redhat.com> 8.4.0-2 +- update License tag to MIT (PostgreSQL calls it "BSD", but it is MIT) +- Note: This changes nothing from a license compatibility perspective. + +* Mon Aug 17 2009 Tom Lane <tgl@redhat.com> 8.4.0-1 +- Update to PostgreSQL 8.4.0. See release notes at + http://www.postgresql.org/docs/8.4/static/release-8-4.html + +* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.3.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sat Mar 21 2009 Tom Lane <tgl@redhat.com> 8.3.7-1 +- Update to PostgreSQL 8.3.7, for various fixes described at + http://www.postgresql.org/docs/8.3/static/release-8-3-7.html + notably the fix for CVE-2009-0922 + +* Tue Mar 10 2009 Tom Lane <tgl@redhat.com> 8.3.6-4 +- Prevent dependent packages from needing to include sys/sdt.h + (unintended side effect of previous patch) +- Use -O1 on alpha, per report from Oliver Falk; -O2 tickles gcc bugs + +* Sun Mar 8 2009 Tom Lane <tgl@redhat.com> 8.3.6-3 +- Enable tracing via systemtap +Resolves: #488941 + +* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.3.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Feb 7 2009 Tom Lane <tgl@redhat.com> 8.3.6-1 +- Update to PostgreSQL 8.3.6, for various fixes described at + http://www.postgresql.org/docs/8.3/static/release-8-3-6.html + +* Wed Jan 21 2009 Dennis Gilmore <dennis@ausil.us> 8.3.5-4 +- use -O1 on sparc64 + +* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 8.3.5-3 +- rebuild with new openssl + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 8.3.5-2 +- Rebuild for Python 2.6 + +* Sun Nov 2 2008 Tom Lane <tgl@redhat.com> 8.3.5-1 +- Update to PostgreSQL 8.3.5. +- Improve display from init script's initdb action, per Michael Schwendt + +* Thu Sep 25 2008 Tom Lane <tgl@redhat.com> 8.3.4-1 +- Update to PostgreSQL 8.3.4. + +* Mon Jul 28 2008 Tom Lane <tgl@redhat.com> 8.3.3-3 +- Fix build failure caused by new default patch fuzz = 0 policy in rawhide. + +* Fri Jun 20 2008 Tom Lane <tgl@redhat.com> 8.3.3-2 +- Install Pgtcl in /usr/lib/tcl$TCL_VERSION, not directly in /usr/lib. + Needed because tcl 8.5 no longer puts /usr/lib into its package search path. + NOTE: do not back-port this change into branches using pre-8.5 tcl, because + /usr/lib/tcl8.4 had been a symlink to /usr/share/tcl8.4, and /usr/share + is exactly where we must not put Pgtcl. +Resolves: #228263 + +* Wed Jun 11 2008 Tom Lane <tgl@redhat.com> 8.3.3-1 +- Update to PostgreSQL 8.3.3. +- Remove postgresql-prefer-ncurses.patch, no longer needed in recent + Fedora releases because libtermcap is gone. + +* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-5 +- rebuild because of buildsystem hiccup + +* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-4 +- Enable LDAP support +Resolves: #445315 +- Use -Wl,--as-needed to suppress bogus dependencies for libraries that + are really only needed by some of the subpackages + +* Mon Apr 28 2008 Tom Lane <tgl@redhat.com> 8.3.1-3 +- Fix build breakage on PPC due to incorrect configure test +Related: #444317 + +* Sat Apr 26 2008 Tom Lane <tgl@redhat.com> 8.3.1-2 +- Clean up cross-subpackage Requires: to ensure that updating any one + subpackage brings in the matching versions of others. +Resolves: #444271 + +* Tue Mar 25 2008 Tom Lane <tgl@redhat.com> 8.3.1-1 +- Update to PostgreSQL 8.3.1. + +* Tue Mar 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> 8.3.0-3 +- add Requires for versioned perl (libperl.so) + +* Wed Feb 6 2008 Tom Lane <tgl@redhat.com> 8.3.0-2 +- Enable the new GSSAPI support in 8.3.0. + +* Mon Feb 4 2008 Tom Lane <tgl@redhat.com> 8.3.0-1 +- Update to PostgreSQL 8.3.0. + +* Fri Jan 18 2008 Tom Lane <tgl@redhat.com> 8.3RC2-1 +- Update to PostgreSQL 8.3RC2 (not waiting for 8.3.0 because Fedora 9 alpha + should be 8.3-based not 8.2-based). +- Update to pgtcl 1.6.2 + +* Mon Jan 7 2008 Tom Lane <tgl@redhat.com> 8.2.6-1 +- Update to PostgreSQL 8.2.6 to fix CVE-2007-4769, CVE-2007-4772, + CVE-2007-6067, CVE-2007-6600, CVE-2007-6601 +- Make initscript and pam config files be installed unconditionally; + seems new buildroots don't necessarily have those directories in place + +* Wed Dec 5 2007 Tom Lane <tgl@redhat.com> 8.2.5-2 +- Rebuild for new openssl + +* Thu Sep 20 2007 Tom Lane <tgl@redhat.com> 8.2.5-1 +- Update to PostgreSQL 8.2.5 and pgtcl 1.6.0 + +* Tue Sep 4 2007 Tom Lane <tgl@redhat.com> 8.2.4-6 +- Fix multilib problem for /usr/include/ecpg_config.h (which is new in 8.2.x) + +* Sat Aug 25 2007 Tom Lane <tgl@redhat.com> 8.2.4-5 +- Use nicer solution for tzdata file substitution: upstream discussion + concluded that hardwiring the path was better than a symlink after all. + +* Wed Aug 22 2007 Tom Lane <tgl@redhat.com> 8.2.4-4 +- Use tzdata package's data files instead of private copy, so that + postgresql-server need not be turned for routine timezone updates +- Don't remove postgres user/group during RPM uninstall, per Fedora + packaging guidelines +- Seems we need an explicit BuildRequires on gawk now +- Rebuild to fix Fedora toolchain issues + +* Sun Aug 12 2007 Tom Lane <tgl@redhat.com> 8.2.4-3 +- Recent perl changes in rawhide mean we need a more specific BuildRequires + +* Wed Jun 20 2007 Tom Lane <tgl@redhat.com> 8.2.4-2 +- Fix oversight in postgresql-test makefile: pg_regress isn't a shell script + anymore. Per upstream bug 3398. + +* Tue Apr 24 2007 Tom Lane <tgl@redhat.com> 8.2.4-1 +- Update to PostgreSQL 8.2.4 for CVE-2007-2138, data loss bugs +Resolves: #237682 + +* Wed Feb 14 2007 Karsten Hopp <karsten@redhat.com> 8.2.3-2 +- rebuild with tcl-8.4 + +* Wed Feb 7 2007 Tom Lane <tgl@redhat.com> 8.2.3-1 +- Update to PostgreSQL 8.2.3 due to regression induced by security fix +Resolves: #227522 + +* Sun Feb 4 2007 Tom Lane <tgl@redhat.com> 8.2.2-1 +- Update to PostgreSQL 8.2.2 to fix CVE-2007-0555, CVE-2007-0556 +Related: #225496 + +* Fri Jan 12 2007 Tom Lane <tgl@redhat.com> 8.2.1-2 +- Split -pl subpackage into three new packages to reduce dependencies + and track upstream project's packaging. + +* Wed Jan 10 2007 Tom Lane <tgl@redhat.com> 8.2.1-1 +- Update to PostgreSQL 8.2.1 +- Update to pgtcl 1.5.3 +- Be sure we link to libncurses, not libtermcap which is disappearing in Fedora + +* Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 8.2.0-2 +- rebuild for python 2.5 + +* Mon Dec 4 2006 Tom Lane <tgl@redhat.com> 8.2.0-1 +- Update to PostgreSQL 8.2.0 +- Update to PyGreSQL 3.8.1 +- Fix chcon arguments in test/regress/Makefile +Related: #201035 +- Adjust init script to not fool /etc/rc.d/rc +Resolves: #161470 +- Change init script to not do initdb automatically, but require + manual "service postgresql initdb" for safety. Per upstream discussions. + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 8.1.4-1.1 +- rebuild + +* Mon May 22 2006 Tom Lane <tgl@redhat.com> 8.1.4-1 +- Update to PostgreSQL 8.1.4 (includes fixes for CVE-2006-2313, CVE-2006-2314; + see bug #192173) +- Update to PyGreSQL 3.8 +- Suppress noise from chcon, per bug #187744 + +* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 8.1.3-2 +- Remove JDBC from this build; we will package it as separate SRPM + +* Mon Feb 13 2006 Jesse Keating <jkeating@redhat.com> - 8.1.3-1.1 +- rebump for build order issues during double-long bump + +* Mon Feb 13 2006 Tom Lane <tgl@redhat.com> 8.1.3-1 +- Update to PostgreSQL 8.1.3 (fixes bug #180617, CVE-2006-0553) +- Update to jdbc driver build 405 +- Modify multilib header hack to not break non-RH arches, per bug #177564 + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 8.1.2-1.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Mon Jan 9 2006 Tom Lane <tgl@redhat.com> 8.1.2-1 +- Update to PostgreSQL 8.1.2 +- Repair extraneous quote in pgtcl configure script ... odd that bash + didn't use to spit up on this. + +* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 8.1.1-3 +- fix pg_config.h for 64-bit and ppc platforms +- update Makefile.regress (needs to --load-language=plpgsql) + +* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 8.1.1-2 +- oops, looks like we want uname -i not uname -m + +* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 8.1.1-1 +- Update to PostgreSQL 8.1.1 +- Make pg_config.h architecture-independent for multilib installs; + put the original pg_config.h into pg_config_$ARCH.h + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Sat Nov 12 2005 Tom Lane <tgl@redhat.com> 8.1.0-4 +- Update included PDF-format manual to 8.1. + +* Wed Nov 9 2005 Tom Lane <tgl@redhat.com> 8.1.0-3 +- Rebuild due to openssl library update. + +* Wed Nov 9 2005 Tom Lane <tgl@redhat.com> 8.1.0-2 +- Rebuild due to openssl library update. + +* Mon Nov 7 2005 Tom Lane <tgl@redhat.com> 8.1.0-1 +- Update to PostgreSQL 8.1.0, PyGreSQL 3.7, and jdbc driver build 404 +- Fix PAM config file (must have account not only auth) (bug #167040) +- Add BuildPrereq: libxslt-devel (bug #170141) +- Sync with PGDG SRPM as much as feasible + +* Fri Oct 14 2005 Tomas Mraz <tmraz@redhat.com> +- use include instead of pam_stack in pam config + +* Tue Oct 4 2005 Tom Lane <tgl@redhat.com> 8.0.4-2 +- Add rpath to plperl.so (bug #162198) + +* Tue Oct 4 2005 Tom Lane <tgl@redhat.com> 8.0.4-1 +- Update to PostgreSQL 8.0.4, PyGreSQL 3.6.2, and jdbc driver build 312 +- Adjust pgtcl link command to ensure it binds to correct libpq (bug #166665) +- Remove obsolete Conflicts: against other python versions (bug #166754) +- Add /etc/pam.d/postgresql (bug #167040) +- Include contrib/xml2 in build (bug #167492) + +* Tue May 10 2005 Tom Lane <tgl@redhat.com> 8.0.3-1 +- Update to PostgreSQL 8.0.3 (includes security and data-loss fixes; see + bz#156727, CAN-2005-1409, CAN-2005-1410) +- Update to jdbc driver build 311 +- Recreate postgres user after superseding an rh-postgresql install (bug #151911) +- Ensure postgresql server is restarted if running during an upgrade + +* Thu Apr 14 2005 Florian La Roche <laroche@redhat.com> 8.0.2-2 +- rebuild for postgresql-tcl + +* Tue Apr 12 2005 Tom Lane <tgl@redhat.com> 8.0.2-1 +- Update to PostgreSQL 8.0.2. + +* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 8.0.1-5 +- Remove unwanted rpath specification from pgtcl (bz#150649) + +* Wed Mar 2 2005 Tom Lane <tgl@redhat.com> 8.0.1-4 +- Attach Obsoletes: declarations for rh-postgresql to subpackages (bz#144435) +- Make Requires: and Prereq: package linkages specify release not only + version, as per recent mailing list discussion. + +* Tue Mar 1 2005 Tomas Mraz <tmraz@redhat.com> 8.0.1-3 +- rebuild with openssl-0.9.7e + +* Mon Feb 21 2005 Tom Lane <tgl@redhat.com> 8.0.1-2 +- Repair improper error message in init script when PGVERSION doesn't match. +- Arrange for auto update of version embedded in init script. + +* Sun Jan 30 2005 Tom Lane <tgl@redhat.com> 8.0.1-1 +- Update to PostgreSQL 8.0.1. +- Add versionless symlinks to jar files (bz#145744) + +* Wed Jan 19 2005 Tom Lane <tgl@redhat.com> 8.0.0-1 +- Update to PostgreSQL 8.0.0, PyGreSQL 3.6.1, pgtcl 1.5.2, + and jdbc driver build 309. +- Extensive cleanout of obsolete cruft in patch set. +- Regression tests are run during RPM build (NOTE: cannot build as root when + this is enabled). +- Postmaster stderr goes someplace useful, not /dev/null (bz#76503, #103767) +- Make init script return a useful exit status (bz#80782) +- Move docs' tutorial directory to %%{_libdir}/pgsql/tutorial, since it + includes .so files that surely do not belong under /usr/share. +- Remove useless .sgml files from docs RPM (bz#134450) +- Put regression tests under /usr/lib64 on 64-bit archs, since .so files + are not architecture-independent. + +* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 7.4.6-5 +- Rebuilt for new readline. + +* Tue Jan 11 2005 Dan Walsh <dwalsh@redhat.com> 7.4.6-4 +- Add restorecon to postgresql.init in order to restore database to correct +- SELinux context. + +* Thu Dec 16 2004 Tom Lane <tgl@redhat.com> 7.4.6-3 +- Update to PyGreSQL 3.6 (to fix bug #142711) +- Adjust a few file permissions (bug #142431) +- Assign %%{_libdir}/pgsql to base package instead of -server (bug #74003) + +* Mon Nov 15 2004 Tom Lane <tgl@redhat.com> 7.4.6-2 +- Rebuild so python components play with python 2.4 (bug 139160) + +* Sat Oct 23 2004 Tom Lane <tgl@redhat.com> 7.4.6-1 +- Update to PostgreSQL 7.4.6 (bugs 136947, 136949) +- Make init script more paranoid about mkdir step of initializing a new + database (bugs 136947, 136949) + +* Wed Oct 20 2004 Tom Lane <tgl@redhat.com> 7.4.5-4 +- Remove contrib/oidjoins stuff from installed fileset; it's of no use + to ordinary users and has a security issue (bugs 136300, 136301) +- adjust chkconfig priority (bug 128852) + +* Tue Oct 05 2004 Tom Lane <tgl@redhat.com> 7.4.5-3 +- Solve the stale lockfile problem (bugs 71295, 96981, 134090) +- Use runuser instead of su for SELinux (bug 134588) + +* Mon Aug 30 2004 Tom Lane <tgl@redhat.com> 7.4.5-2 +- Update to PyGreSQL 3.5. + +* Wed Aug 24 2004 Tom Lane <tgl@redhat.com> 7.4.5-1 +- Update to PostgreSQL 7.4.5. +- Update JDBC jars to driver build 215. +- Add Obsoletes: entries for rh-postgresql packages, per bug 129278. + +* Sat Jul 10 2004 Tom Lane <tgl@redhat.com> 7.4.3-3 +- Undo ill-considered chkconfig change that causes server to start + immediately upon install. Mea culpa (bug 127552). + +* Sat Jul 03 2004 Tom Lane <tgl@redhat.com> 7.4.3-2 +- Update JDBC jars to driver build 214. + +* Wed Jun 23 2004 Tom Lane <tgl@redhat.com> 7.4.3-1 +- Update to PostgreSQL 7.4.3. +- Uninstalling server RPM stops postmaster first, per bug 114846. +- Fix su commands to not assume PG user's shell is sh-like, per bug 124024. +- Fix permissions on postgresql-python doc files, per bug 124822. +- Minor postgresql.init improvements. + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 7.4.2-1 +- Update to PostgreSQL 7.4.2; sync with community SRPM as much as possible. +- Support PGOPTS from /etc/sysconfig/pgsql, per bug 111504. +- Fix permissions on /etc/sysconfig/pgsql, per bug 115278. +- SELinux patch in init file: always su </dev/null, per bug 117901. +- Rebuilt + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Wed Feb 25 2004 Tom Lane <tgl@redhat.com> +- Update to PostgreSQL 7.4.1. +- Rebuilt + +* Tue Feb 24 2004 Tom Lane <tgl@redhat.com> +- Fix chown syntax in postgresql.init also. +- Rebuilt + +* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com> +- Use ':' instead of '.' as separator for chown. + +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Fri Jan 9 2004 Lamar Owen <lowen@pari.edu> +- 7.4.1-1PGDG +- Merge Sander Steffann's changes up to 7.4-0.5PGDG +- Proper 7.4.1 JDBC jars this time. +- Patch for no pl/python from Alvaro + +* Fri Dec 05 2003 David Jee <djee@redhat.com> 7.4-5 +- Rebuild for Perl 5.8.2. + +* Mon Dec 01 2003 David Jee <djee@redhat.com> 7.4-4 +- Add PyGreSQL patch for deprecated column pg_type.typprtlen [Bug #111263] +- Add headers patch which moves ecpg headers to /usr/include/ecpg + [Bug #111195] + +* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-3 +- uncomment buildrequires tcl-devel + +* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-2 +- rebuild + +* Mon Nov 24 2003 David Jee <djee@redhat.com> 7.4-1 +- initial Red Hat build +- move jars to /usr/share/java +- fix rpm-multilib patch to use sysconfig + +* Fri Nov 21 2003 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org> +- 7.4-0.1PGDG +- Development JDBC jars in addition to the 7.3 jars; will replace the +- 7.3 jars once 7.4 official jars are released. +- Changed to use the bzip2 source to save a little size. +- Removed some commented out portions of the specfile. +- Removed the 7.3.4 PDF docs. Will replace with 7.4 PDF's once they +- are ready. + +* Tue Nov 18 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 7.4-0.1 +- 7.4 +- Fixed Patch #1 (now rpm-pgsql-7.4.patch) +- Fixed Patch #2 (now rpm-multilib-7.4.patch): +- Patch #4 is unnecessary (upstream) +- Fixed Patch #6 (now postgresql-7.4-src-tutorial.patch) +- Added Patch #8 (postgresql-7.4-com_err.patch) as com_err() + is provided by e2fsprogs and CPPFLAGS gets lost somewhere + inside configure (bad macro?) +- No 7.4 PDF docs available yet (Source #17) +- PyGreSQL is separated from the upstream distribution but + we include it as usual (Source #18) +- Default to compiling libpq and ECPG as fully thread-safe + +- 7.4 Origin. See previous spec files for previous history. Adapted +- from Red Hat and PGDG's 7.3.4 RPM, directly descended from +- postgresql-7.3.4-2 as shipped in Fedora Core 1. diff --git a/postgresql91/ruby-postgres.spec.diff b/postgresql91/ruby-postgres.spec.diff new file mode 100644 index 0000000..6531c1c --- /dev/null +++ b/postgresql91/ruby-postgres.spec.diff @@ -0,0 +1,74 @@ +--- ruby-postgres.spec.nodsc 2012-06-05 09:10:39.579420732 +0200 ++++ ruby-postgres.spec 2012-06-05 09:27:29.960542186 +0200 +@@ -1,6 +1,12 @@ ++# Sets %%pkg_name to 'ruby-postgres' if we build for scl. ++%{?scl:%scl_package ruby-postgres} ++# If we don't build for scl, then pkg_name is empty. ++# This way, we can always use %%pkg_name for 'ruby-postgres', be it scl build or not. ++%{!?scl:%global pkg_name ruby-postgres} ++# %%{name} then references to either 'ruby-postgres' (not in scl) or '%%{?scl:%scl_prefix}ruby-postgres' (in scl). + %{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")} + +-Name: ruby-postgres ++Name: %{?scl_prefix}ruby-postgres + Version: 0.7.9 + Release: 2010.01.28.2%{?dist} + Summary: A Ruby interface for the PostgreSQL database engine +@@ -9,8 +15,7 @@ Group: Development/Languages + # terms as ruby. + License: Ruby + URL: http://bitbucket.org/ged/ruby-pg/ +-Source: http://bitbucket.org/ged/ruby-pg/downloads/%{name}-%{version}.2008.01.28.tar.gz +-BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) ++Source: http://bitbucket.org/ged/ruby-pg/downloads/%{pkg_name}-%{version}.2008.01.28.tar.gz + Patch1: 0001-Implement-trace.patch + Patch2: 0002-Implement-notifies.patch + Patch3: 0003-Implement-print.patch +@@ -19,38 +24,38 @@ Requires: ruby >= 1.3 + Requires: ruby(abi) = 1.8 + + BuildRequires: ruby >= 1.3 +-BuildRequires: postgresql-devel >= 6.5 ++BuildRequires: %{?scl_prefix}postgresql-devel >= 6.5 + BuildRequires: ruby-devel + +-Provides: ruby(postgres) = %{version} ++Provides: %{?scl_prefix}ruby(postgres) = %{version} ++ ++%{?scl:Requires:%scl_runtime} + + %description + Database driver to access PostgreSQL databases from Ruby. + + %prep +-%setup -q ++%setup -q -n %{pkg_name}-%{version} + %patch1 -p1 + %patch2 -p1 + %patch3 -p1 + chmod a-x sample/psql.rb + + %build ++%{?scl:scl enable %scl - << \EOF} + cd ext + ruby extconf.rb --with-cflags="$RPM_OPT_FLAGS" + make ++%{?scl:EOF} + + %install + cd ext +-rm -rf $RPM_BUILD_ROOT +-make DESTDIR=%{buildroot} install +- +-%clean +-rm -rf %{buildroot} ++make DESTDIR=%{buildroot}%{?scl:%_scl_root} install + + %files + %defattr(-, root, root) + %doc ChangeLog README README.ja doc sample +-%{ruby_sitearch}/postgres.so ++%{?scl:%_scl_root}%{ruby_sitearch}/postgres.so + + %changelog + * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.9-2010.01.28.2 diff --git a/postgresql91/ruby-postgres.spec.nodsc b/postgresql91/ruby-postgres.spec.nodsc new file mode 100644 index 0000000..b354343 --- /dev/null +++ b/postgresql91/ruby-postgres.spec.nodsc @@ -0,0 +1,108 @@ +%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")} + +Name: ruby-postgres +Version: 0.7.9 +Release: 2010.01.28.2%{?dist} +Summary: A Ruby interface for the PostgreSQL database engine +Group: Development/Languages +# Source says that ruby-gems-postgres is distributable under the same +# terms as ruby. +License: Ruby +URL: http://bitbucket.org/ged/ruby-pg/ +Source: http://bitbucket.org/ged/ruby-pg/downloads/%{name}-%{version}.2008.01.28.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) +Patch1: 0001-Implement-trace.patch +Patch2: 0002-Implement-notifies.patch +Patch3: 0003-Implement-print.patch + +Requires: ruby >= 1.3 +Requires: ruby(abi) = 1.8 + +BuildRequires: ruby >= 1.3 +BuildRequires: postgresql-devel >= 6.5 +BuildRequires: ruby-devel + +Provides: ruby(postgres) = %{version} + +%description +Database driver to access PostgreSQL databases from Ruby. + +%prep +%setup -q +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +chmod a-x sample/psql.rb + +%build +cd ext +ruby extconf.rb --with-cflags="$RPM_OPT_FLAGS" +make + +%install +cd ext +rm -rf $RPM_BUILD_ROOT +make DESTDIR=%{buildroot} install + +%clean +rm -rf %{buildroot} + +%files +%defattr(-, root, root) +%doc ChangeLog README README.ja doc sample +%{ruby_sitearch}/postgres.so + +%changelog +* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.9-2010.01.28.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.9-2009.01.28.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Sep 08 2010 Chris Lalancette <clalance@redhat.com> - 0.7.9.2008.01.28.2 +- Add patch to implement trace support (from upstream ruby-pg project) +- Add patch to implement print support (from older 0.7.1 sources) +- Add patch to implement notifies call (from older 0.7.1 sources) + +* Fri Aug 13 2010 Chris Lalancette <clalance@redhat.com> - 0.7.9.2008.01.28.1 +- Update to ruby-postgres .7.9.2008.01.28 + +* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.7.1-10 +- apply patch properly + +* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.7.1-9 +- fix license tag + +* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.7.1-8 +- Autorebuild for GCC 4.3 + +* Wed Aug 22 2007 David Lutterkort <dlutter@redhat.com> - 0.7.1-7 +- Rebuild for F8 buildid + +* Fri Dec 8 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-6 +- Rebuild against PostgreSQL 8.2.0 + +* Wed Sep 13 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-5 +- Rebuilt for FC6 +- Remove _smp_mflags from make install + +* Wed Aug 2 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-4 +- Fix CFLAGS +- Add id to buildroot path + +* Tue Jul 11 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-3 +- Bring in accordance with packaging guidelines +- Changed license from 'Distributable' to 'Ruby License' + +* Mon Jun 5 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-2 +- Clean build root for install + +* Wed May 24 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-1 +- Initial build + diff --git a/postgresql91/rubygem-pg.spec.diff b/postgresql91/rubygem-pg.spec.diff new file mode 100644 index 0000000..50173e0 --- /dev/null +++ b/postgresql91/rubygem-pg.spec.diff @@ -0,0 +1,78 @@ +--- rubygem-pg.spec.nodsc 2012-08-20 15:36:33.558327113 +0200 ++++ rubygem-pg.spec 2012-08-20 15:45:47.794358583 +0200 +@@ -1,9 +1,12 @@ ++%{?scl:%scl_package rubygem-%{gem_name}} ++%{!?scl:%global pkg_name %{name}} ++ + # Generated from pg-0.11.0.gem by gem2rpm -*- rpm-spec -*- + %global gem_name pg + %global rubyabi 1.9.1 + + Summary: A Ruby interface to the PostgreSQL RDBMS +-Name: rubygem-%{gem_name} ++Name: %{?scl_prefix}rubygem-%{gem_name} + Version: 0.12.2 + Release: 3%{?dist} + Group: Development/Languages +@@ -22,12 +25,12 @@ BuildRequires: ruby(abi) = %{rubyabi} + BuildRequires: ruby-devel + BuildRequires: rubygems-devel + BuildRequires: ruby +-BuildRequires: postgresql-server postgresql-devel ++BuildRequires: %{?scl_prefix}postgresql-server %{?scl_prefix}postgresql-devel + # Keep requiring rspec-core as long as rubygem(rspec) is provided by RSpec 1.x + BuildRequires: rubygem(rspec-core) + # Introduced in F17. +-Obsoletes: ruby(postgres) <= 0.7.9-2010.01.28.2 +-Provides: rubygem(%{gem_name}) = %{version} ++Obsoletes: %{?scl_prefix}ruby(postgres) <= 0.7.9-2010.01.28.2 ++Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + + %description + This is the extension library to access a PostgreSQL database from Ruby. +@@ -35,21 +38,23 @@ This library works with PostgreSQL 7.4 a + + + %package doc +-Summary: Documentation for %{name} ++Summary: Documentation for %{pkg_name} + Group: Documentation +-Requires: %{name} = %{version}-%{release} ++Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} + BuildArch: noarch + + %description doc +-Documentation for %{name} ++Documentation for %{pkg_name} + + + %prep +-%setup -q -c -T ++%setup -n %{pkg_name}-%{version} -q -c -T + mkdir -p .%{gem_dir} + export CONFIGURE_ARGS="--with-cflags='%{optflags}'" ++%{?scl:scl enable %{scl} "} + gem install --local --install-dir .%{gem_dir} \ + -V --force %{SOURCE0} ++%{?scl:"} + + %build + +@@ -78,7 +83,9 @@ done + + %check + pushd .%{gem_instdir} ++%{?scl:scl enable %{scl} "} + rspec spec ++%{?scl:"} + popd + + %files +@@ -108,7 +115,6 @@ popd + %{gem_instdir}/sample + %{gem_instdir}/spec + +- + %changelog + * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.2-3 + - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild diff --git a/postgresql91/rubygem-pg.spec.nodsc b/postgresql91/rubygem-pg.spec.nodsc new file mode 100644 index 0000000..22ac9fe --- /dev/null +++ b/postgresql91/rubygem-pg.spec.nodsc @@ -0,0 +1,142 @@ +# Generated from pg-0.11.0.gem by gem2rpm -*- rpm-spec -*- +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global gemname pg +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} +%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')} +%global rubyabi 1.8 + +Summary: A Ruby interface to the PostgreSQL RDBMS +Name: rubygem-%{gemname} +Version: 0.12.2 +Release: 2%{?dist} +Group: Development/Languages +# Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/) +# +# The portions of the code that are BSD-licensed are licensed under +# the BSD 3-Clause license; the contents of the BSD file are incorrect. +# +License: (GPLv2 or Ruby) and BSD +URL: http://bitbucket.org/ged/ruby-pg/ +Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem +Requires: ruby(abi) = %{rubyabi} +Requires: rubygems +Requires: ruby +BuildRequires: ruby(abi) = %{rubyabi} +BuildRequires: rubygems +BuildRequires: ruby ruby-devel +BuildRequires: postgresql-server postgresql-devel +# EPEL does not have RSpec 2.x :/ +%if 0%{?fedora} +# Keep requiring rspec-core as long as rubygem(rspec) is provided by RSpec 1.x +BuildRequires: rubygem(rspec-core) +%endif +Provides: rubygem(%{gemname}) = %{version} + +%description +This is the extension library to access a PostgreSQL database from Ruby. +This library works with PostgreSQL 7.4 and later. + + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} + +%description doc +Documentation for %{name} + + +%prep +%setup -q -c -T +mkdir -p .%{gemdir} +export CONFIGURE_ARGS="--with-cflags='%{optflags}'" +gem install --local --install-dir .%{gemdir} \ + -V --force %{SOURCE0} + +%build + +%install +mkdir -p %{buildroot}%{gemdir} +cp -a .%{gemdir}/* \ + %{buildroot}%{gemdir}/ + +install -d -m0755 %{buildroot}%{ruby_sitearch} +mv %{buildroot}%{geminstdir}/lib/pg_ext.so %{buildroot}%{ruby_sitearch}/ + +# Remove the binary extension sources and build leftovers. +rm -rf %{buildroot}%{geminstdir}/ext + +# Remove useless shebangs. +sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{geminstdir}/lib/pg.rb +sed -i -e '/^#!rake/d' %{buildroot}%{geminstdir}/Rakefile +sed -i -e '/^#!rake/d' %{buildroot}%{geminstdir}/Rakefile.cross + +# Fix spec shebangs. +# https://bitbucket.org/ged/ruby-pg/issue/74/ +for file in `find %{buildroot}%{geminstdir}/spec -type f ! -perm /a+x -name "*.rb"`; do + [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] \ + && sed -i -e 's/^#!\/usr\/bin\/env spec/#!\/usr\/bin\/env rspec/' $file \ + && chmod -v 755 $file +done + +%if 0%{?fedora} +%check +pushd .%{geminstdir} +rspec spec +popd +%endif + +%files +%exclude %{geminstdir}/.gemtest +%{ruby_sitearch}/pg_ext.so +%dir %{geminstdir} +%doc %{geminstdir}/BSD +%doc %{geminstdir}/GPL +%doc %{geminstdir}/LICENSE +%{geminstdir}/lib +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + +%files doc +%doc %{gemdir}/doc/%{gemname}-%{version} +%doc %{geminstdir}/ChangeLog +%doc %{geminstdir}/Contributors.rdoc +%doc %{geminstdir}/History.rdoc +%doc %{geminstdir}/Manifest.txt +%{geminstdir}/Rakefile +%{geminstdir}/Rakefile.cross +%doc %{geminstdir}/README.rdoc +%doc %{geminstdir}/README.ja.rdoc +%doc %{geminstdir}/README.OS_X.rdoc +%doc %{geminstdir}/README.windows.rdoc +%{geminstdir}/misc +%{geminstdir}/sample +%{geminstdir}/spec + + +%changelog +* Tue Apr 24 2012 Vít Ondruch <vondruch@redhat.com> - 0.12.2-2 +- Fix provides macro. + +* Tue Apr 03 2012 Vít Ondruch <vondruch@redhat.com> - 0.12.2-1 +- Upgrade to pg 0.12.2. + +* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Jun 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-5 +- Pass CFLAGS to extconf.rb. + +* Fri Jun 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-4 +- Binary extension moved into ruby_sitearch dir. +- -doc subpackage made architecture independent. + +* Wed Jun 01 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-3 +- Quoted upstream license clarification. + +* Mon May 30 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-2 +- Removed/fixed shebang in non-executables. +- Removed sources. + +* Thu May 26 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-1 +- Initial package diff --git a/postgresql92/PyGreSQL.spec.diff b/postgresql92/PyGreSQL.spec.diff new file mode 100644 index 0000000..c3ff182 --- /dev/null +++ b/postgresql92/PyGreSQL.spec.diff @@ -0,0 +1,56 @@ +1c1,8 +< Name: PyGreSQL +--- +> # Sets %%pkg_name to 'PyGreSQL' if we build for scl. +> %{?scl:%scl_package PyGreSQL} +> # If we don't build for scl, then pkg_name is empty. +> # This way, we can always use %%pkg_name for 'PyGreSQL', be it scl build or not. +> %{!?scl:%global pkg_name PyGreSQL} +> # %%{name} then references to either 'PyGreSQL' (not in scl) or '%%{?scl:%scl_prefix}PyGreSQL' (in scl). +> +> Name: %{?scl_prefix}PyGreSQL +22,25c29,30 +< Provides: postgresql-python = 8.5.0-1 +< Obsoletes: postgresql-python < 8.5 +< +< BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +--- +> Provides: %{?scl_prefix}postgresql-python = 8.5.0-1 +> Obsoletes: %{?scl_prefix}postgresql-python < 8.5 +27c32 +< BuildRequires: postgresql-devel python-devel +--- +> BuildRequires: %{?scl_prefix}postgresql-devel python-devel +37c42 +< %setup -q +--- +> %setup -q -n %{pkg_name}-%{version} +46c51 +< +--- +> %{?scl:scl enable %scl - << \EOF} +47a53 +> %{?scl:EOF} +50,55c56,58 +< rm -rf $RPM_BUILD_ROOT +< +< %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +< +< %clean +< rm -rf $RPM_BUILD_ROOT +--- +> %{?scl:scl enable %scl - << \EOF} +> %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT%{?scl:%_scl_root} +> %{?scl:EOF} +61,65c64,68 +< %{python_sitearch}/*.so +< %{python_sitearch}/*.py +< %{python_sitearch}/*.pyc +< %{python_sitearch}/*.pyo +< %{python_sitearch}/*.egg-info +--- +> %{?scl:%_scl_root}%{python_sitearch}/*.so +> %{?scl:%_scl_root}%{python_sitearch}/*.py +> %{?scl:%_scl_root}%{python_sitearch}/*.pyc +> %{?scl:%_scl_root}%{python_sitearch}/*.pyo +> %{?scl:%_scl_root}%{python_sitearch}/*.egg-info diff --git a/postgresql92/PyGreSQL.spec.nodsc b/postgresql92/PyGreSQL.spec.nodsc new file mode 100644 index 0000000..522ddf9 --- /dev/null +++ b/postgresql92/PyGreSQL.spec.nodsc @@ -0,0 +1,92 @@ +Name: PyGreSQL +Version: 4.0 +Release: 4%{?dist} +Summary: A Python client library for PostgreSQL + +Group: Applications/Databases +URL: http://www.pygresql.org/ +# Author states his intention is to dual license under PostgreSQL or Python +# licenses --- this is not too clear from the current tarball documentation, +# but hopefully will be clearer in future releases. +# The PostgreSQL license is very similar to other MIT licenses, but the OSI +# recognizes it as an independent license, so we do as well. +License: PostgreSQL or Python + +Source0: ftp://ftp.pygresql.org/pub/distrib/PyGreSQL-%{version}.tgz + +Patch1: PyGreSQL-set-decimal.patch + +# PyGreSQL was originally shipped as a sub-RPM of the PostgreSQL package; +# these Provides/Obsoletes give a migration path. Note there is no +# intention of changing the version numbers in future. +Provides: postgresql-python = 8.5.0-1 +Obsoletes: postgresql-python < 8.5 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +BuildRequires: postgresql-devel python-devel + +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +%description +PostgreSQL is an advanced Object-Relational database management system. +The PyGreSQL package provides a module for developers to use when writing +Python code for accessing a PostgreSQL database. + +%prep +%setup -q + +%patch1 -p1 + +# Some versions of PyGreSQL.tgz contain wrong file permissions +chmod 755 tutorial +chmod 644 tutorial/*.py + +%build + +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT + +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc docs/*.txt +%doc tutorial +%{python_sitearch}/*.so +%{python_sitearch}/*.py +%{python_sitearch}/*.pyc +%{python_sitearch}/*.pyo +%{python_sitearch}/*.egg-info + +%changelog +* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Jul 7 2011 Tom Lane <tgl@redhat.com> 4.0-3 +- Add upstream patch for set_decimal bug +Resolves: #719093 + +* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 29 2010 Tom Lane <tgl@redhat.com> 4.0-1 +- Update to PyGreSQL 4.0 +- Relabel license as PostgreSQL now that that's separately recognized by OSI. + +* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.8.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Tue Nov 24 2009 Tom Lane <tgl@redhat.com> 3.8.1-2 +- Fix License tag and permissions on example scripts under tutorial/, + per discussion in package review request. +Related: #452321 + +* Fri Jun 20 2008 Tom Lane <tgl@redhat.com> 3.8.1-1 +- Created package by stripping down postgresql specfile and adjusting + to meet current packaging guidelines for python modules. diff --git a/postgresql92/perl-DBD-Pg.spec.diff b/postgresql92/perl-DBD-Pg.spec.diff new file mode 100644 index 0000000..21b1134 --- /dev/null +++ b/postgresql92/perl-DBD-Pg.spec.diff @@ -0,0 +1,40 @@ +1c1,8 +< Name: perl-DBD-Pg +--- +> # Sets %%pkg_name to 'perl-DBD-Pg' if we build for scl. +> %{?scl:%scl_package perl-DBD-Pg} +> # If we don't build for scl, then pkg_name is empty. +> # This way, we can always use %%pkg_name for 'perl-DBD-Pg', be it scl build or not. +> %{!?scl:%global pkg_name perl-DBD-Pg} +> # %%{name} then references to either 'perl-DBD-Pg' (not in scl) or '%%{?scl:%scl_prefix}perl-DBD-Pg' (in scl). +> +> Name: %{?scl:%scl_prefix}perl-DBD-Pg +16,17c23,24 +< BuildRequires: postgresql-devel >= 7.4 +< BuildRequires: perl(Test::Simple), postgresql-server +--- +> BuildRequires: %{?scl:%scl_prefix}postgresql-devel >= 7.4 +> BuildRequires: perl(Test::Simple), %{?scl:%scl_prefix}postgresql-server +23c30 +< Provides: perl(DBD::Pg) = %{version} +--- +> Provides: %{?scl:%scl_prefix}perl(DBD::Pg) = %{version} +37c44,45 +< %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +--- +> %{?scl:scl enable %scl - << \EOF} +> %{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +38a47 +> %{?scl:EOF} +55c64 +< LC_ALL=C make test +--- +> #LC_ALL=C make test +59,61c68,70 +< %{perl_vendorarch}/DBD/ +< %{perl_vendorarch}/auto/DBD/ +< %{perl_vendorarch}/Bundle/DBD/Pg.pm +--- +> %{?scl:%_scl_root}%{perl_vendorarch}/DBD/ +> %{?scl:%_scl_root}%{perl_vendorarch}/auto/DBD/ +> %{?scl:%_scl_root}%{perl_vendorarch}/Bundle/DBD/Pg.pm diff --git a/postgresql92/perl-DBD-Pg.spec.nodsc b/postgresql92/perl-DBD-Pg.spec.nodsc new file mode 100644 index 0000000..1e4db06 --- /dev/null +++ b/postgresql92/perl-DBD-Pg.spec.nodsc @@ -0,0 +1,300 @@ +Name: perl-DBD-Pg +Summary: A PostgreSQL interface for perl +Version: 2.19.2 +Release: 1%{?dist} +License: GPLv2+ or Artistic +Group: Development/Libraries +Source0: http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/DBD-Pg-%{version}.tar.gz +URL: http://search.cpan.org/dist/DBD-Pg/ +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# Prevent bug #443495 +BuildRequires: perl(DBI) >= 1.607 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) >= 0.61 +BuildRequires: perl(version) +BuildRequires: postgresql-devel >= 7.4 +BuildRequires: perl(Test::Simple), postgresql-server + +Requires: perl(DBI) >= 1.52 +# test requirements +Requires: perl(Data::Peek) +# Missed by the find provides script: +Provides: perl(DBD::Pg) = %{version} + +%filter_from_provides /perl(DBD::Pg)$/d +%{?perl_default_filter} +%{?perl_default_subpackage_tests} + +%description +DBD::Pg is a Perl module that works with the DBI module to provide access +to PostgreSQL databases. + +%prep +%setup -q -n DBD-Pg-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%check +# Full test coverage requires a live PostgreSQL database (see the README file) +#export DBI_DSN=dbi:Pg:dbname=<database> +#export DBI_USER=<username> +#export DBI_PASS=<password> +# If variables undefined, package test will create it's own database. All +# tests pass then if LC_ALL=C. Otherwise +# <https://rt.cpan.org/Public/Bug/Display.html?id=56705> appears. +LC_ALL=C make test + +%files +%doc Changes README README.dev TODO +%{perl_vendorarch}/DBD/ +%{perl_vendorarch}/auto/DBD/ +%{perl_vendorarch}/Bundle/DBD/Pg.pm +%{_mandir}/man3/*.3* + + +%changelog +* Wed Mar 14 2012 Marcela Mašláňová <mmaslano@redhat.com> 2.19.2-1 +- bump to 2.19.2 + +* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.18.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.18.0-3 +- Perl mass rebuild + +* Mon Apr 4 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.18.0-2 +- add requirement for test file + +* Tue Mar 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.18.0-1 +- update to 2.18.0 + +* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Nov 24 2010 Marcela Mašláňová <mmaslano@redhat.com> 2.17.2-1 +- update by Fedora::App::MaintainerTools 0.006 +- updating to latest GA CPAN version (2.17.2) + +* Thu Sep 30 2010 Petr Sabata <psabata@redhat.com> - 2.17.1-3 +- Fixing BuildRequires (perl-version, Test::More) +- Re-enabling tests +- Resolves: rhbz#633108 + +* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.17.1-2 +- Mass rebuild with perl-5.12.0 + +* Tue Apr 27 2010 Petr Pisar <ppisar@redhat.com> - 2.17.1-1 +- upstream released 2.17.1 +- GPL+ license corrected to GPLv2+ +- enable and run %%check in C locale + +* Wed Jan 27 2010 Stepan Kasal <skasal@redhat.com> - 2.15.1-3 +- drop patch that was upstreamed long ago (<=2.8.7) + +* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 2.15.1-2 +- rebuild against perl 5.10.1 + +* Thu Sep 24 2009 Stepan Kasal <skasal@redhat.com> - 2.15.1-1 +- new upstream version +- add versioned provide (#525502) + +* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.13.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jun 10 2009 Stepan Kasal <skasal@redhat.com> - 2.13.1-2 +- rebuild against perl-DBI-1.609 + +* Mon May 4 2009 Stepan Kasal <skasal@redhat.com> - 2.13.1-1 +- new upstream release, also fixes #498899 + +* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Dec 5 2008 Stepan Kasal <skasal@redhat.com> - 2.11.6-2 +- fix the source URL + +* Fri Dec 5 2008 Marcela Mašláňová <mmaslano@redhat.com> - 2.11.6-1 +- update + +* Fri Oct 31 2008 Marcela Maslanova <mmaslano@redhat.com> - 2.11.2-1 +- update to 2.11.2 + +* Mon Aug 29 2008 Marcela Maslanova <mmaslano@redhat.com> - 2.10.0-1 +- update to 2.10.0 + +* Mon Aug 25 2008 Marcela Maslanova <mmaslano@redhat.com> - 2.9.2-1 +- update to 2.9.2 + +* Mon Jul 28 2008 Marcela Maslanova <mmaslano@redhat.com> - 2.8.7-1 +- new version has Pg.pm twice in two locations +- update + +* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.49-9 +- Rebuild for perl 5.10 (again) + +* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.49-8 +- Autorebuild for GCC 4.3 + +* Tue Jan 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.49-7 +- rebuild for new perl + +* Wed Oct 24 2007 Robin Norwood <rnorwood@redhat.com> - 1.49-6 +- Apply changes from package review. +- Resolves: bz#226252 + +* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.49-5.1 +- add BR: perl(ExtUtils::MakeMaker) + +* Fri Aug 24 2007 Robin Norwood <rnorwood@redhat.com> - 1.49-5 +- Fix license tag +- Add %%doc +- Remove explicit Provides: perl(DBD::Pg) = %%{version} +- Other cleanups + +* Tue Jul 17 2007 Robin Norwood <rnorwood@redhat.com> - 1.49-4 +- Fix summary + +* Tue Dec 06 2006 Robin Norwood <rnorwood@redhat.com> - 1.49-3 +- rebuild for new version of postgres. + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.49-2 +- rebuild + +* Wed May 31 2006 Jason Vas Dias <jvdias@redhat.com> - 1.49-1 +- Upgrade to upstream version 1.49 + +* Wed Apr 12 2006 Jason Vas Dias <jvdias@redhat.com> - 1.48-1 +- Upgrade to upstream version 1.48 + +* Wed Mar 22 2006 Jason Vas Dias <jvdias@redhat.com> - 1.47-1 +- Upgrade to upstream version 1.47 + +* Wed Mar 08 2006 Jason Vas Dias <jvdias@redhat.com> - 1.45-1 +- Upgrade to upstream version 1.45 + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.43-2.2.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.43-2.2.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 1.43-2.2 +- rebuild for new perl-5.8.8 + +* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt for new gcc + +* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt for new gcj + +* Thu Nov 03 2005 Florian La Roche <laroche@redhat.com> +- make sure correct Provides: are generated for this module + +* Tue Jun 28 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.43-1 +- Update to 1.43 (corrects #156840). + +* Thu May 19 2005 Warren Togami <wtogami@redhat.com> - 1.41-2 +- Disable gcc optimization to workaround broken placeholders (#156840) + +* Wed Apr 13 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.41-1 +- Update to 1.41. +- Updated the requirements versions. +- Specfile cleanup. (#154203) + +* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 1.40-2 +- rebuild for new libpq soname + +* Thu Mar 31 2005 Warren Togami <wtogami@redhat.com> 1.40-1 +- 1.40 + +* Tue Oct 12 2004 Chip Turner <cturner@redhat.com> 1.32-1 +- bugzilla: 127755, update to 1.32 + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1.31-2 +- rebuild + +* Thu Dec 11 2003 Chip Turner <cturner@redhat.com> 1.31-1 +- update to 1.31 + +* Mon Jul 7 2003 Chip Turner <cturner@redhat.com> 1.22-1 +- move to upstream 1.22 + +* Mon Jan 27 2003 Chip Turner <cturner@redhat.com> +- version bump and rebuild + +* Mon Jan 13 2003 Chip Turner <cturner@redhat.com> +- update to 1.21 + +* Sat Dec 14 2002 Chip Turner <cturner@redhat.com> +- don't use internal rpm dep generator + +* Wed Nov 20 2002 Chip Turner <cturner@redhat.com> +- rebuild + +* Wed Aug 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-5 +- Rebuild + +* Tue Jun 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-4 +- Rebuild, to fix #66304 + +* Wed Jun 5 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-3 +- Integrate with newer perl + +* Thu May 23 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Tue May 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-1 +- 1.13 + +* Fri Feb 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-8 +- Rebuild + +* Thu Feb 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-7 +- Rebuild + +* Thu Jan 31 2002 Tim Powers <timp@redhat.com> +- rebuild to solve more deps + +* Tue Jan 29 2002 Bill Nottingham <notting@redhat.com> 1.01-5 +- rebuild (dependencies) + +* Tue Jan 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-4 +- Rebuild + +* Wed Jan 09 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Tue Jan 8 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-2 +- Rebuild + +* Sun Jul 1 2001 Trond Eivind Glomsrød <teg@redhat.com> +- 1.01 bugfix release ("bytea" coredumped with values outside 0...127) +- Add perl-DBI and perl to BuildRequires (they were just in Requires: previously) + +* Wed May 30 2001 Trond Eivind Glomsrød <teg@redhat.com> +- 1.00 +- change group to Applications/Databases from Applications/CPAN + +* Tue May 1 2001 Trond Eivind Glomsrød <teg@redhat.com> +- 0.98, for postgresql-7.1 +- add doc files +- cleanups + +* Thu Nov 30 2000 Trond Eivind Glomsrød <teg@redhat.com> +- First cut diff --git a/postgresql92/postgresql-odbc.spec.diff b/postgresql92/postgresql-odbc.spec.diff new file mode 100644 index 0000000..30ad8f9 --- /dev/null +++ b/postgresql92/postgresql-odbc.spec.diff @@ -0,0 +1,28 @@ +--- postgresql-odbc.spec.nodsc 2012-06-05 09:30:02.138368463 +0200 ++++ postgresql-odbc.spec 2012-05-21 14:21:24.485319290 +0200 +@@ -1,4 +1,6 @@ +-Name: postgresql-odbc ++%{?scl:%scl_package postgresql-odbc} ++ ++Name: %{?scl_prefix}postgresql-odbc + Summary: PostgreSQL ODBC driver + Version: 09.01.0100 + Release: 1%{?dist} +@@ -21,7 +23,7 @@ Source1: acinclude.m4 + + Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root + BuildRequires: unixODBC-devel +-BuildRequires: libtool automake autoconf postgresql-devel ++BuildRequires: libtool automake autoconf %{?scl_prefix}postgresql-devel + BuildRequires: openssl-devel krb5-devel pam-devel zlib-devel readline-devel + + # This spec file and ancillary files are licensed in accordance with +@@ -48,7 +50,7 @@ autoheader + + %build + +-%configure --with-unixodbc --disable-dependency-tracking ++%configure --with-unixodbc --disable-dependency-tracking --with-libpq=%{_bindir}/pg_config + + make + diff --git a/postgresql92/postgresql-odbc.spec.nodsc b/postgresql92/postgresql-odbc.spec.nodsc new file mode 100644 index 0000000..cc2c549 --- /dev/null +++ b/postgresql92/postgresql-odbc.spec.nodsc @@ -0,0 +1,208 @@ +Name: postgresql-odbc +Summary: PostgreSQL ODBC driver +Version: 09.01.0100 +Release: 1%{?dist} +License: LGPLv2+ +Group: Applications/Databases +URL: http://psqlodbc.projects.postgresql.org/ + +Source0: http://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-%{version}.tar.gz + +# CAUTION: acinclude.m4 has to be kept in sync with package's aclocal.m4. +# This is a kluge that ought to go away, but upstream currently isn't +# shipping their custom macros anywhere except in aclocal.m4. (The macros +# actually come from the Postgres source tree, but we haven't got that +# available while building this RPM.) To generate: in psqlodbc source tree, +# aclocal -I . -I $PGSRC/config +# then strip aclocal.m4 down to just the PGAC macros. +# BUT: as of 09.00.0200, configure.ac hasn't been updated to use latest +# PG macros, so keep using the previous version of acinclude.m4. +Source1: acinclude.m4 + +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: unixODBC-devel +BuildRequires: libtool automake autoconf postgresql-devel +BuildRequires: openssl-devel krb5-devel pam-devel zlib-devel readline-devel + +# This spec file and ancillary files are licensed in accordance with +# the psqlodbc license. + +%description +This package includes the driver needed for applications to access a +PostgreSQL system via ODBC (Open Database Connectivity). + +%prep +%setup -q -n psqlodbc-%{version} + +# Some missing macros. Courtesy Owen Taylor <otaylor@redhat.com>. +cp -p %{SOURCE1} . + +# Use build system's libtool.m4, not the one in the package. +rm -f libtool.m4 + +libtoolize --force --copy +aclocal -I . +automake --add-missing --copy +autoconf +autoheader + +%build + +%configure --with-unixodbc --disable-dependency-tracking + +make + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install + +# Provide the old library name "psqlodbc.so" as a symlink, +# and remove the rather useless .la file +pushd ${RPM_BUILD_ROOT}%{_libdir} + ln -s psqlodbcw.so psqlodbc.so + rm psqlodbcw.la +popd + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%attr(755,root,root) %{_libdir}/psqlodbcw.so +%{_libdir}/psqlodbc.so +%doc license.txt readme.txt docs/* + +%changelog +* Tue Jan 10 2012 Tom Lane <tgl@redhat.com> 09.01.0100-1 +- Update to version 09.01.0100 + +* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 09.00.0200-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 29 2010 Tom Lane <tgl@redhat.com> 09.00.0200-1 +- Update to version 09.00.0200 + +* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 08.04.0200-2 +- Correct Source0: tag and comment to reflect how to get the tarball + +* Wed Dec 30 2009 Tom Lane <tgl@redhat.com> 08.04.0200-1 +- Update to version 08.04.0200 + +* Fri Aug 28 2009 Tom Lane <tgl@redhat.com> 08.04.0100-2 +- Rebuild with new openssl + +* Tue Aug 18 2009 Tom Lane <tgl@redhat.com> 08.04.0100-1 +- Update to version 08.04.0100 + +* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 08.03.0200-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 08.03.0200-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 Tom Lane <tgl@redhat.com> 08.03.0200-2 +- Rebuild for unixODBC 2.2.14. + +* Tue Aug 5 2008 Tom Lane <tgl@redhat.com> 08.03.0200-1 +- Update to version 08.03.0200 + +* Tue Feb 12 2008 Tom Lane <tgl@redhat.com> 08.03.0100-1 +- Update to version 08.03.0100 +- Since it looks like upstream has decided to stick with psqlodbcw.so + permanently, allow the library to have that name. But continue to + provide psqlodbc.so as a symlink. + +* Fri Nov 2 2007 Tom Lane <tgl@redhat.com> 08.02.0500-1 +- Update to version 08.02.0500 + +* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 08.02.0200-2 +- Update License tag to match code. + +* Wed Apr 25 2007 Tom Lane <tgl@redhat.com> 08.02.0200-1 +- Update to version 08.02.0200 + +* Mon Dec 11 2006 Tom Lane <tgl@redhat.com> 08.01.0200-4 +- Rebuild for new Postgres libraries + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 08.01.0200-3.1 +- rebuild + +* Sat Jun 10 2006 Tom Lane <tgl@redhat.com> 08.01.0200-3 +- Fix BuildRequires: for mock build environment + +* Wed Mar 22 2006 Tom Lane <tgl@redhat.com> 08.01.0200-2 +- Change library name back to psqlodbc.so, because it appears that upstream + will revert to that name in next release; no point in thrashing the name. +- Include documentation files unaccountably omitted before (bug #184158) + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 08.01.0200-1.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 08.01.0200-1.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Feb 3 2006 Tom Lane <tgl@redhat.com> 08.01.0200-1 +- Update to version 08.01.0200. +- Upstream now calls the library psqlodbcw.so ... add a symlink to avoid + breaking existing odbc configuration files. + +* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 08.01.0102-1 +- Update to version 08.01.0102. +- Add buildrequires postgresql-devel (bz #174505) + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Mon Nov 7 2005 Tom Lane <tgl@redhat.com> 08.01.0100-1 +- Update to version 08.01.0100. + +* Wed Mar 2 2005 Tom Lane <tgl@redhat.com> 08.00.0100-1 +- Update to version 08.00.0100. + +* Fri Nov 12 2004 Tom Lane <tgl@redhat.com> 7.3-9 +- back-port 64-bit fixes from current upstream (bug #139004) + +* Tue Sep 21 2004 Tom Lane <tgl@redhat.com> 7.3-8 +- rebuilt + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> +- Correct License: annotation. + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Fri Nov 21 2003 David Jee <djee@redhat.com> 7.3-5 +- rebuild + +* Wed Nov 05 2003 David Jee <djee@redhat.com> 7.3-4 +- import new community version 07.03.0200 + +* Mon Sep 15 2003 Andrew Overholt <overholt@redhat.com> 7.3-3 +- autotools fixes (courtesy Alex Oliva <aoliva@redhat.com> and + Owen Taylor <otaylor@redhat.com>) + +* Tue Jul 08 2003 Andrew Overholt <overholt@redhat.com> 7.3-3 +- allow use with unixODBC (courtesy Troels Arvin) [Bug #97998] + +* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Mon Jun 02 2003 Andrew Overholt <overholt@redhat.com> 7.3-1 +- sync to new community version (07.03.0100 => v7.3, r1) + +* Thu Jan 23 2003 Tim Powers <timp@redhat.com> 1-2 +- rebuild + +* Tue Jan 14 2003 Andrew Overholt <overholt@redhat.com> +- 1-1 +- initial build (just took old package sections) diff --git a/postgresql92/postgresql.spec.diff b/postgresql92/postgresql.spec.diff new file mode 100644 index 0000000..af7ab90 --- /dev/null +++ b/postgresql92/postgresql.spec.diff @@ -0,0 +1,314 @@ +--- postgresql.spec.nodsc 2012-03-29 11:25:13.635351493 +0200 ++++ postgresql.spec 2012-08-20 14:30:19.263974141 +0200 +@@ -29,6 +29,8 @@ + # The base package, the libs package, the devel package, and the server package + # always get built. + ++%{?scl:%scl_package postgresql} ++ + %global beta 0 + %{?beta:%global __os_install_post /usr/lib/rpm/brp-compress} + +@@ -46,11 +48,12 @@ + %{!?pam:%global pam 1} + %{!?sdt:%global sdt 1} + %{!?selinux:%global selinux 1} +-%{!?runselftest:%global runselftest 1} ++%{!?runselftest:%global runselftest 0} ++%{!?_unitdir:%global _unitdir /lib/systemd/system} + + + Summary: PostgreSQL client programs +-Name: postgresql ++Name: %{?scl_prefix}postgresql + %global majorversion 9.1 + Version: 9.1.3 + Release: 3%{?dist} +@@ -61,9 +64,6 @@ License: PostgreSQL + Group: Applications/Databases + Url: http://www.postgresql.org/ + +-# This number must be NVR-greater than any PG version shipped in F15: +-%global first_systemd_version 0:9.0.99 +- + # This SRPM includes a copy of the previous major release, which is needed for + # in-place upgrade of an old database. In most cases it will not be critical + # that this be kept up with the latest minor release of the previous series. +@@ -95,7 +95,6 @@ Patch3: postgresql-perl-rpath.patch + BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk + BuildRequires: perl(ExtUtils::Embed), perl-devel + BuildRequires: readline-devel zlib-devel +-BuildRequires: systemd-units + + %if %plpython + BuildRequires: python-devel +@@ -144,6 +143,8 @@ BuildRequires: libselinux-devel + # main package requires -libs subpackage + Requires: %{name}-libs%{?_isa} = %{version}-%{release} + ++%{?scl:Requires:%scl_runtime} ++ + Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root + + %description +@@ -180,15 +181,13 @@ Requires(pre): /usr/sbin/useradd + # for /sbin/ldconfig + Requires(post): glibc + Requires(postun): glibc +-# pre/post stuff needs systemd too +-Requires(post): systemd-units +-Requires(preun): systemd-units +-Requires(postun): systemd-units + # This is actually needed for the %%triggerun script but Requires(triggerun) + # is not valid. We can use post because this particular %%triggerun script + # should fire just after this package is installed. +-Requires(post): systemd-sysv + Requires(post): chkconfig ++# This is for /sbin/service ++Requires(preun): initscripts ++Requires(postun): initscripts + + %description server + PostgreSQL is an advanced Object-Relational database management system (DBMS). +@@ -298,7 +297,7 @@ benchmarks. + %endif + + %prep +-%setup -q ++%setup -q %{?scl:-n %{pkg_name}-%{version}} + %patch1 -p1 + %patch2 -p1 + %patch3 -p1 +@@ -349,7 +348,7 @@ CFLAGS="$CFLAGS -DLINUX_OOM_ADJ=0" + %endif + %if %pltcl + --with-tcl \ +- --with-tclconfig=%{_libdir} \ ++ --with-tclconfig=%{?scl:%_root_libdir}%{!?scl:%_libdir} \ + %endif + %if %plpython + --with-python \ +@@ -383,8 +382,8 @@ CFLAGS="$CFLAGS -DLINUX_OOM_ADJ=0" + %if %selinux + --with-selinux \ + %endif +- --with-system-tzdata=/usr/share/zoneinfo \ +- --datadir=/usr/share/pgsql ++ --with-system-tzdata=%{?scl:%_root_datadir}%{!?scl:%_datadir}/zoneinfo \ ++ --datadir=%{_datadir}/pgsql + + make %{?_smp_mflags} world + +@@ -424,7 +423,7 @@ rm -f src/tutorial/GNUmakefile + ./configure --build=%{_build} --host=%{_host} \ + --prefix=%{_libdir}/pgsql/postgresql-%{prevmajorversion} \ + --disable-rpath \ +- --with-system-tzdata=/usr/share/zoneinfo ++ --with-system-tzdata=%{?scl:%_root_datadir}%{!?scl:%_datadir}/zoneinfo + + make %{?_smp_mflags} all + +@@ -440,12 +439,12 @@ make DESTDIR=$RPM_BUILD_ROOT install-wor + # we only apply this to known Red Hat multilib arches, per bug #177564 + case `uname -i` in + i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 ) +- mv $RPM_BUILD_ROOT/usr/include/pg_config.h $RPM_BUILD_ROOT/usr/include/pg_config_`uname -i`.h +- install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/usr/include/ +- mv $RPM_BUILD_ROOT/usr/include/pgsql/server/pg_config.h $RPM_BUILD_ROOT/usr/include/pgsql/server/pg_config_`uname -i`.h +- install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/usr/include/pgsql/server/ +- mv $RPM_BUILD_ROOT/usr/include/ecpg_config.h $RPM_BUILD_ROOT/usr/include/ecpg_config_`uname -i`.h +- install -m 644 %{SOURCE7} $RPM_BUILD_ROOT/usr/include/ ++ mv $RPM_BUILD_ROOT%{_includedir}/pg_config.h $RPM_BUILD_ROOT%{_includedir}/pg_config_`uname -i`.h ++ install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_includedir}/ ++ mv $RPM_BUILD_ROOT%{_includedir}/pgsql/server/pg_config.h $RPM_BUILD_ROOT%{_includedir}/pgsql/server/pg_config_`uname -i`.h ++ install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_includedir}/pgsql/server/ ++ mv $RPM_BUILD_ROOT%{_includedir}/ecpg_config.h $RPM_BUILD_ROOT%{_includedir}/ecpg_config_`uname -i`.h ++ install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_includedir}/ + ;; + *) + ;; +@@ -459,8 +458,11 @@ sed -e 's|^PGVERSION=.*$|PGVERSION=%{ver + -e 's|^PGENGINE=.*$|PGENGINE=%{_bindir}|' \ + -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ + -e 's|^PREVPGENGINE=.*$|PREVPGENGINE=%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin|' \ ++ -e 's|SERVICE_NAME=postgresql|SERVICE_NAME=%{?scl_prefix}postgresql|' \ ++ -e 's|/var/lib|%{?_scl_root}/var/lib|' \ + <%{SOURCE9} >postgresql-setup + touch -r %{SOURCE9} postgresql-setup ++ + install -m 755 postgresql-setup $RPM_BUILD_ROOT%{_bindir}/postgresql-setup + + # prep the startup check script, including insertion of some values it needs +@@ -472,24 +474,44 @@ touch -r %{SOURCE4} postgresql-check-db- + install -m 755 postgresql-check-db-dir $RPM_BUILD_ROOT%{_bindir}/postgresql-check-db-dir + + install -d $RPM_BUILD_ROOT%{_unitdir} +-install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/postgresql.service ++install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/%{?scl_prefix}postgresql.service ++ ++install -d $RPM_BUILD_ROOT%{_libdir}/pgsql ++cat > sclenv << EOF ++# scl-related environment variables ++# LD_LIBRARY_PATH=%_libdir:\$LD_LIBRARY_PATH ++LD_LIBRARY_PATH=%_libdir ++EOF ++install -m 644 sclenv $RPM_BUILD_ROOT%{_libdir}/pgsql/sclenv ++ ++install -d $RPM_BUILD_ROOT%{_prefix}/var/run ++install -d $RPM_BUILD_ROOT%{_prefix}/var/lock/subsys + + install -d $RPM_BUILD_ROOT/etc/rc.d/init.d +-install -m 755 %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql ++sed -e 's|/# Provides: postgresql|# Provides: %{?scl_prefix}postgresql|g' \ ++ -e 's|/etc/sysconfig/pgsql|%{_sysconfdir}/sysconfig/pgsql|g' \ ++ -e 's|/usr/bin|%{_bindir}|g' \ ++ -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \ ++ -e 's|^PGENGINE=.*$|PGENGINE=%{_bindir}|' \ ++ -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ ++ -e 's|^PREVPGENGINE=.*$|PREVPGENGINE=%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin|' \ ++ -e 's|SERVICE_NAME=postgresql|SERVICE_NAME=%{?scl_prefix}postgresql|' \ ++ <%{SOURCE11} >postgresql.init ++install -m 755 postgresql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/%{?scl_prefix}postgresql + + %if %pam + install -d $RPM_BUILD_ROOT/etc/pam.d +-install -m 644 %{SOURCE14} $RPM_BUILD_ROOT/etc/pam.d/postgresql ++install -m 644 %{SOURCE14} $RPM_BUILD_ROOT/etc/pam.d/%{?scl_prefix}postgresql + %endif + + # PGDATA needs removal of group and world permissions due to pg_pwd hole. +-install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/data ++install -d -m 700 $RPM_BUILD_ROOT%{?_scl_root}/var/lib/pgsql/data + + # backups of data go here... +-install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/backups ++install -d -m 700 $RPM_BUILD_ROOT%{?_scl_root}/var/lib/pgsql/backups + + # postgres' .bash_profile +-install -m 644 %{SOURCE15} $RPM_BUILD_ROOT/var/lib/pgsql/.bash_profile ++install -m 644 %{SOURCE15} $RPM_BUILD_ROOT%{?_scl_root}/var/lib/pgsql/.bash_profile + + + %if %upgrade +@@ -623,40 +645,57 @@ cat psql-%{majorversion}.lang >>main.lst + + %pre server + /usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || : +-/usr/sbin/useradd -M -N -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \ ++/usr/sbin/useradd -M -N -g postgres -o -r -d %{?_scl_root}/var/lib/pgsql -s /bin/bash \ + -c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || : + + %post server +-/sbin/ldconfig +-if [ $1 -eq 1 ] ; then +- # Initial installation +- /bin/systemctl daemon-reload >/dev/null 2>&1 || : ++if [ -e /bin/systemctl ] ; then ++ # We don't want old init script if we have systemd ++ rm -f /etc/rc.d/init.d/%{?scl_prefix}postgresql ++ ++ if [ $1 -eq 1 ] ; then ++ # Initial installation ++ /bin/systemctl daemon-reload >/dev/null 2>&1 || : ++ fi ++ ++ # Run this when upgrading from SysV initscript to native systemd unit ++ %triggerun server -- postgresql-server < %{first_systemd_version} ++ # Save the current service runlevel info ++ # User must manually run systemd-sysv-convert --apply postgresql ++ # to migrate them to systemd targets ++ /usr/bin/systemd-sysv-convert --save postgresql >/dev/null 2>&1 || : ++ ++ # Run these because the SysV package being removed won't do them ++ /sbin/chkconfig --del postgresql >/dev/null 2>&1 || : ++ /bin/systemctl try-restart %{?scl_prefix}postgresql.service >/dev/null 2>&1 || : ++else ++ # We don't want new systemd unit file if we don't have systemd ++ rm -f %{_unitdir}/%{?scl_prefix}postgresql.service ++ /sbin/chkconfig --add %{?scl_prefix}postgresql ++ /sbin/ldconfig + fi + +-# Run this when upgrading from SysV initscript to native systemd unit +-%triggerun server -- postgresql-server < %{first_systemd_version} +-# Save the current service runlevel info +-# User must manually run systemd-sysv-convert --apply postgresql +-# to migrate them to systemd targets +-/usr/bin/systemd-sysv-convert --save postgresql >/dev/null 2>&1 || : +- +-# Run these because the SysV package being removed won't do them +-/sbin/chkconfig --del postgresql >/dev/null 2>&1 || : +-/bin/systemctl try-restart postgresql.service >/dev/null 2>&1 || : +- + %preun server + if [ $1 -eq 0 ] ; then + # Package removal, not upgrade +- /bin/systemctl --no-reload disable postgresql.service >/dev/null 2>&1 || : +- /bin/systemctl stop postgresql.service >/dev/null 2>&1 || : ++ if [ -e /bin/systemctl ] ; then ++ /bin/systemctl --no-reload disable %{?scl_prefix}postgresql.service >/dev/null 2>&1 || : ++ /bin/systemctl stop %{?scl_prefix}postgresql.service >/dev/null 2>&1 || : ++ else ++ /sbin/service %{?scl_prefix}postgresql stop >/dev/null 2>&1 ++ /sbin/chkconfig --del %{?scl_prefix}postgresql ++ fi + fi + + %postun server + /sbin/ldconfig +-/bin/systemctl daemon-reload >/dev/null 2>&1 || : + if [ $1 -ge 1 ] ; then + # Package upgrade, not uninstall +- /bin/systemctl try-restart postgresql.service >/dev/null 2>&1 || : ++ if [ -e /bin/systemctl ] ; then ++ /bin/systemctl try-restart %{?scl_prefix}postgresql.service >/dev/null 2>&1 || : ++ else ++ /sbin/service %{?scl_prefix}postgresql condrestart >/dev/null 2>&1 || : ++ fi + fi + + %if %plperl +@@ -833,10 +872,11 @@ rm -rf $RPM_BUILD_ROOT + + %files server -f server.lst + %defattr(-,root,root) +-%{_unitdir}/postgresql.service +-/etc/rc.d/init.d/postgresql ++%{_libdir}/pgsql/sclenv ++%{_unitdir}/%{?scl_prefix}postgresql.service ++/etc/rc.d/init.d/%{?scl_prefix}postgresql + %if %pam +-%config(noreplace) /etc/pam.d/postgresql ++%config(noreplace) /etc/pam.d/%{?scl_prefix}postgresql + %endif + %{_bindir}/initdb + %{_bindir}/pg_basebackup +@@ -867,10 +907,10 @@ rm -rf $RPM_BUILD_ROOT + %dir %{_datadir}/pgsql/contrib + %dir %{_datadir}/pgsql/extension + %{_datadir}/pgsql/extension/plpgsql* +-%attr(700,postgres,postgres) %dir /var/lib/pgsql +-%attr(700,postgres,postgres) %dir /var/lib/pgsql/data +-%attr(700,postgres,postgres) %dir /var/lib/pgsql/backups +-%attr(644,postgres,postgres) %config(noreplace) /var/lib/pgsql/.bash_profile ++%attr(700,postgres,postgres) %dir %{?_scl_root}/var/lib/pgsql ++%attr(700,postgres,postgres) %dir %{?_scl_root}/var/lib/pgsql/data ++%attr(700,postgres,postgres) %dir %{?_scl_root}/var/lib/pgsql/backups ++%attr(644,postgres,postgres) %config(noreplace) %{?_scl_root}/var/lib/pgsql/.bash_profile + %{_libdir}/pgsql/libpqwalreceiver.so + %{_libdir}/pgsql/*_and_*.so + %{_libdir}/pgsql/euc2004_sjis2004.so +@@ -878,10 +918,12 @@ rm -rf $RPM_BUILD_ROOT + %{_datadir}/pgsql/information_schema.sql + %{_datadir}/pgsql/snowball_create.sql + %{_datadir}/pgsql/sql_features.txt ++%dir %{_prefix}/var/run ++%dir %{_prefix}/var/lock/subsys + + %files devel -f devel.lst + %defattr(-,root,root) +-/usr/include/* ++%{_includedir}/* + %{_bindir}/ecpg + %{_libdir}/libpq.so + %{_libdir}/libecpg.so diff --git a/postgresql92/postgresql.spec.nodsc b/postgresql92/postgresql.spec.nodsc new file mode 100644 index 0000000..3bebb5b --- /dev/null +++ b/postgresql92/postgresql.spec.nodsc @@ -0,0 +1,1544 @@ +# This is the PostgreSQL Global Development Group Official RPMset spec file, +# or a derivative thereof. +# Copyright 2003-2009 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org> +# and others listed. + +# Major Contributors: +# --------------- +# Lamar Owen +# Trond Eivind Glomsrd <teg@redhat.com> +# Thomas Lockhart +# Reinhard Max +# Karl DeBisschop +# Peter Eisentraut +# Joe Conway +# Andrew Overholt +# David Jee +# Kaj J. Niemi +# Sander Steffann +# Tom Lane +# and others in the Changelog.... + +# This spec file and ancillary files are licensed in accordance with +# The PostgreSQL license. + +# In this file you can find the default build package list macros. +# These can be overridden by defining on the rpm command line: +# rpm --define 'packagename 1' .... to force the package to build. +# rpm --define 'packagename 0' .... to force the package NOT to build. +# The base package, the libs package, the devel package, and the server package +# always get built. + +%global beta 0 +%{?beta:%global __os_install_post /usr/lib/rpm/brp-compress} + +%{!?test:%global test 1} +%{!?upgrade:%global upgrade 1} +%{!?plpython:%global plpython 1} +%{!?pltcl:%global pltcl 1} +%{!?plperl:%global plperl 1} +%{!?ssl:%global ssl 1} +%{!?kerberos:%global kerberos 1} +%{!?ldap:%global ldap 1} +%{!?nls:%global nls 1} +%{!?uuid:%global uuid 1} +%{!?xml:%global xml 1} +%{!?pam:%global pam 1} +%{!?sdt:%global sdt 1} +%{!?selinux:%global selinux 1} +%{!?runselftest:%global runselftest 1} + + +Summary: PostgreSQL client programs +Name: postgresql +%global majorversion 9.1 +Version: 9.1.3 +Release: 3%{?dist} + +# The PostgreSQL license is very similar to other MIT licenses, but the OSI +# recognizes it as an independent license, so we do as well. +License: PostgreSQL +Group: Applications/Databases +Url: http://www.postgresql.org/ + +# This number must be NVR-greater than any PG version shipped in F15: +%global first_systemd_version 0:9.0.99 + +# This SRPM includes a copy of the previous major release, which is needed for +# in-place upgrade of an old database. In most cases it will not be critical +# that this be kept up with the latest minor release of the previous series. +%global prevversion 9.0.7 +%global prevmajorversion 9.0 + +Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2 +# The PDF file is generated by generate-pdf.sh, which see for comments +Source1: postgresql-%{version}-US.pdf +# generate-pdf.sh is not used during RPM build, but include for documentation +Source2: generate-pdf.sh +Source3: ftp://ftp.postgresql.org/pub/source/v%{prevversion}/postgresql-%{prevversion}.tar.bz2 +Source4: postgresql-check-db-dir +Source5: Makefile.regress +Source6: pg_config.h +Source7: ecpg_config.h +Source8: README.rpm-dist +Source9: postgresql-setup +Source10: postgresql.service +Source11: postgresql.init +Source14: postgresql.pam +Source15: postgresql-bashprofile + +# Comments for these patches are in the patch files. +Patch1: rpm-pgsql.patch +Patch2: postgresql-logging.patch +Patch3: postgresql-perl-rpath.patch + +BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk +BuildRequires: perl(ExtUtils::Embed), perl-devel +BuildRequires: readline-devel zlib-devel +BuildRequires: systemd-units + +%if %plpython +BuildRequires: python-devel +%endif + +%if %pltcl +BuildRequires: tcl-devel +%endif + +%if %ssl +BuildRequires: openssl-devel +%endif + +%if %kerberos +BuildRequires: krb5-devel +%endif + +%if %ldap +BuildRequires: openldap-devel +%endif + +%if %nls +BuildRequires: gettext >= 0.10.35 +%endif + +%if %uuid +BuildRequires: uuid-devel +%endif + +%if %xml +BuildRequires: libxml2-devel libxslt-devel +%endif + +%if %pam +BuildRequires: pam-devel +%endif + +%if %sdt +BuildRequires: systemtap-sdt-devel +%endif + +%if %selinux +BuildRequires: libselinux-devel +%endif + +# main package requires -libs subpackage +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root + +%description +PostgreSQL is an advanced Object-Relational database management system (DBMS). +The base postgresql package contains the client programs that you'll need to +access a PostgreSQL DBMS server, as well as HTML documentation for the whole +system. These client programs can be located on the same machine as the +PostgreSQL server, or on a remote machine that accesses a PostgreSQL server +over a network connection. The PostgreSQL server can be found in the +postgresql-server sub-package. + + +%package libs +Summary: The shared libraries required for any PostgreSQL clients +Group: Applications/Databases +Provides: libpq.so = %{version}-%{release} +# for /sbin/ldconfig +Requires(post): glibc +Requires(postun): glibc + +%description libs +The postgresql-libs package provides the essential shared libraries for any +PostgreSQL client program or interface. You will need to install this package +to use any other PostgreSQL package or any clients that need to connect to a +PostgreSQL server. + + +%package server +Summary: The programs needed to create and run a PostgreSQL server +Group: Applications/Databases +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires(pre): /usr/sbin/useradd +# for /sbin/ldconfig +Requires(post): glibc +Requires(postun): glibc +# pre/post stuff needs systemd too +Requires(post): systemd-units +Requires(preun): systemd-units +Requires(postun): systemd-units +# This is actually needed for the %%triggerun script but Requires(triggerun) +# is not valid. We can use post because this particular %%triggerun script +# should fire just after this package is installed. +Requires(post): systemd-sysv +Requires(post): chkconfig + +%description server +PostgreSQL is an advanced Object-Relational database management system (DBMS). +The postgresql-server package contains the programs needed to create +and run a PostgreSQL server, which will in turn allow you to create +and maintain PostgreSQL databases. + + +%package docs +Summary: Extra documentation for PostgreSQL +Group: Applications/Databases +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description docs +The postgresql-docs package contains some additional documentation for +PostgreSQL. Currently, this includes the main documentation in PDF format +and source files for the PostgreSQL tutorial. + + +%package contrib +Summary: Extension modules distributed with PostgreSQL +Group: Applications/Databases +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description contrib +The postgresql-contrib package contains various extension modules that are +included in the PostgreSQL distribution. + + +%package devel +Summary: PostgreSQL development header files and libraries +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description devel +The postgresql-devel package contains the header files and libraries +needed to compile C or C++ applications which will directly interact +with a PostgreSQL database management server. It also contains the ecpg +Embedded C Postgres preprocessor. You need to install this package if you want +to develop applications which will interact with a PostgreSQL server. + + +%if %upgrade +%package upgrade +Summary: Support for upgrading from the previous major release of PostgreSQL +Group: Applications/Databases +Requires: %{name}-server%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description upgrade +The postgresql-upgrade package contains the pg_upgrade utility and supporting +files needed for upgrading a PostgreSQL database from the previous major +version of PostgreSQL. +%endif + + +%if %plperl +%package plperl +Summary: The Perl procedural language for PostgreSQL +Group: Applications/Databases +Requires: %{name}-server%{?_isa} = %{version}-%{release} +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description plperl +The postgresql-plperl package contains the PL/Perl procedural language, +which is an extension to the PostgreSQL database server. +Install this if you want to write database functions in Perl. +%endif + +%if %plpython +%package plpython +Summary: The Python procedural language for PostgreSQL +Group: Applications/Databases +Requires: %{name}-server%{?_isa} = %{version}-%{release} + +%description plpython +The postgresql-plpython package contains the PL/Python procedural language, +which is an extension to the PostgreSQL database server. +Install this if you want to write database functions in Python. +%endif + +%if %pltcl +%package pltcl +Summary: The Tcl procedural language for PostgreSQL +Group: Applications/Databases +Requires: %{name}-server%{?_isa} = %{version}-%{release} + +%description pltcl +The postgresql-plptcl package contains the PL/Tcl procedural language, +which is an extension to the PostgreSQL database server. +Install this if you want to write database functions in Tcl. +%endif + +%if %test +%package test +Summary: The test suite distributed with PostgreSQL +Group: Applications/Databases +Requires: %{name}-server%{?_isa} = %{version}-%{release} +Requires: %{name}-devel%{?_isa} = %{version}-%{release} + +%description test +The postgresql-test package contains files needed for various tests for the +PostgreSQL database management system, including regression tests and +benchmarks. +%endif + +%prep +%setup -q +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 + +# We used to run autoconf here, but there's no longer any real need to, +# since Postgres ships with a reasonably modern configure script. + +cp -p %{SOURCE1} . + +%if %upgrade +tar xfj %{SOURCE3} +%endif + +# remove .gitignore files to ensure none get into the RPMs (bug #642210) +find . -type f -name .gitignore | xargs rm + +%build + +# fail quickly and obviously if user tries to build as root +%if %runselftest + if [ x"`id -u`" = x0 ]; then + echo "postgresql's regression tests fail if run as root." + echo "If you really need to build the RPM as root, use" + echo "--define='runselftest 0' to skip the regression tests." + exit 1 + fi +%endif + +CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS + +# Strip out -ffast-math from CFLAGS.... +CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100` +# Add LINUX_OOM_ADJ=0 to ensure child processes reset postmaster's oom_adj +CFLAGS="$CFLAGS -DLINUX_OOM_ADJ=0" +# let's try removing this kluge, it may just be a workaround for bz#520916 +# # use -O1 on sparc64 and alpha +# %%ifarch sparc64 alpha +# CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O1|g" ` +# %%endif + +%configure --disable-rpath \ +%if %beta + --enable-debug \ + --enable-cassert \ +%endif +%if %plperl + --with-perl \ +%endif +%if %pltcl + --with-tcl \ + --with-tclconfig=%{_libdir} \ +%endif +%if %plpython + --with-python \ +%endif +%if %ldap + --with-ldap \ +%endif +%if %ssl + --with-openssl \ +%endif +%if %pam + --with-pam \ +%endif +%if %kerberos + --with-krb5 \ + --with-gssapi \ +%endif +%if %uuid + --with-ossp-uuid \ +%endif +%if %xml + --with-libxml \ + --with-libxslt \ +%endif +%if %nls + --enable-nls \ +%endif +%if %sdt + --enable-dtrace \ +%endif +%if %selinux + --with-selinux \ +%endif + --with-system-tzdata=/usr/share/zoneinfo \ + --datadir=/usr/share/pgsql + +make %{?_smp_mflags} world + +# Have to hack makefile to put correct path into tutorial scripts +sed "s|C=\`pwd\`;|C=%{_libdir}/pgsql/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile +make %{?_smp_mflags} -C src/tutorial NO_PGXS=1 all +rm -f src/tutorial/GNUmakefile + +%if %runselftest + pushd src/test/regress + make all + make MAX_CONNECTIONS=5 check + make clean + popd + pushd src/pl + make MAX_CONNECTIONS=5 check + popd + pushd contrib + make MAX_CONNECTIONS=5 check + popd +%endif + +# undo the "make clean" above +%if %test + pushd src/test/regress + make all + popd +%endif + +%if %upgrade + pushd postgresql-%{prevversion} + + # The upgrade build can be pretty stripped-down, but make sure that + # any options that affect on-disk file layout match the previous + # major release! Also, note we intentionally do not use %%configure + # here, because we *don't* want its ideas about installation paths. + ./configure --build=%{_build} --host=%{_host} \ + --prefix=%{_libdir}/pgsql/postgresql-%{prevmajorversion} \ + --disable-rpath \ + --with-system-tzdata=/usr/share/zoneinfo + + make %{?_smp_mflags} all + + popd +%endif + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install-world + +# multilib header hack; note pg_config.h is installed in two places! +# we only apply this to known Red Hat multilib arches, per bug #177564 +case `uname -i` in + i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 ) + mv $RPM_BUILD_ROOT/usr/include/pg_config.h $RPM_BUILD_ROOT/usr/include/pg_config_`uname -i`.h + install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/usr/include/ + mv $RPM_BUILD_ROOT/usr/include/pgsql/server/pg_config.h $RPM_BUILD_ROOT/usr/include/pgsql/server/pg_config_`uname -i`.h + install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/usr/include/pgsql/server/ + mv $RPM_BUILD_ROOT/usr/include/ecpg_config.h $RPM_BUILD_ROOT/usr/include/ecpg_config_`uname -i`.h + install -m 644 %{SOURCE7} $RPM_BUILD_ROOT/usr/include/ + ;; + *) + ;; +esac + +install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial +cp -p src/tutorial/* $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial + +# prep the setup script, including insertion of some values it needs +sed -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \ + -e 's|^PGENGINE=.*$|PGENGINE=%{_bindir}|' \ + -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ + -e 's|^PREVPGENGINE=.*$|PREVPGENGINE=%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin|' \ + <%{SOURCE9} >postgresql-setup +touch -r %{SOURCE9} postgresql-setup +install -m 755 postgresql-setup $RPM_BUILD_ROOT%{_bindir}/postgresql-setup + +# prep the startup check script, including insertion of some values it needs +sed -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \ + -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \ + -e 's|^PGDOCDIR=.*$|PGDOCDIR=%{_docdir}/%{name}-%{version}|' \ + <%{SOURCE4} >postgresql-check-db-dir +touch -r %{SOURCE4} postgresql-check-db-dir +install -m 755 postgresql-check-db-dir $RPM_BUILD_ROOT%{_bindir}/postgresql-check-db-dir + +install -d $RPM_BUILD_ROOT%{_unitdir} +install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/postgresql.service + +install -d $RPM_BUILD_ROOT/etc/rc.d/init.d +install -m 755 %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql + +%if %pam +install -d $RPM_BUILD_ROOT/etc/pam.d +install -m 644 %{SOURCE14} $RPM_BUILD_ROOT/etc/pam.d/postgresql +%endif + +# PGDATA needs removal of group and world permissions due to pg_pwd hole. +install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/data + +# backups of data go here... +install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/backups + +# postgres' .bash_profile +install -m 644 %{SOURCE15} $RPM_BUILD_ROOT/var/lib/pgsql/.bash_profile + + +%if %upgrade + pushd postgresql-%{prevversion} + make DESTDIR=$RPM_BUILD_ROOT install + popd + + # remove stuff we don't actually need for upgrade purposes + pushd $RPM_BUILD_ROOT%{_libdir}/pgsql/postgresql-%{prevmajorversion} + rm bin/clusterdb + rm bin/createdb + rm bin/createlang + rm bin/createuser + rm bin/dropdb + rm bin/droplang + rm bin/dropuser + rm bin/ecpg + rm bin/initdb + rm bin/pg_config + rm bin/pg_controldata + rm bin/pg_dump + rm bin/pg_dumpall + rm bin/pg_restore + rm bin/psql + rm bin/reindexdb + rm bin/vacuumdb + rm -rf include + rm lib/dict_snowball.so + rm lib/libecpg* + rm lib/libpg* + rm lib/libpq* + rm -rf lib/pgxs + rm lib/plpgsql.so + rm -rf share/doc + rm -rf share/man + rm -rf share/tsearch_data + rm share/*.bki + rm share/*description + rm share/*.sample + rm share/*.sql + rm share/*.txt + popd +%endif + + +%if %test + # tests. There are many files included here that are unnecessary, + # but include them anyway for completeness. We replace the original + # Makefiles, however. + mkdir -p $RPM_BUILD_ROOT%{_libdir}/pgsql/test + cp -a src/test/regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test + # pg_regress binary should be only in one subpackage, + # there will be a symlink from -test to -devel + rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress + ln -sf ../../pgxs/src/test/regress/pg_regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress + pushd $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress + rm -f GNUmakefile Makefile *.o + chmod 0755 pg_regress regress.so + popd + cp %{SOURCE5} $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile + chmod 0644 $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile +%endif + +# Fix some more documentation +# gzip doc/internals.ps +cp %{SOURCE8} README.rpm-dist +mv $RPM_BUILD_ROOT%{_docdir}/pgsql/html doc +rm -rf $RPM_BUILD_ROOT%{_docdir}/pgsql + +# remove files not to be packaged +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a +%if !%upgrade +rm -f $RPM_BUILD_ROOT%{_bindir}/pg_upgrade +rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/pg_upgrade_support.so +%endif + +# initialize file lists +cp /dev/null main.lst +cp /dev/null libs.lst +cp /dev/null server.lst +cp /dev/null devel.lst +cp /dev/null plperl.lst +cp /dev/null pltcl.lst +cp /dev/null plpython.lst + +%if %nls +%find_lang ecpg-%{majorversion} +cat ecpg-%{majorversion}.lang >>devel.lst +%find_lang ecpglib6-%{majorversion} +cat ecpglib6-%{majorversion}.lang >>libs.lst +%find_lang initdb-%{majorversion} +cat initdb-%{majorversion}.lang >>server.lst +%find_lang libpq5-%{majorversion} +cat libpq5-%{majorversion}.lang >>libs.lst +%find_lang pg_basebackup-%{majorversion} +cat pg_basebackup-%{majorversion}.lang >>server.lst +%find_lang pg_controldata-%{majorversion} +cat pg_controldata-%{majorversion}.lang >>server.lst +%find_lang pg_ctl-%{majorversion} +cat pg_ctl-%{majorversion}.lang >>server.lst +%find_lang pg_config-%{majorversion} +cat pg_config-%{majorversion}.lang >>main.lst +%find_lang pg_dump-%{majorversion} +cat pg_dump-%{majorversion}.lang >>main.lst +%find_lang pg_resetxlog-%{majorversion} +cat pg_resetxlog-%{majorversion}.lang >>server.lst +%find_lang pgscripts-%{majorversion} +cat pgscripts-%{majorversion}.lang >>main.lst +%if %plperl +%find_lang plperl-%{majorversion} +cat plperl-%{majorversion}.lang >>plperl.lst +%endif +%find_lang plpgsql-%{majorversion} +cat plpgsql-%{majorversion}.lang >>server.lst +%if %plpython +%find_lang plpython-%{majorversion} +cat plpython-%{majorversion}.lang >>plpython.lst +%endif +%if %pltcl +%find_lang pltcl-%{majorversion} +cat pltcl-%{majorversion}.lang >>pltcl.lst +%endif +%find_lang postgres-%{majorversion} +cat postgres-%{majorversion}.lang >>server.lst +%find_lang psql-%{majorversion} +cat psql-%{majorversion}.lang >>main.lst +%endif + +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + +%pre server +/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || : +/usr/sbin/useradd -M -N -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \ + -c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || : + +%post server +/sbin/ldconfig +if [ $1 -eq 1 ] ; then + # Initial installation + /bin/systemctl daemon-reload >/dev/null 2>&1 || : +fi + +# Run this when upgrading from SysV initscript to native systemd unit +%triggerun server -- postgresql-server < %{first_systemd_version} +# Save the current service runlevel info +# User must manually run systemd-sysv-convert --apply postgresql +# to migrate them to systemd targets +/usr/bin/systemd-sysv-convert --save postgresql >/dev/null 2>&1 || : + +# Run these because the SysV package being removed won't do them +/sbin/chkconfig --del postgresql >/dev/null 2>&1 || : +/bin/systemctl try-restart postgresql.service >/dev/null 2>&1 || : + +%preun server +if [ $1 -eq 0 ] ; then + # Package removal, not upgrade + /bin/systemctl --no-reload disable postgresql.service >/dev/null 2>&1 || : + /bin/systemctl stop postgresql.service >/dev/null 2>&1 || : +fi + +%postun server +/sbin/ldconfig +/bin/systemctl daemon-reload >/dev/null 2>&1 || : +if [ $1 -ge 1 ] ; then + # Package upgrade, not uninstall + /bin/systemctl try-restart postgresql.service >/dev/null 2>&1 || : +fi + +%if %plperl +%post -p /sbin/ldconfig plperl +%postun -p /sbin/ldconfig plperl +%endif + +%if %plpython +%post -p /sbin/ldconfig plpython +%postun -p /sbin/ldconfig plpython +%endif + +%if %pltcl +%post -p /sbin/ldconfig pltcl +%postun -p /sbin/ldconfig pltcl +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +# FILES section. + +%files -f main.lst +%defattr(-,root,root) +%doc doc/KNOWN_BUGS doc/MISSING_FEATURES doc/TODO +%doc COPYRIGHT README HISTORY doc/bug.template +%doc README.rpm-dist +%doc doc/html +%{_bindir}/clusterdb +%{_bindir}/createdb +%{_bindir}/createlang +%{_bindir}/createuser +%{_bindir}/dropdb +%{_bindir}/droplang +%{_bindir}/dropuser +%{_bindir}/pg_config +%{_bindir}/pg_dump +%{_bindir}/pg_dumpall +%{_bindir}/pg_restore +%{_bindir}/psql +%{_bindir}/reindexdb +%{_bindir}/vacuumdb +%{_mandir}/man1/clusterdb.* +%{_mandir}/man1/createdb.* +%{_mandir}/man1/createlang.* +%{_mandir}/man1/createuser.* +%{_mandir}/man1/dropdb.* +%{_mandir}/man1/droplang.* +%{_mandir}/man1/dropuser.* +%{_mandir}/man1/pg_config.* +%{_mandir}/man1/pg_dump.* +%{_mandir}/man1/pg_dumpall.* +%{_mandir}/man1/pg_restore.* +%{_mandir}/man1/psql.* +%{_mandir}/man1/reindexdb.* +%{_mandir}/man1/vacuumdb.* +%{_mandir}/man7/* +%dir %{_libdir}/pgsql + +%files docs +%defattr(-,root,root) +%doc *-US.pdf +%{_libdir}/pgsql/tutorial/ + +%files contrib +%defattr(-,root,root) +%{_datadir}/pgsql/extension/adminpack* +%{_datadir}/pgsql/extension/autoinc* +%{_datadir}/pgsql/extension/btree_gin* +%{_datadir}/pgsql/extension/btree_gist* +%{_datadir}/pgsql/extension/chkpass* +%{_datadir}/pgsql/extension/citext* +%{_datadir}/pgsql/extension/cube* +%{_datadir}/pgsql/extension/dblink* +%{_datadir}/pgsql/extension/dict_int* +%{_datadir}/pgsql/extension/dict_xsyn* +%{_datadir}/pgsql/extension/earthdistance* +%{_datadir}/pgsql/extension/file_fdw* +%{_datadir}/pgsql/extension/fuzzystrmatch* +%{_datadir}/pgsql/extension/hstore* +%{_datadir}/pgsql/extension/insert_username* +%{_datadir}/pgsql/extension/intagg* +%{_datadir}/pgsql/extension/intarray* +%{_datadir}/pgsql/extension/isn* +%{_datadir}/pgsql/extension/lo* +%{_datadir}/pgsql/extension/ltree* +%{_datadir}/pgsql/extension/moddatetime* +%{_datadir}/pgsql/extension/pageinspect* +%{_datadir}/pgsql/extension/pg_buffercache* +%{_datadir}/pgsql/extension/pg_freespacemap* +%{_datadir}/pgsql/extension/pg_stat_statements* +%{_datadir}/pgsql/extension/pg_trgm* +%{_datadir}/pgsql/extension/pgcrypto* +%{_datadir}/pgsql/extension/pgrowlocks* +%{_datadir}/pgsql/extension/pgstattuple* +%{_datadir}/pgsql/extension/refint* +%{_datadir}/pgsql/extension/seg* +%{_datadir}/pgsql/extension/tablefunc* +%{_datadir}/pgsql/extension/test_parser* +%{_datadir}/pgsql/extension/timetravel* +%{_datadir}/pgsql/extension/tsearch2* +%{_datadir}/pgsql/extension/unaccent* +%{_libdir}/pgsql/_int.so +%{_libdir}/pgsql/adminpack.so +%{_libdir}/pgsql/auth_delay.so +%{_libdir}/pgsql/autoinc.so +%{_libdir}/pgsql/auto_explain.so +%{_libdir}/pgsql/btree_gin.so +%{_libdir}/pgsql/btree_gist.so +%{_libdir}/pgsql/chkpass.so +%{_libdir}/pgsql/citext.so +%{_libdir}/pgsql/cube.so +%{_libdir}/pgsql/dblink.so +%{_libdir}/pgsql/dict_int.so +%{_libdir}/pgsql/dict_xsyn.so +%{_libdir}/pgsql/dummy_seclabel.so +%{_libdir}/pgsql/earthdistance.so +%{_libdir}/pgsql/file_fdw.so +%{_libdir}/pgsql/fuzzystrmatch.so +%{_libdir}/pgsql/hstore.so +%{_libdir}/pgsql/insert_username.so +%{_libdir}/pgsql/isn.so +%{_libdir}/pgsql/lo.so +%{_libdir}/pgsql/ltree.so +%{_libdir}/pgsql/moddatetime.so +%{_libdir}/pgsql/pageinspect.so +%{_libdir}/pgsql/passwordcheck.so +%{_libdir}/pgsql/pg_buffercache.so +%{_libdir}/pgsql/pg_freespacemap.so +%{_libdir}/pgsql/pg_trgm.so +%{_libdir}/pgsql/pgcrypto.so +%{_libdir}/pgsql/pgrowlocks.so +%{_libdir}/pgsql/pgstattuple.so +%{_libdir}/pgsql/pg_stat_statements.so +%{_libdir}/pgsql/refint.so +%{_libdir}/pgsql/seg.so +%{_libdir}/pgsql/tablefunc.so +%{_libdir}/pgsql/test_parser.so +%{_libdir}/pgsql/timetravel.so +%{_libdir}/pgsql/tsearch2.so +%{_libdir}/pgsql/unaccent.so +%if %selinux +%{_datadir}/pgsql/contrib/sepgsql.sql +%{_libdir}/pgsql/sepgsql.so +%endif +%if %ssl +%{_datadir}/pgsql/extension/sslinfo* +%{_libdir}/pgsql/sslinfo.so +%endif +%if %uuid +%{_datadir}/pgsql/extension/uuid-ossp* +%{_libdir}/pgsql/uuid-ossp.so +%endif +%if %xml +%{_datadir}/pgsql/extension/xml2* +%{_libdir}/pgsql/pgxml.so +%endif +%{_bindir}/oid2name +%{_bindir}/pg_archivecleanup +%{_bindir}/pg_standby +%{_bindir}/pg_test_fsync +%{_bindir}/pgbench +%{_bindir}/vacuumlo +%{_mandir}/man3/dblink* +%doc contrib/spi/*.example + +%files libs -f libs.lst +%defattr(-,root,root) +%doc COPYRIGHT +%{_libdir}/libpq.so.* +%{_libdir}/libecpg.so.* +%{_libdir}/libpgtypes.so.* +%{_libdir}/libecpg_compat.so.* + +%files server -f server.lst +%defattr(-,root,root) +%{_unitdir}/postgresql.service +/etc/rc.d/init.d/postgresql +%if %pam +%config(noreplace) /etc/pam.d/postgresql +%endif +%{_bindir}/initdb +%{_bindir}/pg_basebackup +%{_bindir}/pg_controldata +%{_bindir}/pg_ctl +%{_bindir}/pg_resetxlog +%{_bindir}/postgres +%{_bindir}/postmaster +%{_bindir}/postgresql-setup +%{_bindir}/postgresql-check-db-dir +%{_mandir}/man1/initdb.* +%{_mandir}/man1/pg_basebackup.* +%{_mandir}/man1/pg_controldata.* +%{_mandir}/man1/pg_ctl.* +%{_mandir}/man1/pg_resetxlog.* +%{_mandir}/man1/postgres.* +%{_mandir}/man1/postmaster.* +%{_datadir}/pgsql/postgres.bki +%{_datadir}/pgsql/postgres.description +%{_datadir}/pgsql/postgres.shdescription +%{_datadir}/pgsql/system_views.sql +%{_datadir}/pgsql/*.sample +%{_datadir}/pgsql/timezonesets/ +%{_datadir}/pgsql/tsearch_data/ +%{_libdir}/pgsql/dict_snowball.so +%{_libdir}/pgsql/plpgsql.so +%dir %{_datadir}/pgsql +%dir %{_datadir}/pgsql/contrib +%dir %{_datadir}/pgsql/extension +%{_datadir}/pgsql/extension/plpgsql* +%attr(700,postgres,postgres) %dir /var/lib/pgsql +%attr(700,postgres,postgres) %dir /var/lib/pgsql/data +%attr(700,postgres,postgres) %dir /var/lib/pgsql/backups +%attr(644,postgres,postgres) %config(noreplace) /var/lib/pgsql/.bash_profile +%{_libdir}/pgsql/libpqwalreceiver.so +%{_libdir}/pgsql/*_and_*.so +%{_libdir}/pgsql/euc2004_sjis2004.so +%{_datadir}/pgsql/conversion_create.sql +%{_datadir}/pgsql/information_schema.sql +%{_datadir}/pgsql/snowball_create.sql +%{_datadir}/pgsql/sql_features.txt + +%files devel -f devel.lst +%defattr(-,root,root) +/usr/include/* +%{_bindir}/ecpg +%{_libdir}/libpq.so +%{_libdir}/libecpg.so +%{_libdir}/libecpg_compat.so +%{_libdir}/libpgtypes.so +%{_libdir}/pgsql/pgxs/ +%{_mandir}/man1/ecpg.* +%{_mandir}/man3/SPI_* + +%if %upgrade +%files upgrade +%defattr(-,root,root) +%{_bindir}/pg_upgrade +%{_libdir}/pgsql/pg_upgrade_support.so +%{_libdir}/pgsql/postgresql-%{prevmajorversion} +%endif + +%if %plperl +%files plperl -f plperl.lst +%defattr(-,root,root) +%{_datadir}/pgsql/extension/plperl* +%{_libdir}/pgsql/plperl.so +%endif + +%if %pltcl +%files pltcl -f pltcl.lst +%defattr(-,root,root) +%{_datadir}/pgsql/extension/pltcl* +%{_libdir}/pgsql/pltcl.so +%{_bindir}/pltcl_delmod +%{_bindir}/pltcl_listmod +%{_bindir}/pltcl_loadmod +%{_datadir}/pgsql/unknown.pltcl +%endif + +%if %plpython +%files plpython -f plpython.lst +%defattr(-,root,root) +%{_datadir}/pgsql/extension/plpython* +%{_libdir}/pgsql/plpython2.so +%endif + +%if %test +%files test +%defattr(-,postgres,postgres) +%attr(-,postgres,postgres) %{_libdir}/pgsql/test/* +%attr(-,postgres,postgres) %dir %{_libdir}/pgsql/test +%endif + +%changelog +* Sat Mar 17 2012 Tom Lane <tgl@redhat.com> 9.1.3-3 +- Fix postgresql-setup to rely on systemd to parse the unit file, instead + of using ad-hoc code +Resolves: #804290 + +* Tue Mar 13 2012 Tom Lane <tgl@redhat.com> 9.1.3-2 +- Fix postgresql-setup to look for unit file in /usr/lib and to ignore + comments therein +Resolves: #802835 +- Resurrect a now-mostly-dummy postgresql init script, so that people can + keep on using "service postgresql initdb" if they wish +Resolves: #800416 + +* Mon Feb 27 2012 Tom Lane <tgl@redhat.com> 9.1.3-1 +- Update to PostgreSQL 9.1.3, for various fixes described at + http://www.postgresql.org/docs/9.1/static/release-9-1-3.html + including the fixes for CVE-2012-0866, CVE-2012-0867, CVE-2012-0868 +Resolves: #797918 + +* Mon Jan 9 2012 Tom Lane <tgl@redhat.com> 9.1.2-2 +- Make systemd unit file more user-friendly by resurrecting the old init + script's checks for data directory presence and version match +Resolves: #771496 + +* Mon Dec 5 2011 Tom Lane <tgl@redhat.com> 9.1.2-1 +- Update to PostgreSQL 9.1.2, for various fixes described at + http://www.postgresql.org/docs/9.1/static/release-9-1-2.html + +* Wed Nov 02 2011 Honza Horak <hhorak@redhat.com> 9.1.1-2 +- Create a symlink of pg_regress instead of full copy; + Don't strip symbols from regress libs +Related: #729012 + +* Mon Sep 26 2011 Tom Lane <tgl@redhat.com> 9.1.1-1 +- Update to PostgreSQL 9.1.1, for various fixes described at + http://www.postgresql.org/docs/9.1/static/release-9-1-1.html +- Enable build (but not test) of contrib/sepgsql +- Clean up specfile build options so that turning options off works again + +* Mon Sep 12 2011 Tom Lane <tgl@redhat.com> 9.1.0-1 +- Update to PostgreSQL 9.1.0 (major version bump); + in-place upgrade support now works from 9.0.x as the previous version + +* Wed Jul 27 2011 Tom Lane <tgl@redhat.com> 9.0.4-8 +- Convert to systemd startup support +Resolves: #696427 + +* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 9.0.4-7 +- Perl mass rebuild + +* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 9.0.4-6 +- Perl mass rebuild + +* Wed Jul 6 2011 Tom Lane <tgl@redhat.com> 9.0.4-5 +- Remove erroneously-included Default-Start line from LSB init block +Related: #717024 + +* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> 9.0.4-4 +- Perl mass rebuild +- incorporate upstream patch to make it build with Perl 5.14 + +* Fri Jun 10 2011 Tom Lane <tgl@redhat.com> 9.0.4-3 +- Work around gcc 4.6.0 bug (temporary backport from next upstream release) + +* Tue May 10 2011 Tom Lane <tgl@redhat.com> 9.0.4-2 +- Add LSB init block to initscript, to ensure sane ordering at system boot +Resolves: #703215 + +* Mon Apr 18 2011 Tom Lane <tgl@redhat.com> 9.0.4-1 +- Update to PostgreSQL 9.0.4, for various fixes described at + http://www.postgresql.org/docs/9.0/static/release-9-0-4.html +- Add %%{?_isa} to cross-subpackage Requires, per latest packaging guidelines + +* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Feb 3 2011 Tom Lane <tgl@redhat.com> 9.0.3-2 +- Remove filter-requires-perl-Pg.sh, which doesn't seem to be needed now that + PyGreSQL has been split out; and our use of it isn't compatible with rpm 4.9 + anyway + +* Tue Feb 1 2011 Tom Lane <tgl@redhat.com> 9.0.3-1 +- Update to PostgreSQL 9.0.3, for various fixes described at + http://www.postgresql.org/docs/9.0/static/release-9-0-3.html + including the fix for CVE-2010-4015 +Resolves: #674296 + +* Tue Dec 28 2010 Tom Lane <tgl@redhat.com> 9.0.2-1 +- Update to PostgreSQL 9.0.2 (major version bump) +- Create infrastructure for in-place database upgrade using pg_upgrade +Resolves: #398221 + +* Thu Dec 16 2010 Tom Lane <tgl@redhat.com> 8.4.6-1 +- Update to PostgreSQL 8.4.6, for various fixes described at + http://www.postgresql.org/docs/8.4/static/release-8-4-6.html +- Ensure we don't package any .gitignore files from the source tarball +Related: #642210 + +* Tue Oct 5 2010 Tom Lane <tgl@redhat.com> 8.4.5-1 +- Update to PostgreSQL 8.4.5, for various fixes described at + http://www.postgresql.org/docs/8.4/static/release-8-4-5.html + including the fix for CVE-2010-3433 +Related: #639371 +- Add -p "$pidfile" to initscript's status call to improve corner cases. +Related: #561010 + +* Sat Jul 31 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 8.4.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild +- Duplicate COPYRIGHT in -libs subpackage, per revised packaging guidelines + +* Wed Jun 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 8.4.4-2 +- Mass rebuild with perl-5.12.0 + +* Mon May 17 2010 Tom Lane <tgl@redhat.com> 8.4.4-1 +- Update to PostgreSQL 8.4.4, for various fixes described at + http://www.postgresql.org/docs/8.4/static/release-8-4-4.html + including fixes for CVE-2010-1169 and CVE-2010-1170 +Resolves: #593032 + +* Sun Mar 14 2010 Tom Lane <tgl@redhat.com> 8.4.3-1 +- Update to PostgreSQL 8.4.3, for various fixes described at + http://www.postgresql.org/docs/8.4/static/release-8-4-3.html + +* Mon Feb 22 2010 Tom Lane <tgl@redhat.com> 8.4.2-8 +- Bring init script into some modicum of compliance with Fedora/LSB standards +Resolves: #201043 + +* Thu Feb 18 2010 Tom "spot" Callaway <tcallawa@redhat.com> 8.4.2-7 +- adjust license tag to reflect OSI decision + +* Tue Jan 26 2010 Tom Lane <tgl@redhat.com> 8.4.2-6 +- Emit explicit error message if user tries to build RPM as root +Related: #558921 + +* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 8.4.2-5 +- Latest version of systemtap needs the probes.o file to be built again +Resolves: #557266 +- Provide script and instructions for building the documentation PDF + +* Mon Jan 11 2010 Tom Lane <tgl@redhat.com> 8.4.2-4 +- Arrange for the postmaster, but not any of its child processes, to be run + with oom_adj -17. This compensates for the OOM killer not being smart about + accounting for shared memory usage. + +* Sat Jan 9 2010 Tom Lane <tgl@redhat.com> 8.4.2-3 +- Remove the postgresql-python and postgresql-tcl subpackages. These files + are now broken out as their own packages (PyGreSQL and tcl-pgtcl, + respectively), to reflect the now longstanding split of upstream projects. +Related: #452306, #452321 + +* Tue Jan 5 2010 Tom Lane <tgl@redhat.com> 8.4.2-2 +- Remove static libraries (.a files) from package, per packaging guidelines +- Change %%define to %%global, per packaging guidelines + +* Wed Dec 16 2009 Tom Lane <tgl@redhat.com> 8.4.2-1 +- Update to PostgreSQL 8.4.2, for various fixes described at + http://www.postgresql.org/docs/8.4/static/release-8-4-2.html + including two security issues +Related: #546321 +Related: #547662 +- Use -N not the obsolete -n in useradd call +Resolves: #495727 +- Clean up specfile to eliminate rpmlint gripes, mainly by removing + no-longer-needed provisions for superseding rh-postgresql + +* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 8.4.1-5 +- rebuild against perl 5.10.1 + +* Thu Oct 15 2009 Tom Lane <tgl@redhat.com> 8.4.1-4 +- add sparc/sparc64 to multilib header support + +* Mon Sep 21 2009 Tom Lane <tgl@redhat.com> 8.4.1-3 +- Ensure pgstartup.log gets the right ownership/permissions during initdb +Resolves: #498959 + +* Wed Sep 16 2009 Tomas Mraz <tmraz@redhat.com> - 8.4.1-2 +- Use password-auth common PAM configuration instead of system-auth + +* Wed Sep 9 2009 Tom Lane <tgl@redhat.com> 8.4.1-1 +- Update to PostgreSQL 8.4.1, for various fixes described at + http://www.postgresql.org/docs/8.4/static/release-8-4-1.html + including two security issues +Related: #522085 +Related: #522092 + +* Tue Sep 01 2009 Karsten Hopp <karsten@redhat.com> 8.4.0-3.2 +- bump release and build again with the correct libssl + +* Tue Sep 01 2009 Karsten Hopp <karsten@redhat.com> 8.4.0-3.1 +- disable dtrace on s390x as a workaround until #520469 has been fixed + +* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 8.4.0-3 +- rebuilt with new openssl + +* Thu Aug 20 2009 Tom "spot" Callaway <tcallawa@redhat.com> 8.4.0-2 +- update License tag to MIT (PostgreSQL calls it "BSD", but it is MIT) +- Note: This changes nothing from a license compatibility perspective. + +* Mon Aug 17 2009 Tom Lane <tgl@redhat.com> 8.4.0-1 +- Update to PostgreSQL 8.4.0. See release notes at + http://www.postgresql.org/docs/8.4/static/release-8-4.html + +* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.3.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sat Mar 21 2009 Tom Lane <tgl@redhat.com> 8.3.7-1 +- Update to PostgreSQL 8.3.7, for various fixes described at + http://www.postgresql.org/docs/8.3/static/release-8-3-7.html + notably the fix for CVE-2009-0922 + +* Tue Mar 10 2009 Tom Lane <tgl@redhat.com> 8.3.6-4 +- Prevent dependent packages from needing to include sys/sdt.h + (unintended side effect of previous patch) +- Use -O1 on alpha, per report from Oliver Falk; -O2 tickles gcc bugs + +* Sun Mar 8 2009 Tom Lane <tgl@redhat.com> 8.3.6-3 +- Enable tracing via systemtap +Resolves: #488941 + +* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.3.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Feb 7 2009 Tom Lane <tgl@redhat.com> 8.3.6-1 +- Update to PostgreSQL 8.3.6, for various fixes described at + http://www.postgresql.org/docs/8.3/static/release-8-3-6.html + +* Wed Jan 21 2009 Dennis Gilmore <dennis@ausil.us> 8.3.5-4 +- use -O1 on sparc64 + +* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 8.3.5-3 +- rebuild with new openssl + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 8.3.5-2 +- Rebuild for Python 2.6 + +* Sun Nov 2 2008 Tom Lane <tgl@redhat.com> 8.3.5-1 +- Update to PostgreSQL 8.3.5. +- Improve display from init script's initdb action, per Michael Schwendt + +* Thu Sep 25 2008 Tom Lane <tgl@redhat.com> 8.3.4-1 +- Update to PostgreSQL 8.3.4. + +* Mon Jul 28 2008 Tom Lane <tgl@redhat.com> 8.3.3-3 +- Fix build failure caused by new default patch fuzz = 0 policy in rawhide. + +* Fri Jun 20 2008 Tom Lane <tgl@redhat.com> 8.3.3-2 +- Install Pgtcl in /usr/lib/tcl$TCL_VERSION, not directly in /usr/lib. + Needed because tcl 8.5 no longer puts /usr/lib into its package search path. + NOTE: do not back-port this change into branches using pre-8.5 tcl, because + /usr/lib/tcl8.4 had been a symlink to /usr/share/tcl8.4, and /usr/share + is exactly where we must not put Pgtcl. +Resolves: #228263 + +* Wed Jun 11 2008 Tom Lane <tgl@redhat.com> 8.3.3-1 +- Update to PostgreSQL 8.3.3. +- Remove postgresql-prefer-ncurses.patch, no longer needed in recent + Fedora releases because libtermcap is gone. + +* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-5 +- rebuild because of buildsystem hiccup + +* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-4 +- Enable LDAP support +Resolves: #445315 +- Use -Wl,--as-needed to suppress bogus dependencies for libraries that + are really only needed by some of the subpackages + +* Mon Apr 28 2008 Tom Lane <tgl@redhat.com> 8.3.1-3 +- Fix build breakage on PPC due to incorrect configure test +Related: #444317 + +* Sat Apr 26 2008 Tom Lane <tgl@redhat.com> 8.3.1-2 +- Clean up cross-subpackage Requires: to ensure that updating any one + subpackage brings in the matching versions of others. +Resolves: #444271 + +* Tue Mar 25 2008 Tom Lane <tgl@redhat.com> 8.3.1-1 +- Update to PostgreSQL 8.3.1. + +* Tue Mar 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> 8.3.0-3 +- add Requires for versioned perl (libperl.so) + +* Wed Feb 6 2008 Tom Lane <tgl@redhat.com> 8.3.0-2 +- Enable the new GSSAPI support in 8.3.0. + +* Mon Feb 4 2008 Tom Lane <tgl@redhat.com> 8.3.0-1 +- Update to PostgreSQL 8.3.0. + +* Fri Jan 18 2008 Tom Lane <tgl@redhat.com> 8.3RC2-1 +- Update to PostgreSQL 8.3RC2 (not waiting for 8.3.0 because Fedora 9 alpha + should be 8.3-based not 8.2-based). +- Update to pgtcl 1.6.2 + +* Mon Jan 7 2008 Tom Lane <tgl@redhat.com> 8.2.6-1 +- Update to PostgreSQL 8.2.6 to fix CVE-2007-4769, CVE-2007-4772, + CVE-2007-6067, CVE-2007-6600, CVE-2007-6601 +- Make initscript and pam config files be installed unconditionally; + seems new buildroots don't necessarily have those directories in place + +* Wed Dec 5 2007 Tom Lane <tgl@redhat.com> 8.2.5-2 +- Rebuild for new openssl + +* Thu Sep 20 2007 Tom Lane <tgl@redhat.com> 8.2.5-1 +- Update to PostgreSQL 8.2.5 and pgtcl 1.6.0 + +* Tue Sep 4 2007 Tom Lane <tgl@redhat.com> 8.2.4-6 +- Fix multilib problem for /usr/include/ecpg_config.h (which is new in 8.2.x) + +* Sat Aug 25 2007 Tom Lane <tgl@redhat.com> 8.2.4-5 +- Use nicer solution for tzdata file substitution: upstream discussion + concluded that hardwiring the path was better than a symlink after all. + +* Wed Aug 22 2007 Tom Lane <tgl@redhat.com> 8.2.4-4 +- Use tzdata package's data files instead of private copy, so that + postgresql-server need not be turned for routine timezone updates +- Don't remove postgres user/group during RPM uninstall, per Fedora + packaging guidelines +- Seems we need an explicit BuildRequires on gawk now +- Rebuild to fix Fedora toolchain issues + +* Sun Aug 12 2007 Tom Lane <tgl@redhat.com> 8.2.4-3 +- Recent perl changes in rawhide mean we need a more specific BuildRequires + +* Wed Jun 20 2007 Tom Lane <tgl@redhat.com> 8.2.4-2 +- Fix oversight in postgresql-test makefile: pg_regress isn't a shell script + anymore. Per upstream bug 3398. + +* Tue Apr 24 2007 Tom Lane <tgl@redhat.com> 8.2.4-1 +- Update to PostgreSQL 8.2.4 for CVE-2007-2138, data loss bugs +Resolves: #237682 + +* Wed Feb 14 2007 Karsten Hopp <karsten@redhat.com> 8.2.3-2 +- rebuild with tcl-8.4 + +* Wed Feb 7 2007 Tom Lane <tgl@redhat.com> 8.2.3-1 +- Update to PostgreSQL 8.2.3 due to regression induced by security fix +Resolves: #227522 + +* Sun Feb 4 2007 Tom Lane <tgl@redhat.com> 8.2.2-1 +- Update to PostgreSQL 8.2.2 to fix CVE-2007-0555, CVE-2007-0556 +Related: #225496 + +* Fri Jan 12 2007 Tom Lane <tgl@redhat.com> 8.2.1-2 +- Split -pl subpackage into three new packages to reduce dependencies + and track upstream project's packaging. + +* Wed Jan 10 2007 Tom Lane <tgl@redhat.com> 8.2.1-1 +- Update to PostgreSQL 8.2.1 +- Update to pgtcl 1.5.3 +- Be sure we link to libncurses, not libtermcap which is disappearing in Fedora + +* Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 8.2.0-2 +- rebuild for python 2.5 + +* Mon Dec 4 2006 Tom Lane <tgl@redhat.com> 8.2.0-1 +- Update to PostgreSQL 8.2.0 +- Update to PyGreSQL 3.8.1 +- Fix chcon arguments in test/regress/Makefile +Related: #201035 +- Adjust init script to not fool /etc/rc.d/rc +Resolves: #161470 +- Change init script to not do initdb automatically, but require + manual "service postgresql initdb" for safety. Per upstream discussions. + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 8.1.4-1.1 +- rebuild + +* Mon May 22 2006 Tom Lane <tgl@redhat.com> 8.1.4-1 +- Update to PostgreSQL 8.1.4 (includes fixes for CVE-2006-2313, CVE-2006-2314; + see bug #192173) +- Update to PyGreSQL 3.8 +- Suppress noise from chcon, per bug #187744 + +* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 8.1.3-2 +- Remove JDBC from this build; we will package it as separate SRPM + +* Mon Feb 13 2006 Jesse Keating <jkeating@redhat.com> - 8.1.3-1.1 +- rebump for build order issues during double-long bump + +* Mon Feb 13 2006 Tom Lane <tgl@redhat.com> 8.1.3-1 +- Update to PostgreSQL 8.1.3 (fixes bug #180617, CVE-2006-0553) +- Update to jdbc driver build 405 +- Modify multilib header hack to not break non-RH arches, per bug #177564 + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 8.1.2-1.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Mon Jan 9 2006 Tom Lane <tgl@redhat.com> 8.1.2-1 +- Update to PostgreSQL 8.1.2 +- Repair extraneous quote in pgtcl configure script ... odd that bash + didn't use to spit up on this. + +* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 8.1.1-3 +- fix pg_config.h for 64-bit and ppc platforms +- update Makefile.regress (needs to --load-language=plpgsql) + +* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 8.1.1-2 +- oops, looks like we want uname -i not uname -m + +* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 8.1.1-1 +- Update to PostgreSQL 8.1.1 +- Make pg_config.h architecture-independent for multilib installs; + put the original pg_config.h into pg_config_$ARCH.h + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Sat Nov 12 2005 Tom Lane <tgl@redhat.com> 8.1.0-4 +- Update included PDF-format manual to 8.1. + +* Wed Nov 9 2005 Tom Lane <tgl@redhat.com> 8.1.0-3 +- Rebuild due to openssl library update. + +* Wed Nov 9 2005 Tom Lane <tgl@redhat.com> 8.1.0-2 +- Rebuild due to openssl library update. + +* Mon Nov 7 2005 Tom Lane <tgl@redhat.com> 8.1.0-1 +- Update to PostgreSQL 8.1.0, PyGreSQL 3.7, and jdbc driver build 404 +- Fix PAM config file (must have account not only auth) (bug #167040) +- Add BuildPrereq: libxslt-devel (bug #170141) +- Sync with PGDG SRPM as much as feasible + +* Fri Oct 14 2005 Tomas Mraz <tmraz@redhat.com> +- use include instead of pam_stack in pam config + +* Tue Oct 4 2005 Tom Lane <tgl@redhat.com> 8.0.4-2 +- Add rpath to plperl.so (bug #162198) + +* Tue Oct 4 2005 Tom Lane <tgl@redhat.com> 8.0.4-1 +- Update to PostgreSQL 8.0.4, PyGreSQL 3.6.2, and jdbc driver build 312 +- Adjust pgtcl link command to ensure it binds to correct libpq (bug #166665) +- Remove obsolete Conflicts: against other python versions (bug #166754) +- Add /etc/pam.d/postgresql (bug #167040) +- Include contrib/xml2 in build (bug #167492) + +* Tue May 10 2005 Tom Lane <tgl@redhat.com> 8.0.3-1 +- Update to PostgreSQL 8.0.3 (includes security and data-loss fixes; see + bz#156727, CAN-2005-1409, CAN-2005-1410) +- Update to jdbc driver build 311 +- Recreate postgres user after superseding an rh-postgresql install (bug #151911) +- Ensure postgresql server is restarted if running during an upgrade + +* Thu Apr 14 2005 Florian La Roche <laroche@redhat.com> 8.0.2-2 +- rebuild for postgresql-tcl + +* Tue Apr 12 2005 Tom Lane <tgl@redhat.com> 8.0.2-1 +- Update to PostgreSQL 8.0.2. + +* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 8.0.1-5 +- Remove unwanted rpath specification from pgtcl (bz#150649) + +* Wed Mar 2 2005 Tom Lane <tgl@redhat.com> 8.0.1-4 +- Attach Obsoletes: declarations for rh-postgresql to subpackages (bz#144435) +- Make Requires: and Prereq: package linkages specify release not only + version, as per recent mailing list discussion. + +* Tue Mar 1 2005 Tomas Mraz <tmraz@redhat.com> 8.0.1-3 +- rebuild with openssl-0.9.7e + +* Mon Feb 21 2005 Tom Lane <tgl@redhat.com> 8.0.1-2 +- Repair improper error message in init script when PGVERSION doesn't match. +- Arrange for auto update of version embedded in init script. + +* Sun Jan 30 2005 Tom Lane <tgl@redhat.com> 8.0.1-1 +- Update to PostgreSQL 8.0.1. +- Add versionless symlinks to jar files (bz#145744) + +* Wed Jan 19 2005 Tom Lane <tgl@redhat.com> 8.0.0-1 +- Update to PostgreSQL 8.0.0, PyGreSQL 3.6.1, pgtcl 1.5.2, + and jdbc driver build 309. +- Extensive cleanout of obsolete cruft in patch set. +- Regression tests are run during RPM build (NOTE: cannot build as root when + this is enabled). +- Postmaster stderr goes someplace useful, not /dev/null (bz#76503, #103767) +- Make init script return a useful exit status (bz#80782) +- Move docs' tutorial directory to %%{_libdir}/pgsql/tutorial, since it + includes .so files that surely do not belong under /usr/share. +- Remove useless .sgml files from docs RPM (bz#134450) +- Put regression tests under /usr/lib64 on 64-bit archs, since .so files + are not architecture-independent. + +* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 7.4.6-5 +- Rebuilt for new readline. + +* Tue Jan 11 2005 Dan Walsh <dwalsh@redhat.com> 7.4.6-4 +- Add restorecon to postgresql.init in order to restore database to correct +- SELinux context. + +* Thu Dec 16 2004 Tom Lane <tgl@redhat.com> 7.4.6-3 +- Update to PyGreSQL 3.6 (to fix bug #142711) +- Adjust a few file permissions (bug #142431) +- Assign %%{_libdir}/pgsql to base package instead of -server (bug #74003) + +* Mon Nov 15 2004 Tom Lane <tgl@redhat.com> 7.4.6-2 +- Rebuild so python components play with python 2.4 (bug 139160) + +* Sat Oct 23 2004 Tom Lane <tgl@redhat.com> 7.4.6-1 +- Update to PostgreSQL 7.4.6 (bugs 136947, 136949) +- Make init script more paranoid about mkdir step of initializing a new + database (bugs 136947, 136949) + +* Wed Oct 20 2004 Tom Lane <tgl@redhat.com> 7.4.5-4 +- Remove contrib/oidjoins stuff from installed fileset; it's of no use + to ordinary users and has a security issue (bugs 136300, 136301) +- adjust chkconfig priority (bug 128852) + +* Tue Oct 05 2004 Tom Lane <tgl@redhat.com> 7.4.5-3 +- Solve the stale lockfile problem (bugs 71295, 96981, 134090) +- Use runuser instead of su for SELinux (bug 134588) + +* Mon Aug 30 2004 Tom Lane <tgl@redhat.com> 7.4.5-2 +- Update to PyGreSQL 3.5. + +* Wed Aug 24 2004 Tom Lane <tgl@redhat.com> 7.4.5-1 +- Update to PostgreSQL 7.4.5. +- Update JDBC jars to driver build 215. +- Add Obsoletes: entries for rh-postgresql packages, per bug 129278. + +* Sat Jul 10 2004 Tom Lane <tgl@redhat.com> 7.4.3-3 +- Undo ill-considered chkconfig change that causes server to start + immediately upon install. Mea culpa (bug 127552). + +* Sat Jul 03 2004 Tom Lane <tgl@redhat.com> 7.4.3-2 +- Update JDBC jars to driver build 214. + +* Wed Jun 23 2004 Tom Lane <tgl@redhat.com> 7.4.3-1 +- Update to PostgreSQL 7.4.3. +- Uninstalling server RPM stops postmaster first, per bug 114846. +- Fix su commands to not assume PG user's shell is sh-like, per bug 124024. +- Fix permissions on postgresql-python doc files, per bug 124822. +- Minor postgresql.init improvements. + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 7.4.2-1 +- Update to PostgreSQL 7.4.2; sync with community SRPM as much as possible. +- Support PGOPTS from /etc/sysconfig/pgsql, per bug 111504. +- Fix permissions on /etc/sysconfig/pgsql, per bug 115278. +- SELinux patch in init file: always su </dev/null, per bug 117901. +- Rebuilt + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Wed Feb 25 2004 Tom Lane <tgl@redhat.com> +- Update to PostgreSQL 7.4.1. +- Rebuilt + +* Tue Feb 24 2004 Tom Lane <tgl@redhat.com> +- Fix chown syntax in postgresql.init also. +- Rebuilt + +* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com> +- Use ':' instead of '.' as separator for chown. + +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Fri Jan 9 2004 Lamar Owen <lowen@pari.edu> +- 7.4.1-1PGDG +- Merge Sander Steffann's changes up to 7.4-0.5PGDG +- Proper 7.4.1 JDBC jars this time. +- Patch for no pl/python from Alvaro + +* Fri Dec 05 2003 David Jee <djee@redhat.com> 7.4-5 +- Rebuild for Perl 5.8.2. + +* Mon Dec 01 2003 David Jee <djee@redhat.com> 7.4-4 +- Add PyGreSQL patch for deprecated column pg_type.typprtlen [Bug #111263] +- Add headers patch which moves ecpg headers to /usr/include/ecpg + [Bug #111195] + +* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-3 +- uncomment buildrequires tcl-devel + +* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-2 +- rebuild + +* Mon Nov 24 2003 David Jee <djee@redhat.com> 7.4-1 +- initial Red Hat build +- move jars to /usr/share/java +- fix rpm-multilib patch to use sysconfig + +* Fri Nov 21 2003 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org> +- 7.4-0.1PGDG +- Development JDBC jars in addition to the 7.3 jars; will replace the +- 7.3 jars once 7.4 official jars are released. +- Changed to use the bzip2 source to save a little size. +- Removed some commented out portions of the specfile. +- Removed the 7.3.4 PDF docs. Will replace with 7.4 PDF's once they +- are ready. + +* Tue Nov 18 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 7.4-0.1 +- 7.4 +- Fixed Patch #1 (now rpm-pgsql-7.4.patch) +- Fixed Patch #2 (now rpm-multilib-7.4.patch): +- Patch #4 is unnecessary (upstream) +- Fixed Patch #6 (now postgresql-7.4-src-tutorial.patch) +- Added Patch #8 (postgresql-7.4-com_err.patch) as com_err() + is provided by e2fsprogs and CPPFLAGS gets lost somewhere + inside configure (bad macro?) +- No 7.4 PDF docs available yet (Source #17) +- PyGreSQL is separated from the upstream distribution but + we include it as usual (Source #18) +- Default to compiling libpq and ECPG as fully thread-safe + +- 7.4 Origin. See previous spec files for previous history. Adapted +- from Red Hat and PGDG's 7.3.4 RPM, directly descended from +- postgresql-7.3.4-2 as shipped in Fedora Core 1. diff --git a/postgresql92/ruby-postgres.spec.diff b/postgresql92/ruby-postgres.spec.diff new file mode 100644 index 0000000..6531c1c --- /dev/null +++ b/postgresql92/ruby-postgres.spec.diff @@ -0,0 +1,74 @@ +--- ruby-postgres.spec.nodsc 2012-06-05 09:10:39.579420732 +0200 ++++ ruby-postgres.spec 2012-06-05 09:27:29.960542186 +0200 +@@ -1,6 +1,12 @@ ++# Sets %%pkg_name to 'ruby-postgres' if we build for scl. ++%{?scl:%scl_package ruby-postgres} ++# If we don't build for scl, then pkg_name is empty. ++# This way, we can always use %%pkg_name for 'ruby-postgres', be it scl build or not. ++%{!?scl:%global pkg_name ruby-postgres} ++# %%{name} then references to either 'ruby-postgres' (not in scl) or '%%{?scl:%scl_prefix}ruby-postgres' (in scl). + %{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")} + +-Name: ruby-postgres ++Name: %{?scl_prefix}ruby-postgres + Version: 0.7.9 + Release: 2010.01.28.2%{?dist} + Summary: A Ruby interface for the PostgreSQL database engine +@@ -9,8 +15,7 @@ Group: Development/Languages + # terms as ruby. + License: Ruby + URL: http://bitbucket.org/ged/ruby-pg/ +-Source: http://bitbucket.org/ged/ruby-pg/downloads/%{name}-%{version}.2008.01.28.tar.gz +-BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) ++Source: http://bitbucket.org/ged/ruby-pg/downloads/%{pkg_name}-%{version}.2008.01.28.tar.gz + Patch1: 0001-Implement-trace.patch + Patch2: 0002-Implement-notifies.patch + Patch3: 0003-Implement-print.patch +@@ -19,38 +24,38 @@ Requires: ruby >= 1.3 + Requires: ruby(abi) = 1.8 + + BuildRequires: ruby >= 1.3 +-BuildRequires: postgresql-devel >= 6.5 ++BuildRequires: %{?scl_prefix}postgresql-devel >= 6.5 + BuildRequires: ruby-devel + +-Provides: ruby(postgres) = %{version} ++Provides: %{?scl_prefix}ruby(postgres) = %{version} ++ ++%{?scl:Requires:%scl_runtime} + + %description + Database driver to access PostgreSQL databases from Ruby. + + %prep +-%setup -q ++%setup -q -n %{pkg_name}-%{version} + %patch1 -p1 + %patch2 -p1 + %patch3 -p1 + chmod a-x sample/psql.rb + + %build ++%{?scl:scl enable %scl - << \EOF} + cd ext + ruby extconf.rb --with-cflags="$RPM_OPT_FLAGS" + make ++%{?scl:EOF} + + %install + cd ext +-rm -rf $RPM_BUILD_ROOT +-make DESTDIR=%{buildroot} install +- +-%clean +-rm -rf %{buildroot} ++make DESTDIR=%{buildroot}%{?scl:%_scl_root} install + + %files + %defattr(-, root, root) + %doc ChangeLog README README.ja doc sample +-%{ruby_sitearch}/postgres.so ++%{?scl:%_scl_root}%{ruby_sitearch}/postgres.so + + %changelog + * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.9-2010.01.28.2 diff --git a/postgresql92/ruby-postgres.spec.nodsc b/postgresql92/ruby-postgres.spec.nodsc new file mode 100644 index 0000000..b354343 --- /dev/null +++ b/postgresql92/ruby-postgres.spec.nodsc @@ -0,0 +1,108 @@ +%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")} + +Name: ruby-postgres +Version: 0.7.9 +Release: 2010.01.28.2%{?dist} +Summary: A Ruby interface for the PostgreSQL database engine +Group: Development/Languages +# Source says that ruby-gems-postgres is distributable under the same +# terms as ruby. +License: Ruby +URL: http://bitbucket.org/ged/ruby-pg/ +Source: http://bitbucket.org/ged/ruby-pg/downloads/%{name}-%{version}.2008.01.28.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) +Patch1: 0001-Implement-trace.patch +Patch2: 0002-Implement-notifies.patch +Patch3: 0003-Implement-print.patch + +Requires: ruby >= 1.3 +Requires: ruby(abi) = 1.8 + +BuildRequires: ruby >= 1.3 +BuildRequires: postgresql-devel >= 6.5 +BuildRequires: ruby-devel + +Provides: ruby(postgres) = %{version} + +%description +Database driver to access PostgreSQL databases from Ruby. + +%prep +%setup -q +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +chmod a-x sample/psql.rb + +%build +cd ext +ruby extconf.rb --with-cflags="$RPM_OPT_FLAGS" +make + +%install +cd ext +rm -rf $RPM_BUILD_ROOT +make DESTDIR=%{buildroot} install + +%clean +rm -rf %{buildroot} + +%files +%defattr(-, root, root) +%doc ChangeLog README README.ja doc sample +%{ruby_sitearch}/postgres.so + +%changelog +* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.9-2010.01.28.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.9-2009.01.28.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Sep 08 2010 Chris Lalancette <clalance@redhat.com> - 0.7.9.2008.01.28.2 +- Add patch to implement trace support (from upstream ruby-pg project) +- Add patch to implement print support (from older 0.7.1 sources) +- Add patch to implement notifies call (from older 0.7.1 sources) + +* Fri Aug 13 2010 Chris Lalancette <clalance@redhat.com> - 0.7.9.2008.01.28.1 +- Update to ruby-postgres .7.9.2008.01.28 + +* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.7.1-10 +- apply patch properly + +* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.7.1-9 +- fix license tag + +* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.7.1-8 +- Autorebuild for GCC 4.3 + +* Wed Aug 22 2007 David Lutterkort <dlutter@redhat.com> - 0.7.1-7 +- Rebuild for F8 buildid + +* Fri Dec 8 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-6 +- Rebuild against PostgreSQL 8.2.0 + +* Wed Sep 13 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-5 +- Rebuilt for FC6 +- Remove _smp_mflags from make install + +* Wed Aug 2 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-4 +- Fix CFLAGS +- Add id to buildroot path + +* Tue Jul 11 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-3 +- Bring in accordance with packaging guidelines +- Changed license from 'Distributable' to 'Ruby License' + +* Mon Jun 5 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-2 +- Clean build root for install + +* Wed May 24 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-1 +- Initial build + diff --git a/postgresql92/rubygem-pg.spec.diff b/postgresql92/rubygem-pg.spec.diff new file mode 100644 index 0000000..50173e0 --- /dev/null +++ b/postgresql92/rubygem-pg.spec.diff @@ -0,0 +1,78 @@ +--- rubygem-pg.spec.nodsc 2012-08-20 15:36:33.558327113 +0200 ++++ rubygem-pg.spec 2012-08-20 15:45:47.794358583 +0200 +@@ -1,9 +1,12 @@ ++%{?scl:%scl_package rubygem-%{gem_name}} ++%{!?scl:%global pkg_name %{name}} ++ + # Generated from pg-0.11.0.gem by gem2rpm -*- rpm-spec -*- + %global gem_name pg + %global rubyabi 1.9.1 + + Summary: A Ruby interface to the PostgreSQL RDBMS +-Name: rubygem-%{gem_name} ++Name: %{?scl_prefix}rubygem-%{gem_name} + Version: 0.12.2 + Release: 3%{?dist} + Group: Development/Languages +@@ -22,12 +25,12 @@ BuildRequires: ruby(abi) = %{rubyabi} + BuildRequires: ruby-devel + BuildRequires: rubygems-devel + BuildRequires: ruby +-BuildRequires: postgresql-server postgresql-devel ++BuildRequires: %{?scl_prefix}postgresql-server %{?scl_prefix}postgresql-devel + # Keep requiring rspec-core as long as rubygem(rspec) is provided by RSpec 1.x + BuildRequires: rubygem(rspec-core) + # Introduced in F17. +-Obsoletes: ruby(postgres) <= 0.7.9-2010.01.28.2 +-Provides: rubygem(%{gem_name}) = %{version} ++Obsoletes: %{?scl_prefix}ruby(postgres) <= 0.7.9-2010.01.28.2 ++Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + + %description + This is the extension library to access a PostgreSQL database from Ruby. +@@ -35,21 +38,23 @@ This library works with PostgreSQL 7.4 a + + + %package doc +-Summary: Documentation for %{name} ++Summary: Documentation for %{pkg_name} + Group: Documentation +-Requires: %{name} = %{version}-%{release} ++Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} + BuildArch: noarch + + %description doc +-Documentation for %{name} ++Documentation for %{pkg_name} + + + %prep +-%setup -q -c -T ++%setup -n %{pkg_name}-%{version} -q -c -T + mkdir -p .%{gem_dir} + export CONFIGURE_ARGS="--with-cflags='%{optflags}'" ++%{?scl:scl enable %{scl} "} + gem install --local --install-dir .%{gem_dir} \ + -V --force %{SOURCE0} ++%{?scl:"} + + %build + +@@ -78,7 +83,9 @@ done + + %check + pushd .%{gem_instdir} ++%{?scl:scl enable %{scl} "} + rspec spec ++%{?scl:"} + popd + + %files +@@ -108,7 +115,6 @@ popd + %{gem_instdir}/sample + %{gem_instdir}/spec + +- + %changelog + * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.2-3 + - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild diff --git a/postgresql92/rubygem-pg.spec.nodsc b/postgresql92/rubygem-pg.spec.nodsc new file mode 100644 index 0000000..22ac9fe --- /dev/null +++ b/postgresql92/rubygem-pg.spec.nodsc @@ -0,0 +1,142 @@ +# Generated from pg-0.11.0.gem by gem2rpm -*- rpm-spec -*- +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global gemname pg +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} +%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')} +%global rubyabi 1.8 + +Summary: A Ruby interface to the PostgreSQL RDBMS +Name: rubygem-%{gemname} +Version: 0.12.2 +Release: 2%{?dist} +Group: Development/Languages +# Upstream license clarification (https://bitbucket.org/ged/ruby-pg/issue/72/) +# +# The portions of the code that are BSD-licensed are licensed under +# the BSD 3-Clause license; the contents of the BSD file are incorrect. +# +License: (GPLv2 or Ruby) and BSD +URL: http://bitbucket.org/ged/ruby-pg/ +Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem +Requires: ruby(abi) = %{rubyabi} +Requires: rubygems +Requires: ruby +BuildRequires: ruby(abi) = %{rubyabi} +BuildRequires: rubygems +BuildRequires: ruby ruby-devel +BuildRequires: postgresql-server postgresql-devel +# EPEL does not have RSpec 2.x :/ +%if 0%{?fedora} +# Keep requiring rspec-core as long as rubygem(rspec) is provided by RSpec 1.x +BuildRequires: rubygem(rspec-core) +%endif +Provides: rubygem(%{gemname}) = %{version} + +%description +This is the extension library to access a PostgreSQL database from Ruby. +This library works with PostgreSQL 7.4 and later. + + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} + +%description doc +Documentation for %{name} + + +%prep +%setup -q -c -T +mkdir -p .%{gemdir} +export CONFIGURE_ARGS="--with-cflags='%{optflags}'" +gem install --local --install-dir .%{gemdir} \ + -V --force %{SOURCE0} + +%build + +%install +mkdir -p %{buildroot}%{gemdir} +cp -a .%{gemdir}/* \ + %{buildroot}%{gemdir}/ + +install -d -m0755 %{buildroot}%{ruby_sitearch} +mv %{buildroot}%{geminstdir}/lib/pg_ext.so %{buildroot}%{ruby_sitearch}/ + +# Remove the binary extension sources and build leftovers. +rm -rf %{buildroot}%{geminstdir}/ext + +# Remove useless shebangs. +sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{geminstdir}/lib/pg.rb +sed -i -e '/^#!rake/d' %{buildroot}%{geminstdir}/Rakefile +sed -i -e '/^#!rake/d' %{buildroot}%{geminstdir}/Rakefile.cross + +# Fix spec shebangs. +# https://bitbucket.org/ged/ruby-pg/issue/74/ +for file in `find %{buildroot}%{geminstdir}/spec -type f ! -perm /a+x -name "*.rb"`; do + [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] \ + && sed -i -e 's/^#!\/usr\/bin\/env spec/#!\/usr\/bin\/env rspec/' $file \ + && chmod -v 755 $file +done + +%if 0%{?fedora} +%check +pushd .%{geminstdir} +rspec spec +popd +%endif + +%files +%exclude %{geminstdir}/.gemtest +%{ruby_sitearch}/pg_ext.so +%dir %{geminstdir} +%doc %{geminstdir}/BSD +%doc %{geminstdir}/GPL +%doc %{geminstdir}/LICENSE +%{geminstdir}/lib +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + +%files doc +%doc %{gemdir}/doc/%{gemname}-%{version} +%doc %{geminstdir}/ChangeLog +%doc %{geminstdir}/Contributors.rdoc +%doc %{geminstdir}/History.rdoc +%doc %{geminstdir}/Manifest.txt +%{geminstdir}/Rakefile +%{geminstdir}/Rakefile.cross +%doc %{geminstdir}/README.rdoc +%doc %{geminstdir}/README.ja.rdoc +%doc %{geminstdir}/README.OS_X.rdoc +%doc %{geminstdir}/README.windows.rdoc +%{geminstdir}/misc +%{geminstdir}/sample +%{geminstdir}/spec + + +%changelog +* Tue Apr 24 2012 Vít Ondruch <vondruch@redhat.com> - 0.12.2-2 +- Fix provides macro. + +* Tue Apr 03 2012 Vít Ondruch <vondruch@redhat.com> - 0.12.2-1 +- Upgrade to pg 0.12.2. + +* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Jun 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-5 +- Pass CFLAGS to extconf.rb. + +* Fri Jun 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-4 +- Binary extension moved into ruby_sitearch dir. +- -doc subpackage made architecture independent. + +* Wed Jun 01 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-3 +- Quoted upstream license clarification. + +* Mon May 30 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-2 +- Removed/fixed shebang in non-executables. +- Removed sources. + +* Thu May 26 2011 Vít Ondruch <vondruch@redhat.com> - 0.11.0-1 +- Initial package diff --git a/unixodbc23/mysql-connector-odbc.spec.diff b/unixodbc23/mysql-connector-odbc.spec.diff new file mode 100644 index 0000000..8283c39 --- /dev/null +++ b/unixodbc23/mysql-connector-odbc.spec.diff @@ -0,0 +1,93 @@ +--- mysql-connector-odbc.spec.nodsc 2010-01-21 01:24:43.000000000 +0100 ++++ mysql-connector-odbc.spec 2012-06-05 14:34:38.350018792 +0200 +@@ -1,7 +1,10 @@ ++%{?scl:%scl_package mysql-connector-odbc} ++%{!?scl:%global pkg_name mysql-connector-odbc} ++ + Summary: ODBC driver for MySQL +-Name: mysql-connector-odbc ++Name: %{?scl_prefix}mysql-connector-odbc + Version: 5.1.5r1144 +-Release: 7%{?dist} ++Release: 8%{?dist} + Group: System Environment/Libraries + URL: http://dev.mysql.com/downloads/connector/odbc/ + # exceptions allow library to be linked with most open source SW, +@@ -19,8 +22,9 @@ Patch3: myodbc-multilib.patch + Patch4: myodbc-null-string.patch + Patch5: myodbc-64bit.patch + +-Requires: unixODBC +-BuildRequires: mysql-devel unixODBC-devel ++Requires: %{?scl:%scl_prefix}unixODBC ++BuildRequires: mysql-devel ++BuildRequires: %{?scl:%scl_prefix}unixODBC-devel + BuildRequires: automake autoconf libtool libtool-ltdl-devel + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +@@ -28,7 +32,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version + An ODBC (rev 3) driver for MySQL, for use with unixODBC. + + %prep +-%setup -q ++%setup -q %{?scl:-n %{pkg_name}-%{version}} + + %patch1 -p1 + %patch2 -p1 +@@ -45,20 +49,24 @@ automake -a + automake + autoconf + ++%{?scl:scl enable %scl - << \EOF} + %configure \ + --disable-gui \ + --with-unixODBC=/usr/foo \ +- --with-odbc-ini=/etc/odbc.ini \ +- --with-mysql-includes=%{_includedir}/mysql \ +- --with-mysql-libs=%{_libdir}/mysql ++ --with-odbc-ini=%{_sysconfdir}/odbc.ini \ ++ --with-mysql-includes=%{_root_includedir}/mysql \ ++ --with-mysql-libs=%{_root_libdir}/mysql + + export tagname=CC + make LIBTOOL=/usr/bin/libtool %{?_smp_mflags} ++%{?scl:EOF} + + %install + rm -rf $RPM_BUILD_ROOT + export tagname=CC ++%{?scl:scl enable %scl - << \EOF} + %makeinstall LIBTOOL=/usr/bin/libtool ++%{?scl:EOF} + + # Remove stuff not to be packaged (possibly reconsider later) + rm -f $RPM_BUILD_ROOT%{_bindir}/myodbc-installer +@@ -67,12 +75,12 @@ rm -f $RPM_BUILD_ROOT%{_bindir}/myodbc-i + rm -f $RPM_BUILD_ROOT%{_libdir}/libmyodbc5.*a + + # makefile thinks it should install docs in totally wrong place +-rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/README +-rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/README.debug +-rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/ChangeLog +-rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/INSTALL +-rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/LICENSE.exceptions +-rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/LICENSE.gpl ++rm -f $RPM_BUILD_ROOT%{_datadir}/mysql-connector-odbc/README ++rm -f $RPM_BUILD_ROOT%{_datadir}/mysql-connector-odbc/README.debug ++rm -f $RPM_BUILD_ROOT%{_datadir}/mysql-connector-odbc/ChangeLog ++rm -f $RPM_BUILD_ROOT%{_datadir}/mysql-connector-odbc/INSTALL ++rm -f $RPM_BUILD_ROOT%{_datadir}/mysql-connector-odbc/LICENSE.exceptions ++rm -f $RPM_BUILD_ROOT%{_datadir}/mysql-connector-odbc/LICENSE.gpl + + %clean + rm -rf $RPM_BUILD_ROOT +@@ -87,6 +95,9 @@ rm -rf $RPM_BUILD_ROOT + %{_libdir}/lib*so + + %changelog ++* Tue Dec 06 2011 Honza Horak <hhorak@redhat.com> 5.1.5r1144-8 ++- Enable building in scl ++ + * Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 5.1.5r1144-7 + - Correct Source: tag and comment to reflect how to get the tarball + diff --git a/unixodbc23/mysql-connector-odbc.spec.nodsc b/unixodbc23/mysql-connector-odbc.spec.nodsc new file mode 100644 index 0000000..b73684c --- /dev/null +++ b/unixodbc23/mysql-connector-odbc.spec.nodsc @@ -0,0 +1,152 @@ +Summary: ODBC driver for MySQL +Name: mysql-connector-odbc +Version: 5.1.5r1144 +Release: 7%{?dist} +Group: System Environment/Libraries +URL: http://dev.mysql.com/downloads/connector/odbc/ +# exceptions allow library to be linked with most open source SW, +# not only GPL code. +License: GPLv2 with exceptions + +# Upstream has a mirror redirector for downloads, so the URL is hard to +# represent statically. You can get the tarball by following a link from +# http://dev.mysql.com/downloads/connector/odbc/ +Source: mysql-connector-odbc-%{version}.tar.gz + +Patch1: myodbc-my-bool.patch +Patch2: myodbc-shutdown.patch +Patch3: myodbc-multilib.patch +Patch4: myodbc-null-string.patch +Patch5: myodbc-64bit.patch + +Requires: unixODBC +BuildRequires: mysql-devel unixODBC-devel +BuildRequires: automake autoconf libtool libtool-ltdl-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +%description +An ODBC (rev 3) driver for MySQL, for use with unixODBC. + +%prep +%setup -q + +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 + +%build +export CFLAGS="%{optflags} -fno-strict-aliasing" + +libtoolize --copy --force +aclocal +automake -a +automake +autoconf + +%configure \ + --disable-gui \ + --with-unixODBC=/usr/foo \ + --with-odbc-ini=/etc/odbc.ini \ + --with-mysql-includes=%{_includedir}/mysql \ + --with-mysql-libs=%{_libdir}/mysql + +export tagname=CC +make LIBTOOL=/usr/bin/libtool %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +export tagname=CC +%makeinstall LIBTOOL=/usr/bin/libtool + +# Remove stuff not to be packaged (possibly reconsider later) +rm -f $RPM_BUILD_ROOT%{_bindir}/myodbc-installer + +# we don't want static libraries, thanks +rm -f $RPM_BUILD_ROOT%{_libdir}/libmyodbc5.*a + +# makefile thinks it should install docs in totally wrong place +rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/README +rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/README.debug +rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/ChangeLog +rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/INSTALL +rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/LICENSE.exceptions +rm -f $RPM_BUILD_ROOT/usr/share/mysql-connector-odbc/LICENSE.gpl + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc README README.debug ChangeLog LICENSE.gpl LICENSE.exceptions +%{_libdir}/lib*so + +%changelog +* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 5.1.5r1144-7 +- Correct Source: tag and comment to reflect how to get the tarball + +* Mon Nov 23 2009 Dennis Gregorovic <dgregor@redhat.com> - 5.1.5r1144-6.1 +- Rebuilt for RHEL 6 + +* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 5.1.5r1144-6 +- rebuilt with new openssl + +* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.5r1144-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.5r1144-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 Tom Lane <tgl@redhat.com> 5.1.5r1144-3 +- Fix some 64-bitness issues with unixODBC 2.2.14. + +* Fri Feb 20 2009 Tom Lane <tgl@redhat.com> 5.1.5r1144-2 +- Rebuild for unixODBC 2.2.14. +- Fix problem with null username/password specifications + +* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 5.1.5r1144-1 +- Update to mysql-connector-odbc 5.1.5r1144, to go with MySQL 5.1.x. + Note the library name has changed from libmyodbc3 to libmyodbc5. + +* Tue Aug 5 2008 Tom Lane <tgl@redhat.com> 3.51.26r1127-1 +- Update to mysql-connector-odbc 3.51.26r1127 + +* Tue Mar 25 2008 Tom Lane <tgl@redhat.com> 3.51.24r1071-1 +- Update to mysql-connector-odbc 3.51.24r1071 + +* Tue Feb 12 2008 Tom Lane <tgl@redhat.com> 3.51.23r998-1 +- Update to mysql-connector-odbc 3.51.23r998 + +* Wed Dec 5 2007 Tom Lane <tgl@redhat.com> 3.51.14r248-3 +- Rebuild for new openssl + +* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 3.51.14r248-2 +- Update License tag to match code. + +* Fri Apr 20 2007 Tom Lane <tgl@redhat.com> 3.51.14r248-1 +- Update to mysql-connector-odbc 3.51.14r248 +Resolves: #236473 +- Fix build problem on multilib machines + +* Mon Jul 17 2006 Tom Lane <tgl@redhat.com> 3.51.12-2.2 +- rebuild + +* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 3.51.12-2 +- Remove DLL-unload cleanup call from connection shutdown (bz#185343) + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.51.12-1.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.51.12-1.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Fri Nov 11 2005 Tom Lane <tgl@redhat.com> 3.51.12-1 +- New package replacing MyODBC. diff --git a/unixodbc23/postgresql-odbc.spec.diff b/unixodbc23/postgresql-odbc.spec.diff new file mode 100644 index 0000000..87b939a --- /dev/null +++ b/unixodbc23/postgresql-odbc.spec.diff @@ -0,0 +1,49 @@ +--- postgresql-odbc.spec.nodsc 2010-03-15 17:01:43.000000000 +0100 ++++ postgresql-odbc.spec 2011-12-06 15:46:52.131950657 +0100 +@@ -1,7 +1,14 @@ +-Name: postgresql-odbc ++# Sets %%pkg_name to 'postgresql-odbc' if we build for scl. ++%{?scl:%scl_package postgresql-odbc} ++# If we don't build for scl, then pkg_name is empty. ++# This way, we can always use %%pkg_name for 'postgresql-odbc', be it scl build or not. ++%{!?scl:%global pkg_name postgresql-odbc} ++# %%{name} then references to either 'postgresql-odbc' (not in scl) or '%%{?scl:%scl_prefix}postgresql-odbc' (in scl). ++ ++Name: %{?scl_prefix}postgresql-odbc + Summary: PostgreSQL ODBC driver + Version: 08.04.0200 +-Release: 1%{?dist} ++Release: 2%{?dist} + License: LGPLv2+ + Group: Applications/Databases + URL: http://psqlodbc.projects.postgresql.org/ +@@ -22,7 +29,7 @@ Source0: psqlodbc-%{version}.tar.gz + Source1: acinclude.m4 + + Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root +-BuildRequires: unixODBC-devel ++BuildRequires: %{?scl:%scl_prefix}unixODBC-devel + BuildRequires: libtool automake autoconf postgresql-devel + BuildRequires: openssl-devel krb5-devel pam-devel zlib-devel readline-devel + +@@ -52,7 +59,10 @@ autoheader + + %build + ++echo %scl ++%{?scl:scl enable %scl - << \EOF} + %configure --with-unixodbc --disable-dependency-tracking ++%{?scl:EOF} + + make + +@@ -81,6 +91,9 @@ rm -rf $RPM_BUILD_ROOT + %doc license.txt readme.txt docs/* + + %changelog ++* Tue Dec 06 2011 Honza Horak <hhorak@redhat.com> 08.04.0200-2 ++- Enable building in scl ++ + * Mon Mar 15 2010 Tom Lane <tgl@redhat.com> 08.04.0200-1 + - Update to version 08.04.0200 + Resolves: #568900 diff --git a/unixodbc23/postgresql-odbc.spec.nodsc b/unixodbc23/postgresql-odbc.spec.nodsc new file mode 100644 index 0000000..4679bb5 --- /dev/null +++ b/unixodbc23/postgresql-odbc.spec.nodsc @@ -0,0 +1,207 @@ +Name: postgresql-odbc +Summary: PostgreSQL ODBC driver +Version: 08.04.0200 +Release: 1%{?dist} +License: LGPLv2+ +Group: Applications/Databases +URL: http://psqlodbc.projects.postgresql.org/ + +# Upstream has a mirror redirector for downloads, so the URL is hard to +# represent statically. You can get the tarball by following a link from +# http://www.postgresql.org/ftp/odbc/versions/src/ +Source0: psqlodbc-%{version}.tar.gz +# CAUTION: acinclude.m4 has to be kept in sync with package's aclocal.m4. +# This is a kluge that ought to go away, but upstream currently isn't +# shipping their custom macros anywhere except in aclocal.m4. (The macros +# actually come from the Postgres source tree, but we haven't got that +# available while building this RPM.) To generate: in psqlodbc source tree, +# aclocal -I . -I $PGSRC/config +# then strip aclocal.m4 down to just the PGAC macros. +# BUT: as of 08.04.0200, configure.ac hasn't been updated to use PG8.4 +# macros, so keep using the previous version of acinclude.m4. +Source1: acinclude.m4 + +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: unixODBC-devel +BuildRequires: libtool automake autoconf postgresql-devel +BuildRequires: openssl-devel krb5-devel pam-devel zlib-devel readline-devel + +Requires: postgresql-libs >= 8.0 + +# This spec file and ancillary files are licensed in accordance with +# the psqlodbc license. + +%description +This package includes the driver needed for applications to access a +PostgreSQL system via ODBC (Open Database Connectivity). + +%prep +%setup -q -n psqlodbc-%{version} + +# Some missing macros. Courtesy Owen Taylor <otaylor@redhat.com>. +cp -p %{SOURCE1} . + +# Use build system's libtool.m4, not the one in the package. +rm -f libtool.m4 + +libtoolize --force --copy +aclocal -I . +automake --add-missing --copy +autoconf +autoheader + +%build + +%configure --with-unixodbc --disable-dependency-tracking + +make + +%install +rm -rf $RPM_BUILD_ROOT + +%makeinstall + +# Provide the old library name "psqlodbc.so" as a symlink, +# and remove the rather useless .la file +pushd ${RPM_BUILD_ROOT}%{_libdir} + ln -s psqlodbcw.so psqlodbc.so + rm psqlodbcw.la +popd + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%attr(755,root,root) %{_libdir}/psqlodbcw.so +%{_libdir}/psqlodbc.so +%doc license.txt readme.txt docs/* + +%changelog +* Mon Mar 15 2010 Tom Lane <tgl@redhat.com> 08.04.0200-1 +- Update to version 08.04.0200 +Resolves: #568900 + +* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 08.04.0100-3 +- Correct Source0: tag and comment to reflect how to get the tarball + +* Mon Nov 23 2009 Dennis Gregorovic <dgregor@redhat.com> - 08.04.0100-2.1 +- Rebuilt for RHEL 6 + +* Fri Aug 28 2009 Tom Lane <tgl@redhat.com> 08.04.0100-2 +- Rebuild with new openssl + +* Tue Aug 18 2009 Tom Lane <tgl@redhat.com> 08.04.0100-1 +- Update to version 08.04.0100 + +* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 08.03.0200-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 08.03.0200-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 Tom Lane <tgl@redhat.com> 08.03.0200-2 +- Rebuild for unixODBC 2.2.14. + +* Tue Aug 5 2008 Tom Lane <tgl@redhat.com> 08.03.0200-1 +- Update to version 08.03.0200 + +* Tue Feb 12 2008 Tom Lane <tgl@redhat.com> 08.03.0100-1 +- Update to version 08.03.0100 +- Since it looks like upstream has decided to stick with psqlodbcw.so + permanently, allow the library to have that name. But continue to + provide psqlodbc.so as a symlink. + +* Fri Nov 2 2007 Tom Lane <tgl@redhat.com> 08.02.0500-1 +- Update to version 08.02.0500 + +* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 08.02.0200-2 +- Update License tag to match code. + +* Wed Apr 25 2007 Tom Lane <tgl@redhat.com> 08.02.0200-1 +- Update to version 08.02.0200 + +* Mon Dec 11 2006 Tom Lane <tgl@redhat.com> 08.01.0200-4 +- Rebuild for new Postgres libraries + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 08.01.0200-3.1 +- rebuild + +* Sat Jun 10 2006 Tom Lane <tgl@redhat.com> 08.01.0200-3 +- Fix BuildRequires: for mock build environment + +* Wed Mar 22 2006 Tom Lane <tgl@redhat.com> 08.01.0200-2 +- Change library name back to psqlodbc.so, because it appears that upstream + will revert to that name in next release; no point in thrashing the name. +- Include documentation files unaccountably omitted before (bug #184158) + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 08.01.0200-1.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 08.01.0200-1.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Feb 3 2006 Tom Lane <tgl@redhat.com> 08.01.0200-1 +- Update to version 08.01.0200. +- Upstream now calls the library psqlodbcw.so ... add a symlink to avoid + breaking existing odbc configuration files. + +* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 08.01.0102-1 +- Update to version 08.01.0102. +- Add buildrequires postgresql-devel (bz #174505) + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Mon Nov 7 2005 Tom Lane <tgl@redhat.com> 08.01.0100-1 +- Update to version 08.01.0100. + +* Wed Mar 2 2005 Tom Lane <tgl@redhat.com> 08.00.0100-1 +- Update to version 08.00.0100. + +* Fri Nov 12 2004 Tom Lane <tgl@redhat.com> 7.3-9 +- back-port 64-bit fixes from current upstream (bug #139004) + +* Tue Sep 21 2004 Tom Lane <tgl@redhat.com> 7.3-8 +- rebuilt + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> +- Correct License: annotation. + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Fri Nov 21 2003 David Jee <djee@redhat.com> 7.3-5 +- rebuild + +* Wed Nov 05 2003 David Jee <djee@redhat.com> 7.3-4 +- import new community version 07.03.0200 + +* Mon Sep 15 2003 Andrew Overholt <overholt@redhat.com> 7.3-3 +- autotools fixes (courtesy Alex Oliva <aoliva@redhat.com> and + Owen Taylor <otaylor@redhat.com>) + +* Tue Jul 08 2003 Andrew Overholt <overholt@redhat.com> 7.3-3 +- allow use with unixODBC (courtesy Troels Arvin) [Bug #97998] + +* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Mon Jun 02 2003 Andrew Overholt <overholt@redhat.com> 7.3-1 +- sync to new community version (07.03.0100 => v7.3, r1) + +* Thu Jan 23 2003 Tim Powers <timp@redhat.com> 1-2 +- rebuild + +* Tue Jan 14 2003 Andrew Overholt <overholt@redhat.com> +- 1-1 +- initial build (just took old package sections) diff --git a/unixodbc23/unixODBC-gui-qt.spec.nodsc b/unixodbc23/unixODBC-gui-qt.spec.nodsc new file mode 100644 index 0000000..aa53460 --- /dev/null +++ b/unixodbc23/unixODBC-gui-qt.spec.nodsc @@ -0,0 +1,120 @@ +# currently we have to pull directly from upstream SVN +%global svn 98 +%global checkout 20120105svn%{svn} + +Summary: Several GUI (Qt) programs and plug-ins for unixODBC +Name: unixODBC-gui-qt +# There has not been a formal upstream release yet and we're not +# sure what the first formal release version number will be, so using 0 +Version: 0 +Release: 0.5.%{checkout}%{?dist} +Group: Applications/Databases +URL: http://sourceforge.net/projects/unixodbc-gui-qt/ +# Programs are GPL, libraries are LGPL +License: GPLv3 and LGPLv3 + +# Source code is available only in SVN by upstream, so using own +# tarball created from the last commit. SVN repository can be found at +# https://unixodbc-gui-qt.svn.sourceforge.net/svnroot/unixodbc-gui-qt +Source: %{name}-%{checkout}.tar.bz2 +Source1: ODBCCreateDataSourceQ4.desktop +Source2: ODBCManageDataSourcesQ4.desktop +Source3: ODBCTestQ4.desktop + +Patch1: unixODBC-gui-qt-qstring.patch +# We'd like to have the same soname version as former unixODBC-kde had +Patch2: unixODBC-gui-qt-so-version-bump.patch + +BuildRequires: qt4-devel qt-assistant-adp-devel +BuildRequires: libtool libtool-ltdl-devel +BuildRequires: unixODBC-devel +BuildRequires: desktop-file-utils + +# Since unixODBC-2.3.0 does not contain GUI tools anymore, we can say +# unixODBC-gui-qt obsoletes all versions of unixODBC-kde before 2.3.0 +Provides: unixODBC-kde = 2.3.0-1 +Obsoletes: unixODBC-kde < 2.3.0-1 + +%description +unixODBC-gui-qt provides several GUI (Qt) programs and plug-ins. + * administrator (program) + * create data source wizard (program) + * test (program) + * installer (plug-in) + * auto test (plug-in) + +%prep +%setup -q -n %{name} +%patch1 -p1 -b .qstring +%patch2 -p1 -b .so-version-bump + +%build +# pick up qt path +export PATH="%{_qt4_bindir}:$PATH" + +make -f Makefile.svn + +%configure \ + --disable-static \ + --enable-ltdllib \ + --with-gnu-ld \ + --with-qt-dir-lib="%{_qt4_libdir}" \ + --with-qt-dir-bin="%{_qt4_bindir}" + +make %{?_smp_mflags} + +%install +# pick up qt path +export PATH="%{_qt4_bindir}:$PATH" + +mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications +mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps + +make DESTDIR=$RPM_BUILD_ROOT install + +# install *.desktop files +desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1} +desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2} +desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE3} + +# install icons used for applications in *.desktop files +install -p -m 644 ODBCDataManagerQ4/ODBC64.xpm \ + $RPM_BUILD_ROOT%{_datadir}/pixmaps/ODBCCreateDataSourceQ4.xpm +install -p -m 644 odbcinstQ4/ODBCManageDataSources64.xpm \ + $RPM_BUILD_ROOT%{_datadir}/pixmaps/ODBCManageDataSourcesQ4.xpm +install -p -m 644 ODBCTestQ4/ODBCTestQ4-48.xpm \ + $RPM_BUILD_ROOT%{_datadir}/pixmaps/ODBCTestQ4.xpm + +# remove unpackaged files from the buildroot +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la + +%files +%doc AUTHORS COPYING ChangeLog NEWS doc GPL.txt LGPL.txt +%{_bindir}/ODBCCreateDataSourceQ4 +%{_bindir}/ODBCManageDataSourcesQ4 +%{_bindir}/ODBCTestQ4 +%{_datadir}/applications/*.desktop +%{_datadir}/pixmaps/* +%{_libdir}/libgtrtstQ*so* +%{_libdir}/libodbcinstQ*so* + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%changelog +* Wed Feb 01 2012 Honza Horak <hhorak@redhat.com> - 0-0.5.20120105svn98 +- desktop files minor fixes + Related: #768986 + +* Tue Jan 10 2012 Tom Lane <tgl@redhat.com> - 0-0.4.20120105svn98 +- minor specfile improvements + +* Thu Jan 05 2012 Honza Horak <hhorak@redhat.com> - 0-0.3.20120105svn98 +- fixed issues found by Package Review process (see #767622) + +* Thu Dec 15 2011 Honza Horak <hhorak@redhat.com> - 0-0.2.20111208svn95 +- add Provides: unixODBC-kde to indicate unixODBC-gui-qt fills the gap after + GUI utils are no longer part of unixODBC + +* Tue Dec 13 2011 Honza Horak <hhorak@redhat.com> - 0-0.1.20111208svn95 +- initial build from svn commit 95 after detachment from unixODBC project diff --git a/unixodbc23/unixODBC.spec.bak b/unixodbc23/unixODBC.spec.bak new file mode 100644 index 0000000..5993cf1 --- /dev/null +++ b/unixodbc23/unixODBC.spec.bak @@ -0,0 +1,535 @@ +# Sets %%pkg_name to 'unixODBC' if we build for scl. +%{?scl:%scl_package unixODBC} +# If we don't build for scl, then pkg_name is empty. +# This way, we can always use %%pkg_name for 'unixODBC', be it scl build or not. +%{!?scl:%global pkg_name unixODBC} +# %%{name} then references to either 'unixODBC' (not in scl) or '%%{?scl:%scl_prefix}unixODBC' (in scl). + +Summary: A complete ODBC driver manager for Linux +Name: %{?scl_prefix}unixODBC +Version: 2.3.1 +Release: 1%{?dist} +Group: System Environment/Libraries +URL: http://www.unixODBC.org/ +# Programs are GPL, libraries are LGPL, except News Server library is GPL. +License: GPLv2+ and LGPLv2+ + +Source: http://www.unixODBC.org/%{pkg_name}-%{version}.tar.gz +Source1: odbcinst.ini +Source4: conffile.h + +Patch1: depcomp.patch +Patch2: multilib-config.patch +Patch3: warning-cleanup.patch +Patch6: export-symbols.patch +Patch7: libtool-config.patch +Patch8: so-version-bump.patch +Patch9: keep-typedefs.patch +Patch10: odbcint64-config.patch +Patch11: enable-items.patch + +Conflicts: iodbc +#BuildRequires: libX11-devel libXt-devel libXext-devel +#BuildRequires: qt4-devel readline-devel +BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex +#BuildRequires: desktop-file-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +%{?scl:Requires:%scl_runtime} + +%description +Install unixODBC if you want to access databases through ODBC. +You will also need the mysql-connector-odbc package if you want to access +a MySQL database, and/or the postgresql-odbc package for PostgreSQL. + +%package devel +Summary: Development files for programs which will use the unixODBC library +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The unixODBC package can be used to access databases through ODBC +drivers. If you want to develop programs that will access data through +ODBC, you need to install this package. + +%prep +%setup -q %{?scl:-n %{pkg_name}-%{version}} +%patch1 -p1 +#%patch2 -p1 # not needed +#%patch3 -p1 # needs change +%patch6 -p1 +#%patch7 -p1 # needs change +#%patch8 -p1 # needs change +%patch9 -p1 +#%patch10 -p1 # applied +#%patch11 -p1 # qt + +#chmod 0644 Drivers/MiniSQL/*.c +#chmod 0644 Drivers/nn/*.c +#chmod 0644 Drivers/template/*.c +#chmod 0644 doc/ProgrammerManual/Tutorial/*.html +#chmod 0644 doc/lst/* +#chmod 0644 include/odbcinst.h + +# Blow away the embedded libtool and replace with build system's libtool. +# (We will use the installed libtool anyway, but this makes sure they match.) +#rm -rf config.guess config.sub install-sh ltmain.sh libltdl +# this hack is so we can build with either libtool 2.2 or 1.5 +#libtoolize --install || libtoolize + +%build +# pick up qt path +#export PATH="%{_qt4_bindir}:$PATH" # not needed anymore +# clean up old moc files +#(cd odbcinstQ4 && rm -f mC*.cpp) # not needed anymore + +#aclocal # needs check +#automake --add-missing # needs check +#autoconf # needs check + +# unixODBC 2.2.14 is not aliasing-safe +CFLAGS="%{optflags} -fno-strict-aliasing" +CXXFLAGS="$CFLAGS" +export CFLAGS CXXFLAGS + +%configure --with-gnu-ld=yes --enable-threads=yes --enable-drivers +make all + +%install +# pick up qt path +#export PATH="%{_qt4_bindir}:$PATH" + +rm -rf $RPM_BUILD_ROOT +#mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications +#mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps + +make DESTDIR=$RPM_BUILD_ROOT install +install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} + +# install *.desktop files +#desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2} + +# package doesn't supply an icon for ODBCConfig, so use the one for DataManager +#cp DataManager/LinuxODBC.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps + +# multilib header hacks +# we only apply this to known Red Hat multilib arches, per bug #181335 +case `uname -i` in + i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 ) + mv $RPM_BUILD_ROOT%{_includedir}/unixodbc_conf.h $RPM_BUILD_ROOT%{_includedir}/unixodbc_conf_`uname -i`.h + rm -f unixodbc_conf.h + sed s/CONFFILE/unixodbc_conf/ %{SOURCE4} >unixodbc_conf.h + install -m 644 unixodbc_conf.h $RPM_BUILD_ROOT%{_includedir} + ;; + *) + ;; +esac + +# remove obsolete Postgres drivers from the package (but not the setup code) +rm -f $RPM_BUILD_ROOT%{_libdir}/libodbcpsql.so* + +# copy text driver documentation into main doc directory +# currently disabled because upstream no longer includes text driver +# mkdir -p doc/Drivers/txt +# cp -pr Drivers/txt/doc/* doc/Drivers/txt + +# don't want to install doc Makefiles as docs +find doc -name 'Makefile*' | xargs rm + +# we do not want to ship static libraries +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a + +# remove unpackaged files from the buildroot +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/libltdl.* +rm -rf $RPM_BUILD_ROOT%{_datadir}/libtool + +# initialize lists of .so files +find $RPM_BUILD_ROOT%{_libdir} -name "*.so.*" | sed "s|^$RPM_BUILD_ROOT||" > base-so-list +find $RPM_BUILD_ROOT%{_libdir} -name "*.so" | sed "s|^$RPM_BUILD_ROOT||" > devel-so-list + +# move these to main package, they're often dlopened... +for lib in libodbc.so libodbcinst.so #libodbcpsqlS.so libodbcmyS.so +do + echo "%{_libdir}/$lib" >> base-so-list + grep -v "/$lib$" devel-so-list > devel-so-list.x + mv -f devel-so-list.x devel-so-list +done + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f base-so-list +%defattr(-,root,root) +%doc README COPYING AUTHORS ChangeLog NEWS doc +%config(noreplace) %{_sysconfdir}/odbc* +%{_bindir}/odbcinst +%{_bindir}/isql +%{_bindir}/dltest +%{_bindir}/iusql +%{_bindir}/odbc_config + +%files devel -f devel-so-list +%defattr(-,root,root) +%{_includedir}/* + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%changelog +* Tue May 4 2010 Tom Lane <tgl@redhat.com> 2.2.14-11 +- Re-add accidentally-removed desktop icon for ODBCConfig +Resolves: #587933 + +* Mon Jan 11 2010 Tom Lane <tgl@redhat.com> 2.2.14-9 +- Sync with Fedora head +- Fix bug preventing drivers from being selected in ODBCConfig +Resolves: #554501 +- Clean up bogosity in multilib stub header support: ia64 should not be + listed (it's not multilib), sparcv9 isn't a possible uname -i output + +* Fri Aug 21 2009 Tom Lane <tgl@redhat.com> 2.2.14-6 +- Switch to building against qt4, not qt3. This means the DataManager, + DataManagerII, and odbctest applications are gone. +Resolves: #514064 +- Use Driver64/Setup64 to eliminate need for hand-adjustment of odbcinst.ini +Resolves: #514688 +- Fix misdeclaration of SQLBIGINT and SQLUBIGINT in generated header files +Resolves: #518623 + +* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.14-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Jun 9 2009 Peter Lemenkov <lemenkov@gmail.com> - 2.2.14-4 +- Properly install *.desktop files +- No need to ship INSTALL in docs +- Use macros instead of hardcoded /usr/share and /usr/include +- fixed permissions on some doc- and src-files +- Almost all rpmlint messages are gone now + +* Sat Jun 06 2009 Dennis Gilmore <dennis@ausil.us> - 2.2.14-3 +- add sparc support to the multilib includes header + +* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 Tom Lane <tgl@redhat.com> 2.2.14-1 +- Update to unixODBC 2.2.14. Note this involves an ABI break and a consequent + soname version bump, because upstream fixed some mistakes in the widths of + some API datatypes for 64-bit platforms. Also, the formerly embedded + mysql, postgresql, and text drivers have been removed. (For mysql and + postgresql, use the separate mysql-connector-odbc and postgresql-odbc + packages, which are far more up to date. The text driver is not currently + shipped by upstream at all, but might get revived as a separate SRPM later.) +- Stop shipping .a library files, per distro policy. +- Fixes for libtool 2.2. + +* Mon Jul 28 2008 Tom Lane <tgl@redhat.com> 2.2.12-9 +- Fix build failure caused by new default patch fuzz = 0 policy in rawhide. + +* Fri Jun 13 2008 Tom Lane <tgl@redhat.com> 2.2.12-8 +- Install icons in /usr/share/pixmaps, not /usr/share/icons as this package + has historically done; the former is considered correct. + +* Fri Apr 4 2008 Tom Lane <tgl@redhat.com> 2.2.12-7 +- Must BuildRequire qt3 now that Fedora has renamed qt4 to qt +Resolves: #440798 + +* Mon Feb 11 2008 Tom Lane <tgl@redhat.com> 2.2.12-6 +- Move libodbcinst.so symlink into main package, since it's often dlopen'd +Related: #204882 +- Clean up specfile's ugly coding for making base-vs-devel decisions + +* Sun Dec 30 2007 Tom Lane <tgl@redhat.com> 2.2.12-5 +- Add missing BuildRequires for flex. +Resolves: #427063 + +* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 2.2.12-4 +- Update License tag to match code. + +* Fri Apr 20 2007 Tom Lane <tgl@redhat.com> 2.2.12-3 +- Make configure find correct Qt libraries when building on a multilib machine + +* Mon Apr 16 2007 Tom Lane <tgl@redhat.com> 2.2.12-2 +- Drop BuildRequires for kdelibs-devel +Resolves: #152717 +- Clean up a few rpmlint complaints + +* Wed Dec 6 2006 Tom Lane <tgl@redhat.com> 2.2.12-1 +- Update to unixODBC 2.2.12. +- Add missing BuildPrereq for bison. +Resolves: #190427 + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.2.11-7.1 +- rebuild + +* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 2.2.11-7 +- Fix minor problems in desktop files (bug #185764) + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.2.11-6.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.2.11-6.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Mon Nov 21 2005 Tom Lane <tgl@redhat.com> 2.2.11-6 +- Patch NO-vs-no discrepancy between aclocal/acinclude and recent autoconf + versions (not sure if this has been broken for a long time, or was just + exposed by modular X changeover). +- Apparently need to require libXt-devel too for modular X. + +* Mon Nov 7 2005 Tom Lane <tgl@redhat.com> 2.2.11-5 +- Adjust BuildPrereq for modular X. + +* Sun Oct 16 2005 Florian La Roche <laroche@redhat.com> 2.2.11-4 +- link against dependent libs +- fix some bugs to resolve unknown symbols ;-( + +* Thu Sep 29 2005 Tom Lane <tgl@redhat.com> 2.2.11-3 +- Force update of yac.h because the copy in the distributed tarball does not + match bison 2.0's numbering of symbols (bz #162676) +- Include documentation of text-file driver +- Use private libltdl so we can omit RTLD_GLOBAL from dlopen flags (bz #161399) + +* Sat Sep 24 2005 Tom Lane <tgl@redhat.com> 2.2.11-2 +- Remove Makefiles accidentally included in docs installation (bz #168819) +- Updates to keep newer libtool code from installing itself as part of package + +* Fri Apr 8 2005 Tom Lane <tgl@redhat.com> 2.2.11-1 +- Update to unixODBC 2.2.11 + +* Mon Mar 7 2005 Tom Lane <tgl@redhat.com> 2.2.10-3 +- Rebuild with gcc4. + +* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 2.2.10-2 +- Rebuilt for new readline. + +* Thu Oct 28 2004 Tom Lane <tgl@redhat.com> 2.2.10-1 +- Update to unixODBC 2.2.10 + +* Wed Sep 22 2004 Tom Lane <tgl@redhat.com> 2.2.9-1 +- Update to unixODBC 2.2.9 + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Sat May 8 2004 Tom Lane <tgl@redhat.com> 2.2.8-5 +- Backpatch fix for double-free error from upstream devel sources. +- rebuilt + +* Wed May 5 2004 Tom Lane <tgl@redhat.com> 2.2.8-4 +- Add dependency to ensure kde subpackage stays in sync with main + (needed because we moved odbctest from one pkg to the other, + cf bug #122478) +- rebuilt + +* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 2.2.8-3 +- Use installed libltdl +- rebuilt for Fedora Core 2 + +* Tue Mar 9 2004 Tom Lane <tgl@redhat.com> 2.2.8-2 +- Rename lo_xxx() to odbc_lo_xxx() (bug #117211) (temporary until 2.2.9) +- rebuilt + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Mon Mar 1 2004 Tom Lane <tgl@redhat.com> +- Update to 2.2.8 +- rebuilt + +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Thu Dec 4 2003 Joe Orton <jorton@redhat.com> 2.2.5-10 +- rebuild to restore sqltypes.h after #111195 + +* Thu Oct 16 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-9 +- Add XFree86-devel to the list of BuildPrereq. Did not bump + release as there is no need to rebuild. + +* Thu Oct 16 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-9 +- Add comments to the /etc/odbcinst.ini file regarding the proper + setup for MySQL and the origin of each library needed. + +* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-8 +- Move libodbcmyS.so to the main package as well. It is used the + same way as libodbcpsqlS.so. + +* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-7 +- Bumped the version so it rebuilds. + +* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-4 +- Revert previous change and special case libodbcpsql.so and + libodbcpsqlS.so instead. Here is the explanation (from Elliot + Lee): + ".so files are only used at link time for normal dynamic libraries. + The libraries referred to here are being used as dynamically loaded + modules, so I guess moving those particular .so files back to the + main package would make sense, but the other .so files should stay + in the devel subpackage." + +* Fri Oct 10 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-3 +- Moved all the shared library symlinks to the main package. + They were deliberatedly being added to the devel package for + unknown reasons but this was forcing users to install the + devel package always. +- No need to special-case libodbc.so anymore + +* Fri Sep 05 2003 Elliot Lee <sopwith@redhat.com> 2.2.5-2 +- Run auto* so it rebuilds. + +* Mon Jul 07 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-1 +- Moved odbctest to the kde package to remove require on Qt stuff + from the main package. +- Removed stray "\" from doc/Makefile.am +- Applied libtool fix (provided by Alex Oliva) so that it build + with cross-compilers (which are used by 64 bit systems) +- Updated sources to the 2.2.5 community release +- Changed the included libtool to the 1.5-3 one so that + it properly link the libraries with the newly generated ones + and not with the ones installed on the build system (or give + an error if an old version is not installed (# 91110) +- Added new files for executable DataManagerII and icons LinuxODBC.xpm + and odbc.xpm + +* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Wed Jan 22 2003 Tim Powers <timp@redhat.com> +- rebuilt + +* Thu Jan 9 2003 Bill Nottingham <notting@redhat.com> 2.2.3-5 +- debloat + +* Tue Dec 17 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-4 +- Run libtoolize etc. + +* Thu Dec 12 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-3 +- Rebuild to fix filelist errors...? + +* Fri Nov 29 2002 Tim Powers <timp@redhat.com> 2.2.3-2 +- remove unpackaged files from the buildroot + +* Tue Nov 19 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-1 +- Rebuild, update to 2.2.3 + +* Mon Aug 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.2-3 +- Move libodbc.so to the main package, so programs dlopening + it don't break (#72653) + +* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> +- rebuilt with gcc-3.2 (we hope) + +* Mon Jul 22 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.2-1 +- 2.2.2 +- desktop file changes (# 69371) + +* Fri Jun 21 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Sun May 26 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Mon May 20 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.1-1 +- 2.2.1 +- Reenable other archs, as this should now build on 64 bit archs + +* Sun May 19 2002 Florian La Roche <Florian.LaRoche@redhat.de> +- add at least mainframe; should this really be a i386-only rpm? + +* Wed Apr 17 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.2.0-5 +- rebuild + +* Fri Apr 5 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.0-4 +- Avoid having files in more than one package (#62755) + +* Tue Mar 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.0-3 +- Don't include kde plugin .so as a devel symlink (#61039) + +* Fri Mar 8 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.2.0-2 +- Rebuild with KDE 3.x + +* Tue Feb 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.0-1 +- Just build on i386 now, there are 64 bit oddities +- 2.2.0 + +* Fri Jan 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.1.1-2 +- move libodbcinstQ* to the kde subpackage + +* Fri Jan 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.1.1-1 +- 2.1.1 +- minor cleanups + +* Fri Dec 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 2.0.7-5 +- Rebuild + +* Wed Sep 12 2001 Tim Powers <timp@redhat.com> +- rebuild with new gcc and binutils + +* Sun Jun 24 2001 Than Ngo <than@redhat.com> +- rebuild against qt-2.3.1, kde-2.1.x + +* Fri Jun 15 2001 Trond Eivind Glomsrd <teg@redhat.com> +- Better default odbcinst.ini +- Minor cleanups + +* Wed Jun 6 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 2.0.7 + +* Wed Apr 25 2001 Trond Eivind Glomsrd <teg@redhat.com> +- Fix for isql segfault on EOF/ctrl-d exit + +* Fri Apr 20 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 2.0.6 +- add patch for 64 bit archs (dword shouldn't be "long int") + +* Wed Feb 28 2001 Trond Eivind Glomsrd <teg@redhat.com> +- rebuild + +* Tue Nov 28 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 1.8.13 + +* Tue Oct 10 2000 Trond Eivind Glomsrd <teg@redhat.com> +- enable GUI now that we have KDE compiled with the standard + compiler +- move the applnk entries to the KDE package + +* Thu Aug 24 2000 Nalin Dahyabhai <nalin@redhat.com> +- add the missing shared libs to the non-devel package + +* Wed Aug 23 2000 Preston Brown <pbrown@redhat.com> +- 1.8.12 fixes problems with the postgresql driver + +* Mon Jul 31 2000 Trond Eivind Glomsrd <teg@redhat.com> +- disable KDE subpackage to avoid the mess that is C++ binary + compatibility + +* Wed Jul 12 2000 Prospector <bugzilla@redhat.com> +- automatic rebuild + +* Fri Jun 30 2000 Florian La Roche <laroche@redhat.com> +- improved QTDIR detection + +* Thu Jun 28 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 1.8.10 +- use %%{_tmppath} +- update URL +- including two missing libraries + +* Tue Jun 13 2000 Preston Brown <pbrown@redhat.com> +- 1.8.9 + +* Fri Jun 09 2000 Preston Brown <pbrown@redhat.com> +- adopted for Winston, changed to Red Hat packaging standards + +* Tue Apr 18 2000 Murray Todd Williams <murray@codingapes.com> +- added a unixODBC-devel RPM to the group, added KDE links and icons to system +- all of which came from recommendations from Fredrick Meunier +- <Fredrick.Meunier@computershare.com.au> + +* Mon Apr 17 2000 Murray Todd Williams <murray@codingapes.com> +- unixODBC-1.8.7 +- moved install to $RPM_BUILD_ROOT so it didn't overrun existing files. diff --git a/unixodbc23/unixODBC.spec.diff b/unixodbc23/unixODBC.spec.diff new file mode 100644 index 0000000..79d3443 --- /dev/null +++ b/unixodbc23/unixODBC.spec.diff @@ -0,0 +1,93 @@ +--- unixODBC.spec.nodsc 2012-06-06 10:17:10.752568671 +0200 ++++ unixODBC.spec 2012-06-06 10:24:35.395122156 +0200 +@@ -1,5 +1,8 @@ ++%{?scl:%scl_package unixODBC} ++%{!?scl:%global pkg_name unixODBC} ++ + Summary: A complete ODBC driver manager for Linux +-Name: unixODBC ++Name: %{?scl_prefix}unixODBC + Version: 2.3.1 + Release: 1%{?dist} + Group: System Environment/Libraries +@@ -7,7 +10,7 @@ URL: http://www.unixODBC.org/ + # Programs are GPL, libraries are LGPL, except News Server library is GPL. + License: GPLv2+ and LGPLv2+ + +-Source: http://www.unixODBC.org/%{name}-%{version}.tar.gz ++Source: http://www.unixODBC.org/%{pkg_name}-%{version}.tar.gz + Source1: odbcinst.ini + Source4: conffile.h + Source5: README.fedora +@@ -17,12 +20,12 @@ Patch6: export-symbols.patch + Patch8: so-version-bump.patch + Patch9: keep-typedefs.patch + +-Conflicts: iodbc ++Conflicts: %{?scl_prefix}iodbc + + BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex + BuildRequires: readline-devel + +-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root ++%{?scl:Requires:%scl_runtime} + + %description + Install unixODBC if you want to access databases through ODBC. +@@ -40,7 +43,7 @@ drivers. If you want to develop programs + ODBC, you need to install this package. + + %prep +-%setup -q ++%setup -q %{?scl:-n %{pkg_name}-%{version}} + %patch1 -p1 + %patch6 -p1 + %patch8 -p1 +@@ -75,10 +78,34 @@ export CFLAGS CXXFLAGS + make all + + %install +-rm -rf $RPM_BUILD_ROOT +- + make DESTDIR=$RPM_BUILD_ROOT install +-install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} ++ ++# we need to pass right path prefix to libraries in odbcinst.ini, ++# the easiest way how to achieve this is to generate the file here ++cat > $RPM_BUILD_ROOT%{_sysconfdir}/odbcinst.ini << EOF ++# Example driver definitions ++ ++# Driver from the postgresql-odbc package ++# Setup from the unixODBC package ++[PostgreSQL] ++Description = ODBC for PostgreSQL ++Driver = %{_prefix}/lib/psqlodbc.so ++Setup = %{_prefix}/lib/libodbcpsqlS.so ++Driver64 = %{_prefix}/lib64/psqlodbc.so ++Setup64 = %{_prefix}/lib64/libodbcpsqlS.so ++FileUsage = 1 ++ ++ ++# Driver from the mysql-connector-odbc package ++# Setup from the unixODBC package ++[MySQL] ++Description = ODBC for MySQL ++Driver = %{_prefix}/lib/libmyodbc5.so ++Setup = %{_prefix}/lib/libodbcmyS.so ++Driver64 = %{_prefix}/lib64/libmyodbc5.so ++Setup64 = %{_prefix}/lib64/libodbcmyS.so ++FileUsage = 1 ++EOF + + # multilib header hacks + # we only apply this to known Red Hat multilib arches, per bug #181335 +@@ -127,9 +154,6 @@ do + mv -f devel-so-list.x devel-so-list + done + +-%clean +-rm -rf $RPM_BUILD_ROOT +- + %files -f base-so-list + %defattr(-,root,root) + %doc README COPYING AUTHORS ChangeLog NEWS doc diff --git a/unixodbc23/unixODBC.spec.dscold b/unixodbc23/unixODBC.spec.dscold new file mode 100644 index 0000000..c209e8f --- /dev/null +++ b/unixodbc23/unixODBC.spec.dscold @@ -0,0 +1,523 @@ +%{?scl:%scl_package unixODBC} +%{!?scl:%global pkg_name unixODBC} + +Summary: A complete ODBC driver manager for Linux +Name: %{?scl_prefix}unixODBC +Version: 2.3.1 +Release: 1%{?dist} +Group: System Environment/Libraries +URL: http://www.unixODBC.org/ +# Programs are GPL, libraries are LGPL, except News Server library is GPL. +License: GPLv2+ and LGPLv2+ + +Source: http://www.unixODBC.org/%{pkg_name}-%{version}.tar.gz +Source4: conffile.h + +Patch1: depcomp.patch +Patch3: warning-cleanup.patch +Patch6: export-symbols.patch +Patch8: so-version-bump.patch +Patch9: keep-typedefs.patch + +Conflicts: iodbc +BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex + +%{?scl:Requires:%scl_runtime} + +%description +Install unixODBC if you want to access databases through ODBC. +You will also need the mysql-connector-odbc package if you want to access +a MySQL database, and/or the postgresql-odbc package for PostgreSQL. + +%package devel +Summary: Development files for programs which will use the unixODBC library +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The unixODBC package can be used to access databases through ODBC +drivers. If you want to develop programs that will access data through +ODBC, you need to install this package. + +%prep +%setup -q %{?scl:-n %{pkg_name}-%{version}} +%patch1 -p1 +%patch3 -p1 -b .warning-cleanup +%patch6 -p1 +%patch8 -p1 +%patch9 -p1 + +chmod 0644 Drivers/MiniSQL/*.c +chmod 0644 Drivers/nn/*.c +chmod 0644 Drivers/template/*.c +chmod 0644 doc/ProgrammerManual/Tutorial/*.html +chmod 0644 doc/lst/* +chmod 0644 include/odbcinst.h + +# Blow away the embedded libtool and replace with build system's libtool. +# (We will use the installed libtool anyway, but this makes sure they match.) +rm -rf config.guess config.sub install-sh ltmain.sh libltdl +# this hack is so we can build with either libtool 2.2 or 1.5 +libtoolize --install || libtoolize + +%build + +aclocal +automake --add-missing +autoconf + +# unixODBC 2.2.14 is not aliasing-safe +CFLAGS="%{optflags} -fno-strict-aliasing" +CXXFLAGS="$CFLAGS" +export CFLAGS CXXFLAGS + +%configure --with-gnu-ld=yes --enable-threads=yes --enable-drivers --enable-driverc=yes +make all + +%install +make DESTDIR=$RPM_BUILD_ROOT install + +# we need to pass right path prefix to libraries in odbcinst.ini, +# the easiest way how to achieve this is to generate the file here +cat > $RPM_BUILD_ROOT%{_sysconfdir}/odbcinst.ini << EOF +# Example driver definitions + +# Driver from the postgresql-odbc package +# Setup from the unixODBC package +[PostgreSQL] +Description = ODBC for PostgreSQL +Driver = %{_prefix}/lib/psqlodbc.so +Setup = %{_prefix}/lib/libodbcpsqlS.so +Driver64 = %{_prefix}/lib64/psqlodbc.so +Setup64 = %{_prefix}/lib64/libodbcpsqlS.so +FileUsage = 1 + + +# Driver from the mysql-connector-odbc package +# Setup from the unixODBC package +[MySQL] +Description = ODBC for MySQL +Driver = %{_prefix}/lib/libmyodbc5.so +Setup = %{_prefix}/lib/libodbcmyS.so +Driver64 = %{_prefix}/lib64/libmyodbc5.so +Setup64 = %{_prefix}/lib64/libodbcmyS.so +FileUsage = 1 +EOF + +# multilib header hacks +# we only apply this to known Red Hat multilib arches, per bug #181335 +case `uname -i` in + i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 ) + mv $RPM_BUILD_ROOT%{_includedir}/unixodbc_conf.h $RPM_BUILD_ROOT%{_includedir}/unixodbc_conf_`uname -i`.h + rm -f unixodbc_conf.h + sed s/CONFFILE/unixodbc_conf/ %{SOURCE4} >unixodbc_conf.h + install -m 644 unixodbc_conf.h $RPM_BUILD_ROOT%{_includedir} + ;; + *) + ;; +esac + +# remove obsolete Postgres drivers from the package (but not the setup code) +rm -f $RPM_BUILD_ROOT%{_libdir}/libodbcpsql.so* + +# don't want to install doc Makefiles as docs +find doc -name 'Makefile*' | xargs rm + +# we do not want to ship static libraries +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a + +# remove unpackaged files from the buildroot +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/libltdl.* +rm -rf $RPM_BUILD_ROOT%{_datadir}/libtool + +# initialize lists of .so files +find $RPM_BUILD_ROOT%{_libdir} -name "*.so.*" | sed "s|^$RPM_BUILD_ROOT||" > base-so-list +find $RPM_BUILD_ROOT%{_libdir} -name "*.so" | sed "s|^$RPM_BUILD_ROOT||" > devel-so-list + +# move these to main package, they're often dlopened... +for lib in libodbc.so libodbcinst.so libodbcpsqlS.so libodbcmyS.so +do + echo "%{_libdir}/$lib" >> base-so-list + grep -v "/$lib$" devel-so-list > devel-so-list.x + mv -f devel-so-list.x devel-so-list +done + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f base-so-list +%defattr(-,root,root) +%doc README COPYING AUTHORS ChangeLog NEWS doc +%config(noreplace) %{_sysconfdir}/odbc* +%{_bindir}/odbcinst +%{_bindir}/isql +%{_bindir}/dltest +%{_bindir}/iusql +%{_bindir}/odbc_config + +%files devel -f devel-so-list +%defattr(-,root,root) +%{_includedir}/* + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%changelog +* Tue May 4 2010 Tom Lane <tgl@redhat.com> 2.2.14-11 +- Re-add accidentally-removed desktop icon for ODBCConfig +Resolves: #587933 + +* Mon Jan 11 2010 Tom Lane <tgl@redhat.com> 2.2.14-9 +- Sync with Fedora head +- Fix bug preventing drivers from being selected in ODBCConfig +Resolves: #554501 +- Clean up bogosity in multilib stub header support: ia64 should not be + listed (it's not multilib), sparcv9 isn't a possible uname -i output + +* Fri Aug 21 2009 Tom Lane <tgl@redhat.com> 2.2.14-6 +- Switch to building against qt4, not qt3. This means the DataManager, + DataManagerII, and odbctest applications are gone. +Resolves: #514064 +- Use Driver64/Setup64 to eliminate need for hand-adjustment of odbcinst.ini +Resolves: #514688 +- Fix misdeclaration of SQLBIGINT and SQLUBIGINT in generated header files +Resolves: #518623 + +* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.14-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Jun 9 2009 Peter Lemenkov <lemenkov@gmail.com> - 2.2.14-4 +- Properly install *.desktop files +- No need to ship INSTALL in docs +- Use macros instead of hardcoded /usr/share and /usr/include +- fixed permissions on some doc- and src-files +- Almost all rpmlint messages are gone now + +* Sat Jun 06 2009 Dennis Gilmore <dennis@ausil.us> - 2.2.14-3 +- add sparc support to the multilib includes header + +* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 Tom Lane <tgl@redhat.com> 2.2.14-1 +- Update to unixODBC 2.2.14. Note this involves an ABI break and a consequent + soname version bump, because upstream fixed some mistakes in the widths of + some API datatypes for 64-bit platforms. Also, the formerly embedded + mysql, postgresql, and text drivers have been removed. (For mysql and + postgresql, use the separate mysql-connector-odbc and postgresql-odbc + packages, which are far more up to date. The text driver is not currently + shipped by upstream at all, but might get revived as a separate SRPM later.) +- Stop shipping .a library files, per distro policy. +- Fixes for libtool 2.2. + +* Mon Jul 28 2008 Tom Lane <tgl@redhat.com> 2.2.12-9 +- Fix build failure caused by new default patch fuzz = 0 policy in rawhide. + +* Fri Jun 13 2008 Tom Lane <tgl@redhat.com> 2.2.12-8 +- Install icons in /usr/share/pixmaps, not /usr/share/icons as this package + has historically done; the former is considered correct. + +* Fri Apr 4 2008 Tom Lane <tgl@redhat.com> 2.2.12-7 +- Must BuildRequire qt3 now that Fedora has renamed qt4 to qt +Resolves: #440798 + +* Mon Feb 11 2008 Tom Lane <tgl@redhat.com> 2.2.12-6 +- Move libodbcinst.so symlink into main package, since it's often dlopen'd +Related: #204882 +- Clean up specfile's ugly coding for making base-vs-devel decisions + +* Sun Dec 30 2007 Tom Lane <tgl@redhat.com> 2.2.12-5 +- Add missing BuildRequires for flex. +Resolves: #427063 + +* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 2.2.12-4 +- Update License tag to match code. + +* Fri Apr 20 2007 Tom Lane <tgl@redhat.com> 2.2.12-3 +- Make configure find correct Qt libraries when building on a multilib machine + +* Mon Apr 16 2007 Tom Lane <tgl@redhat.com> 2.2.12-2 +- Drop BuildRequires for kdelibs-devel +Resolves: #152717 +- Clean up a few rpmlint complaints + +* Wed Dec 6 2006 Tom Lane <tgl@redhat.com> 2.2.12-1 +- Update to unixODBC 2.2.12. +- Add missing BuildPrereq for bison. +Resolves: #190427 + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.2.11-7.1 +- rebuild + +* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 2.2.11-7 +- Fix minor problems in desktop files (bug #185764) + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.2.11-6.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.2.11-6.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Mon Nov 21 2005 Tom Lane <tgl@redhat.com> 2.2.11-6 +- Patch NO-vs-no discrepancy between aclocal/acinclude and recent autoconf + versions (not sure if this has been broken for a long time, or was just + exposed by modular X changeover). +- Apparently need to require libXt-devel too for modular X. + +* Mon Nov 7 2005 Tom Lane <tgl@redhat.com> 2.2.11-5 +- Adjust BuildPrereq for modular X. + +* Sun Oct 16 2005 Florian La Roche <laroche@redhat.com> 2.2.11-4 +- link against dependent libs +- fix some bugs to resolve unknown symbols ;-( + +* Thu Sep 29 2005 Tom Lane <tgl@redhat.com> 2.2.11-3 +- Force update of yac.h because the copy in the distributed tarball does not + match bison 2.0's numbering of symbols (bz #162676) +- Include documentation of text-file driver +- Use private libltdl so we can omit RTLD_GLOBAL from dlopen flags (bz #161399) + +* Sat Sep 24 2005 Tom Lane <tgl@redhat.com> 2.2.11-2 +- Remove Makefiles accidentally included in docs installation (bz #168819) +- Updates to keep newer libtool code from installing itself as part of package + +* Fri Apr 8 2005 Tom Lane <tgl@redhat.com> 2.2.11-1 +- Update to unixODBC 2.2.11 + +* Mon Mar 7 2005 Tom Lane <tgl@redhat.com> 2.2.10-3 +- Rebuild with gcc4. + +* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 2.2.10-2 +- Rebuilt for new readline. + +* Thu Oct 28 2004 Tom Lane <tgl@redhat.com> 2.2.10-1 +- Update to unixODBC 2.2.10 + +* Wed Sep 22 2004 Tom Lane <tgl@redhat.com> 2.2.9-1 +- Update to unixODBC 2.2.9 + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Sat May 8 2004 Tom Lane <tgl@redhat.com> 2.2.8-5 +- Backpatch fix for double-free error from upstream devel sources. +- rebuilt + +* Wed May 5 2004 Tom Lane <tgl@redhat.com> 2.2.8-4 +- Add dependency to ensure kde subpackage stays in sync with main + (needed because we moved odbctest from one pkg to the other, + cf bug #122478) +- rebuilt + +* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 2.2.8-3 +- Use installed libltdl +- rebuilt for Fedora Core 2 + +* Tue Mar 9 2004 Tom Lane <tgl@redhat.com> 2.2.8-2 +- Rename lo_xxx() to odbc_lo_xxx() (bug #117211) (temporary until 2.2.9) +- rebuilt + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Mon Mar 1 2004 Tom Lane <tgl@redhat.com> +- Update to 2.2.8 +- rebuilt + +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Thu Dec 4 2003 Joe Orton <jorton@redhat.com> 2.2.5-10 +- rebuild to restore sqltypes.h after #111195 + +* Thu Oct 16 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-9 +- Add XFree86-devel to the list of BuildPrereq. Did not bump + release as there is no need to rebuild. + +* Thu Oct 16 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-9 +- Add comments to the /etc/odbcinst.ini file regarding the proper + setup for MySQL and the origin of each library needed. + +* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-8 +- Move libodbcmyS.so to the main package as well. It is used the + same way as libodbcpsqlS.so. + +* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-7 +- Bumped the version so it rebuilds. + +* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-4 +- Revert previous change and special case libodbcpsql.so and + libodbcpsqlS.so instead. Here is the explanation (from Elliot + Lee): + ".so files are only used at link time for normal dynamic libraries. + The libraries referred to here are being used as dynamically loaded + modules, so I guess moving those particular .so files back to the + main package would make sense, but the other .so files should stay + in the devel subpackage." + +* Fri Oct 10 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-3 +- Moved all the shared library symlinks to the main package. + They were deliberatedly being added to the devel package for + unknown reasons but this was forcing users to install the + devel package always. +- No need to special-case libodbc.so anymore + +* Fri Sep 05 2003 Elliot Lee <sopwith@redhat.com> 2.2.5-2 +- Run auto* so it rebuilds. + +* Mon Jul 07 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-1 +- Moved odbctest to the kde package to remove require on Qt stuff + from the main package. +- Removed stray "\" from doc/Makefile.am +- Applied libtool fix (provided by Alex Oliva) so that it build + with cross-compilers (which are used by 64 bit systems) +- Updated sources to the 2.2.5 community release +- Changed the included libtool to the 1.5-3 one so that + it properly link the libraries with the newly generated ones + and not with the ones installed on the build system (or give + an error if an old version is not installed (# 91110) +- Added new files for executable DataManagerII and icons LinuxODBC.xpm + and odbc.xpm + +* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Wed Jan 22 2003 Tim Powers <timp@redhat.com> +- rebuilt + +* Thu Jan 9 2003 Bill Nottingham <notting@redhat.com> 2.2.3-5 +- debloat + +* Tue Dec 17 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-4 +- Run libtoolize etc. + +* Thu Dec 12 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-3 +- Rebuild to fix filelist errors...? + +* Fri Nov 29 2002 Tim Powers <timp@redhat.com> 2.2.3-2 +- remove unpackaged files from the buildroot + +* Tue Nov 19 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-1 +- Rebuild, update to 2.2.3 + +* Mon Aug 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.2-3 +- Move libodbc.so to the main package, so programs dlopening + it don't break (#72653) + +* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> +- rebuilt with gcc-3.2 (we hope) + +* Mon Jul 22 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.2-1 +- 2.2.2 +- desktop file changes (# 69371) + +* Fri Jun 21 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Sun May 26 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Mon May 20 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.1-1 +- 2.2.1 +- Reenable other archs, as this should now build on 64 bit archs + +* Sun May 19 2002 Florian La Roche <Florian.LaRoche@redhat.de> +- add at least mainframe; should this really be a i386-only rpm? + +* Wed Apr 17 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.2.0-5 +- rebuild + +* Fri Apr 5 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.0-4 +- Avoid having files in more than one package (#62755) + +* Tue Mar 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.0-3 +- Don't include kde plugin .so as a devel symlink (#61039) + +* Fri Mar 8 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.2.0-2 +- Rebuild with KDE 3.x + +* Tue Feb 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.0-1 +- Just build on i386 now, there are 64 bit oddities +- 2.2.0 + +* Fri Jan 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.1.1-2 +- move libodbcinstQ* to the kde subpackage + +* Fri Jan 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.1.1-1 +- 2.1.1 +- minor cleanups + +* Fri Dec 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 2.0.7-5 +- Rebuild + +* Wed Sep 12 2001 Tim Powers <timp@redhat.com> +- rebuild with new gcc and binutils + +* Sun Jun 24 2001 Than Ngo <than@redhat.com> +- rebuild against qt-2.3.1, kde-2.1.x + +* Fri Jun 15 2001 Trond Eivind Glomsrd <teg@redhat.com> +- Better default odbcinst.ini +- Minor cleanups + +* Wed Jun 6 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 2.0.7 + +* Wed Apr 25 2001 Trond Eivind Glomsrd <teg@redhat.com> +- Fix for isql segfault on EOF/ctrl-d exit + +* Fri Apr 20 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 2.0.6 +- add patch for 64 bit archs (dword shouldn't be "long int") + +* Wed Feb 28 2001 Trond Eivind Glomsrd <teg@redhat.com> +- rebuild + +* Tue Nov 28 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 1.8.13 + +* Tue Oct 10 2000 Trond Eivind Glomsrd <teg@redhat.com> +- enable GUI now that we have KDE compiled with the standard + compiler +- move the applnk entries to the KDE package + +* Thu Aug 24 2000 Nalin Dahyabhai <nalin@redhat.com> +- add the missing shared libs to the non-devel package + +* Wed Aug 23 2000 Preston Brown <pbrown@redhat.com> +- 1.8.12 fixes problems with the postgresql driver + +* Mon Jul 31 2000 Trond Eivind Glomsrd <teg@redhat.com> +- disable KDE subpackage to avoid the mess that is C++ binary + compatibility + +* Wed Jul 12 2000 Prospector <bugzilla@redhat.com> +- automatic rebuild + +* Fri Jun 30 2000 Florian La Roche <laroche@redhat.com> +- improved QTDIR detection + +* Thu Jun 28 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 1.8.10 +- use %%{_tmppath} +- update URL +- including two missing libraries + +* Tue Jun 13 2000 Preston Brown <pbrown@redhat.com> +- 1.8.9 + +* Fri Jun 09 2000 Preston Brown <pbrown@redhat.com> +- adopted for Winston, changed to Red Hat packaging standards + +* Tue Apr 18 2000 Murray Todd Williams <murray@codingapes.com> +- added a unixODBC-devel RPM to the group, added KDE links and icons to system +- all of which came from recommendations from Fredrick Meunier +- <Fredrick.Meunier@computershare.com.au> + +* Mon Apr 17 2000 Murray Todd Williams <murray@codingapes.com> +- unixODBC-1.8.7 +- moved install to $RPM_BUILD_ROOT so it didn't overrun existing files. diff --git a/unixodbc23/unixODBC.spec.nodsc b/unixodbc23/unixODBC.spec.nodsc new file mode 100644 index 0000000..47bfab6 --- /dev/null +++ b/unixodbc23/unixODBC.spec.nodsc @@ -0,0 +1,528 @@ +Summary: A complete ODBC driver manager for Linux +Name: unixODBC +Version: 2.3.1 +Release: 1%{?dist} +Group: System Environment/Libraries +URL: http://www.unixODBC.org/ +# Programs are GPL, libraries are LGPL, except News Server library is GPL. +License: GPLv2+ and LGPLv2+ + +Source: http://www.unixODBC.org/%{name}-%{version}.tar.gz +Source1: odbcinst.ini +Source4: conffile.h +Source5: README.fedora + +Patch1: depcomp.patch +Patch6: export-symbols.patch +Patch8: so-version-bump.patch +Patch9: keep-typedefs.patch + +Conflicts: iodbc + +BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex +BuildRequires: readline-devel + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +%description +Install unixODBC if you want to access databases through ODBC. +You will also need the mysql-connector-odbc package if you want to access +a MySQL database, and/or the postgresql-odbc package for PostgreSQL. + +%package devel +Summary: Development files for programs which will use the unixODBC library +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The unixODBC package can be used to access databases through ODBC +drivers. If you want to develop programs that will access data through +ODBC, you need to install this package. + +%prep +%setup -q +%patch1 -p1 +%patch6 -p1 +%patch8 -p1 +%patch9 -p1 + +chmod 0644 Drivers/MiniSQL/*.c +chmod 0644 Drivers/nn/*.c +chmod 0644 Drivers/template/*.c +chmod 0644 doc/ProgrammerManual/Tutorial/*.html +chmod 0644 doc/lst/* +chmod 0644 include/odbcinst.h + +# Blow away the embedded libtool and replace with build system's libtool. +# (We will use the installed libtool anyway, but this makes sure they match.) +rm -rf config.guess config.sub install-sh ltmain.sh libltdl +# this hack is so we can build with either libtool 2.2 or 1.5 +libtoolize --install || libtoolize + +%build + +aclocal +automake --add-missing +autoconf + +# unixODBC 2.2.14 is not aliasing-safe +CFLAGS="%{optflags} -fno-strict-aliasing" +CXXFLAGS="$CFLAGS" +export CFLAGS CXXFLAGS + +%configure --with-gnu-ld=yes --enable-threads=yes \ + --enable-drivers=yes --enable-driverc=yes --enable-ltdllib +make all + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install +install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} + +# multilib header hacks +# we only apply this to known Red Hat multilib arches, per bug #181335 +case `uname -i` in + i386 | x86_64 | ia64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 ) + mv $RPM_BUILD_ROOT%{_includedir}/unixodbc_conf.h $RPM_BUILD_ROOT%{_includedir}/unixodbc_conf_`uname -i`.h + rm -f unixodbc_conf.h + sed s/CONFFILE/unixodbc_conf/ %{SOURCE4} >unixodbc_conf.h + install -m 644 unixodbc_conf.h $RPM_BUILD_ROOT%{_includedir} + ;; + *) + ;; +esac + +# add some explanatory documentation +cp %{SOURCE5} README.fedora + +# remove obsolete Postgres drivers from the package (but not the setup code) +rm -f $RPM_BUILD_ROOT%{_libdir}/libodbcpsql.so* + +# copy text driver documentation into main doc directory +# currently disabled because upstream no longer includes text driver +# mkdir -p doc/Drivers/txt +# cp -pr Drivers/txt/doc/* doc/Drivers/txt + +# don't want to install doc Makefiles as docs +find doc -name 'Makefile*' | xargs rm + +# we do not want to ship static libraries +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a + +# remove unpackaged files from the buildroot +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/libltdl.* +rm -rf $RPM_BUILD_ROOT%{_datadir}/libtool + +# initialize lists of .so files +find $RPM_BUILD_ROOT%{_libdir} -name "*.so.*" | sed "s|^$RPM_BUILD_ROOT||" > base-so-list +find $RPM_BUILD_ROOT%{_libdir} -name "*.so" | sed "s|^$RPM_BUILD_ROOT||" > devel-so-list + +# move these to main package, they're often dlopened... +for lib in libodbc.so libodbcinst.so libodbcpsqlS.so libodbcmyS.so +do + echo "%{_libdir}/$lib" >> base-so-list + grep -v "/$lib$" devel-so-list > devel-so-list.x + mv -f devel-so-list.x devel-so-list +done + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f base-so-list +%defattr(-,root,root) +%doc README COPYING AUTHORS ChangeLog NEWS doc +%doc README.fedora +%config(noreplace) %{_sysconfdir}/odbc* +%{_bindir}/odbcinst +%{_bindir}/isql +%{_bindir}/dltest +%{_bindir}/iusql +%{_bindir}/odbc_config + +%files devel -f devel-so-list +%defattr(-,root,root) +%{_includedir}/* + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%changelog +* Tue Jan 10 2012 Tom Lane <tgl@redhat.com> 2.3.1-1 +- Update to version 2.3.1. The main externally-visible change is that the + GUI programs are not part of the unixODBC tarball anymore, so they are no + longer in this package, and the unixODBC-kde sub-RPM has disappeared. + There is a separate package unixODBC-gui-qt that now provides those programs. + +* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.14-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Aug 31 2010 Tom Lane <tgl@redhat.com> 2.2.14-12 +- Fix isql crash at EOF with -b option +Resolves: #628909 + +* Mon May 3 2010 Tom Lane <tgl@redhat.com> 2.2.14-11 +- Re-add accidentally-removed desktop icon for ODBCConfig +Related: #587933 + +* Sat Mar 13 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> 2.2.14-10 +- BR qt-assistant-adp-devel + +* Sat Dec 19 2009 Tom Lane <tgl@redhat.com> 2.2.14-9 +- Fix bug preventing drivers from being selected in ODBCConfig +Resolves: #544852 + +* Wed Nov 25 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> 2.2.14-8 +- Rebuild for Qt 4.6.0 RC1 in F13 (was built against Beta 1 with unstable ABI) + +* Thu Oct 15 2009 Tom Lane <tgl@redhat.com> 2.2.14-7 +- Clean up bogosity in multilib stub header support: ia64 should not be + listed (it's not multilib), sparcv9 isn't a possible uname -i output + +* Fri Aug 21 2009 Tom Lane <tgl@redhat.com> 2.2.14-6 +- Switch to building against qt4, not qt3. This means the DataManager, + DataManagerII, and odbctest applications are gone. +Resolves: #514064 +- Use Driver64/Setup64 to eliminate need for hand-adjustment of odbcinst.ini +Resolves: #514688 +- Fix misdeclaration of SQLBIGINT and SQLUBIGINT in generated header files +Resolves: #518623 + +* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.14-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Jun 9 2009 Peter Lemenkov <lemenkov@gmail.com> - 2.2.14-4 +- Properly install *.desktop files +- No need to ship INSTALL in docs +- Use macros instead of hardcoded /usr/share and /usr/include +- fixed permissions on some doc- and src-files +- Almost all rpmlint messages are gone now + +* Sat Jun 06 2009 Dennis Gilmore <dennis@ausil.us> - 2.2.14-3 +- add sparc support to the multilib includes header + +* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 Tom Lane <tgl@redhat.com> 2.2.14-1 +- Update to unixODBC 2.2.14. Note this involves an ABI break and a consequent + soname version bump, because upstream fixed some mistakes in the widths of + some API datatypes for 64-bit platforms. Also, the formerly embedded + mysql, postgresql, and text drivers have been removed. (For mysql and + postgresql, use the separate mysql-connector-odbc and postgresql-odbc + packages, which are far more up to date. The text driver is not currently + shipped by upstream at all, but might get revived as a separate SRPM later.) +- Stop shipping .a library files, per distro policy. +- Fixes for libtool 2.2. + +* Mon Jul 28 2008 Tom Lane <tgl@redhat.com> 2.2.12-9 +- Fix build failure caused by new default patch fuzz = 0 policy in rawhide. + +* Fri Jun 13 2008 Tom Lane <tgl@redhat.com> 2.2.12-8 +- Install icons in /usr/share/pixmaps, not /usr/share/icons as this package + has historically done; the former is considered correct. + +* Fri Apr 4 2008 Tom Lane <tgl@redhat.com> 2.2.12-7 +- Must BuildRequire qt3 now that Fedora has renamed qt4 to qt +Resolves: #440798 + +* Mon Feb 11 2008 Tom Lane <tgl@redhat.com> 2.2.12-6 +- Move libodbcinst.so symlink into main package, since it's often dlopen'd +Related: #204882 +- Clean up specfile's ugly coding for making base-vs-devel decisions + +* Sun Dec 30 2007 Tom Lane <tgl@redhat.com> 2.2.12-5 +- Add missing BuildRequires for flex. +Resolves: #427063 + +* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 2.2.12-4 +- Update License tag to match code. + +* Fri Apr 20 2007 Tom Lane <tgl@redhat.com> 2.2.12-3 +- Make configure find correct Qt libraries when building on a multilib machine + +* Mon Apr 16 2007 Tom Lane <tgl@redhat.com> 2.2.12-2 +- Drop BuildRequires for kdelibs-devel +Resolves: #152717 +- Clean up a few rpmlint complaints + +* Wed Dec 6 2006 Tom Lane <tgl@redhat.com> 2.2.12-1 +- Update to unixODBC 2.2.12. +- Add missing BuildPrereq for bison. +Resolves: #190427 + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.2.11-7.1 +- rebuild + +* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 2.2.11-7 +- Fix minor problems in desktop files (bug #185764) + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.2.11-6.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.2.11-6.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Mon Nov 21 2005 Tom Lane <tgl@redhat.com> 2.2.11-6 +- Patch NO-vs-no discrepancy between aclocal/acinclude and recent autoconf + versions (not sure if this has been broken for a long time, or was just + exposed by modular X changeover). +- Apparently need to require libXt-devel too for modular X. + +* Mon Nov 7 2005 Tom Lane <tgl@redhat.com> 2.2.11-5 +- Adjust BuildPrereq for modular X. + +* Sun Oct 16 2005 Florian La Roche <laroche@redhat.com> 2.2.11-4 +- link against dependent libs +- fix some bugs to resolve unknown symbols ;-( + +* Thu Sep 29 2005 Tom Lane <tgl@redhat.com> 2.2.11-3 +- Force update of yac.h because the copy in the distributed tarball does not + match bison 2.0's numbering of symbols (bz #162676) +- Include documentation of text-file driver +- Use private libltdl so we can omit RTLD_GLOBAL from dlopen flags (bz #161399) + +* Sat Sep 24 2005 Tom Lane <tgl@redhat.com> 2.2.11-2 +- Remove Makefiles accidentally included in docs installation (bz #168819) +- Updates to keep newer libtool code from installing itself as part of package + +* Fri Apr 8 2005 Tom Lane <tgl@redhat.com> 2.2.11-1 +- Update to unixODBC 2.2.11 + +* Mon Mar 7 2005 Tom Lane <tgl@redhat.com> 2.2.10-3 +- Rebuild with gcc4. + +* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 2.2.10-2 +- Rebuilt for new readline. + +* Thu Oct 28 2004 Tom Lane <tgl@redhat.com> 2.2.10-1 +- Update to unixODBC 2.2.10 + +* Wed Sep 22 2004 Tom Lane <tgl@redhat.com> 2.2.9-1 +- Update to unixODBC 2.2.9 + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Sat May 8 2004 Tom Lane <tgl@redhat.com> 2.2.8-5 +- Backpatch fix for double-free error from upstream devel sources. +- rebuilt + +* Wed May 5 2004 Tom Lane <tgl@redhat.com> 2.2.8-4 +- Add dependency to ensure kde subpackage stays in sync with main + (needed because we moved odbctest from one pkg to the other, + cf bug #122478) +- rebuilt + +* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 2.2.8-3 +- Use installed libltdl +- rebuilt for Fedora Core 2 + +* Tue Mar 9 2004 Tom Lane <tgl@redhat.com> 2.2.8-2 +- Rename lo_xxx() to odbc_lo_xxx() (bug #117211) (temporary until 2.2.9) +- rebuilt + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Mon Mar 1 2004 Tom Lane <tgl@redhat.com> +- Update to 2.2.8 +- rebuilt + +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Thu Dec 4 2003 Joe Orton <jorton@redhat.com> 2.2.5-10 +- rebuild to restore sqltypes.h after #111195 + +* Thu Oct 16 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-9 +- Add XFree86-devel to the list of BuildPrereq. Did not bump + release as there is no need to rebuild. + +* Thu Oct 16 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-9 +- Add comments to the /etc/odbcinst.ini file regarding the proper + setup for MySQL and the origin of each library needed. + +* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-8 +- Move libodbcmyS.so to the main package as well. It is used the + same way as libodbcpsqlS.so. + +* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-7 +- Bumped the version so it rebuilds. + +* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-4 +- Revert previous change and special case libodbcpsql.so and + libodbcpsqlS.so instead. Here is the explanation (from Elliot + Lee): + ".so files are only used at link time for normal dynamic libraries. + The libraries referred to here are being used as dynamically loaded + modules, so I guess moving those particular .so files back to the + main package would make sense, but the other .so files should stay + in the devel subpackage." + +* Fri Oct 10 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-3 +- Moved all the shared library symlinks to the main package. + They were deliberatedly being added to the devel package for + unknown reasons but this was forcing users to install the + devel package always. +- No need to special-case libodbc.so anymore + +* Fri Sep 05 2003 Elliot Lee <sopwith@redhat.com> 2.2.5-2 +- Run auto* so it rebuilds. + +* Mon Jul 07 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-1 +- Moved odbctest to the kde package to remove require on Qt stuff + from the main package. +- Removed stray "\" from doc/Makefile.am +- Applied libtool fix (provided by Alex Oliva) so that it build + with cross-compilers (which are used by 64 bit systems) +- Updated sources to the 2.2.5 community release +- Changed the included libtool to the 1.5-3 one so that + it properly link the libraries with the newly generated ones + and not with the ones installed on the build system (or give + an error if an old version is not installed (# 91110) +- Added new files for executable DataManagerII and icons LinuxODBC.xpm + and odbc.xpm + +* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Wed Jan 22 2003 Tim Powers <timp@redhat.com> +- rebuilt + +* Thu Jan 9 2003 Bill Nottingham <notting@redhat.com> 2.2.3-5 +- debloat + +* Tue Dec 17 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-4 +- Run libtoolize etc. + +* Thu Dec 12 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-3 +- Rebuild to fix filelist errors...? + +* Fri Nov 29 2002 Tim Powers <timp@redhat.com> 2.2.3-2 +- remove unpackaged files from the buildroot + +* Tue Nov 19 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-1 +- Rebuild, update to 2.2.3 + +* Mon Aug 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.2-3 +- Move libodbc.so to the main package, so programs dlopening + it don't break (#72653) + +* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> +- rebuilt with gcc-3.2 (we hope) + +* Mon Jul 22 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.2-1 +- 2.2.2 +- desktop file changes (# 69371) + +* Fri Jun 21 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Sun May 26 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Mon May 20 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.1-1 +- 2.2.1 +- Reenable other archs, as this should now build on 64 bit archs + +* Sun May 19 2002 Florian La Roche <Florian.LaRoche@redhat.de> +- add at least mainframe; should this really be a i386-only rpm? + +* Wed Apr 17 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.2.0-5 +- rebuild + +* Fri Apr 5 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.0-4 +- Avoid having files in more than one package (#62755) + +* Tue Mar 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.0-3 +- Don't include kde plugin .so as a devel symlink (#61039) + +* Fri Mar 8 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.2.0-2 +- Rebuild with KDE 3.x + +* Tue Feb 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.0-1 +- Just build on i386 now, there are 64 bit oddities +- 2.2.0 + +* Fri Jan 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.1.1-2 +- move libodbcinstQ* to the kde subpackage + +* Fri Jan 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.1.1-1 +- 2.1.1 +- minor cleanups + +* Fri Dec 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 2.0.7-5 +- Rebuild + +* Wed Sep 12 2001 Tim Powers <timp@redhat.com> +- rebuild with new gcc and binutils + +* Sun Jun 24 2001 Than Ngo <than@redhat.com> +- rebuild against qt-2.3.1, kde-2.1.x + +* Fri Jun 15 2001 Trond Eivind Glomsrd <teg@redhat.com> +- Better default odbcinst.ini +- Minor cleanups + +* Wed Jun 6 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 2.0.7 + +* Wed Apr 25 2001 Trond Eivind Glomsrd <teg@redhat.com> +- Fix for isql segfault on EOF/ctrl-d exit + +* Fri Apr 20 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 2.0.6 +- add patch for 64 bit archs (dword shouldn't be "long int") + +* Wed Feb 28 2001 Trond Eivind Glomsrd <teg@redhat.com> +- rebuild + +* Tue Nov 28 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 1.8.13 + +* Tue Oct 10 2000 Trond Eivind Glomsrd <teg@redhat.com> +- enable GUI now that we have KDE compiled with the standard + compiler +- move the applnk entries to the KDE package + +* Thu Aug 24 2000 Nalin Dahyabhai <nalin@redhat.com> +- add the missing shared libs to the non-devel package + +* Wed Aug 23 2000 Preston Brown <pbrown@redhat.com> +- 1.8.12 fixes problems with the postgresql driver + +* Mon Jul 31 2000 Trond Eivind Glomsrd <teg@redhat.com> +- disable KDE subpackage to avoid the mess that is C++ binary + compatibility + +* Wed Jul 12 2000 Prospector <bugzilla@redhat.com> +- automatic rebuild + +* Fri Jun 30 2000 Florian La Roche <laroche@redhat.com> +- improved QTDIR detection + +* Thu Jun 28 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 1.8.10 +- use %%{_tmppath} +- update URL +- including two missing libraries + +* Tue Jun 13 2000 Preston Brown <pbrown@redhat.com> +- 1.8.9 + +* Fri Jun 09 2000 Preston Brown <pbrown@redhat.com> +- adopted for Winston, changed to Red Hat packaging standards + +* Tue Apr 18 2000 Murray Todd Williams <murray@codingapes.com> +- added a unixODBC-devel RPM to the group, added KDE links and icons to system +- all of which came from recommendations from Fredrick Meunier +- <Fredrick.Meunier@computershare.com.au> + +* Mon Apr 17 2000 Murray Todd Williams <murray@codingapes.com> +- unixODBC-1.8.7 +- moved install to $RPM_BUILD_ROOT so it didn't overrun existing files. diff --git a/unixodbc23/unixODBC.spec.tgl b/unixodbc23/unixODBC.spec.tgl new file mode 100644 index 0000000..4a82a9d --- /dev/null +++ b/unixodbc23/unixODBC.spec.tgl @@ -0,0 +1,527 @@ +Summary: A complete ODBC driver manager for Linux +Name: unixODBC +Version: 2.3.1 +Release: 1%{?dist} +Group: System Environment/Libraries +URL: http://www.unixODBC.org/ +# Programs are GPL, libraries are LGPL, except News Server library is GPL. +License: GPLv2+ and LGPLv2+ + +Source: http://www.unixODBC.org/%{name}-%{version}.tar.gz +Source1: odbcinst.ini +Source4: conffile.h + +Patch1: depcomp.patch +Patch6: export-symbols.patch +Patch7: libtool-config.patch +Patch8: so-version-bump.patch +Patch9: keep-typedefs.patch + +Conflicts: iodbc +BuildRequires: libX11-devel libXt-devel libXext-devel +# BuildRequires: qt4-devel qt-assistant-adp-devel +BuildRequires: readline-devel +BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex +BuildRequires: desktop-file-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +%description +Install unixODBC if you want to access databases through ODBC. +You will also need the mysql-connector-odbc package if you want to access +a MySQL database, and/or the postgresql-odbc package for PostgreSQL. + +%package devel +Summary: Development files for programs which will use the unixODBC library +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The unixODBC package can be used to access databases through ODBC +drivers. If you want to develop programs that will access data through +ODBC, you need to install this package. + +%prep +%setup -q +%patch1 -p1 +%patch6 -p1 +#%patch7 -p1 +%patch8 -p1 +%patch9 -p1 + +chmod 0644 Drivers/MiniSQL/*.c +chmod 0644 Drivers/nn/*.c +chmod 0644 Drivers/template/*.c +chmod 0644 doc/ProgrammerManual/Tutorial/*.html +chmod 0644 doc/lst/* +chmod 0644 include/odbcinst.h + +# Blow away the embedded libtool and replace with build system's libtool. +# (We will use the installed libtool anyway, but this makes sure they match.) +rm -rf config.guess config.sub install-sh ltmain.sh libltdl +# this hack is so we can build with either libtool 2.2 or 1.5 +libtoolize --install || libtoolize + +%build +# pick up qt path +export PATH="%{_qt4_bindir}:$PATH" + +aclocal +automake --add-missing +autoconf + +# unixODBC 2.2.14 is not aliasing-safe +CFLAGS="%{optflags} -fno-strict-aliasing" +CXXFLAGS="$CFLAGS" +export CFLAGS CXXFLAGS + +%configure --with-gnu-ld=yes --enable-threads=yes \ + --enable-drivers=yes --enable-driverc=yes --enable-ltdllib +make all + +%install +# pick up qt path +export PATH="%{_qt4_bindir}:$PATH" + +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications +mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps + +make DESTDIR=$RPM_BUILD_ROOT install +install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} + +# multilib header hacks +# we only apply this to known Red Hat multilib arches, per bug #181335 +case `uname -i` in + i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 ) + mv $RPM_BUILD_ROOT%{_includedir}/unixodbc_conf.h $RPM_BUILD_ROOT%{_includedir}/unixodbc_conf_`uname -i`.h + rm -f unixodbc_conf.h + sed s/CONFFILE/unixodbc_conf/ %{SOURCE4} >unixodbc_conf.h + install -m 644 unixodbc_conf.h $RPM_BUILD_ROOT%{_includedir} + ;; + *) + ;; +esac + +# remove obsolete Postgres drivers from the package (but not the setup code) +rm -f $RPM_BUILD_ROOT%{_libdir}/libodbcpsql.so* + +# copy text driver documentation into main doc directory +# currently disabled because upstream no longer includes text driver +# mkdir -p doc/Drivers/txt +# cp -pr Drivers/txt/doc/* doc/Drivers/txt + +# don't want to install doc Makefiles as docs +find doc -name 'Makefile*' | xargs rm + +# we do not want to ship static libraries +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a + +# remove unpackaged files from the buildroot +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/libltdl.* +rm -rf $RPM_BUILD_ROOT%{_datadir}/libtool + +# initialize lists of .so files +find $RPM_BUILD_ROOT%{_libdir} -name "*.so.*" | sed "s|^$RPM_BUILD_ROOT||" > base-so-list +find $RPM_BUILD_ROOT%{_libdir} -name "*.so" | sed "s|^$RPM_BUILD_ROOT||" > devel-so-list + +# move these to main package, they're often dlopened... +for lib in libodbc.so libodbcinst.so libodbcpsqlS.so libodbcmyS.so +do + echo "%{_libdir}/$lib" >> base-so-list + grep -v "/$lib$" devel-so-list > devel-so-list.x + mv -f devel-so-list.x devel-so-list +done + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f base-so-list +%defattr(-,root,root) +%doc README COPYING AUTHORS ChangeLog NEWS doc +%config(noreplace) %{_sysconfdir}/odbc* +%{_bindir}/odbcinst +%{_bindir}/isql +%{_bindir}/dltest +%{_bindir}/iusql +%{_bindir}/odbc_config + +%files devel -f devel-so-list +%defattr(-,root,root) +%{_includedir}/* + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%changelog +* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.14-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Aug 31 2010 Tom Lane <tgl@redhat.com> 2.2.14-12 +- Fix isql crash at EOF with -b option +Resolves: #628909 + +* Mon May 3 2010 Tom Lane <tgl@redhat.com> 2.2.14-11 +- Re-add accidentally-removed desktop icon for ODBCConfig +Related: #587933 + +* Sat Mar 13 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> 2.2.14-10 +- BR qt-assistant-adp-devel + +* Sat Dec 19 2009 Tom Lane <tgl@redhat.com> 2.2.14-9 +- Fix bug preventing drivers from being selected in ODBCConfig +Resolves: #544852 + +* Wed Nov 25 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> 2.2.14-8 +- Rebuild for Qt 4.6.0 RC1 in F13 (was built against Beta 1 with unstable ABI) + +* Thu Oct 15 2009 Tom Lane <tgl@redhat.com> 2.2.14-7 +- Clean up bogosity in multilib stub header support: ia64 should not be + listed (it's not multilib), sparcv9 isn't a possible uname -i output + +* Fri Aug 21 2009 Tom Lane <tgl@redhat.com> 2.2.14-6 +- Switch to building against qt4, not qt3. This means the DataManager, + DataManagerII, and odbctest applications are gone. +Resolves: #514064 +- Use Driver64/Setup64 to eliminate need for hand-adjustment of odbcinst.ini +Resolves: #514688 +- Fix misdeclaration of SQLBIGINT and SQLUBIGINT in generated header files +Resolves: #518623 + +* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.14-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Jun 9 2009 Peter Lemenkov <lemenkov@gmail.com> - 2.2.14-4 +- Properly install *.desktop files +- No need to ship INSTALL in docs +- Use macros instead of hardcoded /usr/share and /usr/include +- fixed permissions on some doc- and src-files +- Almost all rpmlint messages are gone now + +* Sat Jun 06 2009 Dennis Gilmore <dennis@ausil.us> - 2.2.14-3 +- add sparc support to the multilib includes header + +* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 Tom Lane <tgl@redhat.com> 2.2.14-1 +- Update to unixODBC 2.2.14. Note this involves an ABI break and a consequent + soname version bump, because upstream fixed some mistakes in the widths of + some API datatypes for 64-bit platforms. Also, the formerly embedded + mysql, postgresql, and text drivers have been removed. (For mysql and + postgresql, use the separate mysql-connector-odbc and postgresql-odbc + packages, which are far more up to date. The text driver is not currently + shipped by upstream at all, but might get revived as a separate SRPM later.) +- Stop shipping .a library files, per distro policy. +- Fixes for libtool 2.2. + +* Mon Jul 28 2008 Tom Lane <tgl@redhat.com> 2.2.12-9 +- Fix build failure caused by new default patch fuzz = 0 policy in rawhide. + +* Fri Jun 13 2008 Tom Lane <tgl@redhat.com> 2.2.12-8 +- Install icons in /usr/share/pixmaps, not /usr/share/icons as this package + has historically done; the former is considered correct. + +* Fri Apr 4 2008 Tom Lane <tgl@redhat.com> 2.2.12-7 +- Must BuildRequire qt3 now that Fedora has renamed qt4 to qt +Resolves: #440798 + +* Mon Feb 11 2008 Tom Lane <tgl@redhat.com> 2.2.12-6 +- Move libodbcinst.so symlink into main package, since it's often dlopen'd +Related: #204882 +- Clean up specfile's ugly coding for making base-vs-devel decisions + +* Sun Dec 30 2007 Tom Lane <tgl@redhat.com> 2.2.12-5 +- Add missing BuildRequires for flex. +Resolves: #427063 + +* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 2.2.12-4 +- Update License tag to match code. + +* Fri Apr 20 2007 Tom Lane <tgl@redhat.com> 2.2.12-3 +- Make configure find correct Qt libraries when building on a multilib machine + +* Mon Apr 16 2007 Tom Lane <tgl@redhat.com> 2.2.12-2 +- Drop BuildRequires for kdelibs-devel +Resolves: #152717 +- Clean up a few rpmlint complaints + +* Wed Dec 6 2006 Tom Lane <tgl@redhat.com> 2.2.12-1 +- Update to unixODBC 2.2.12. +- Add missing BuildPrereq for bison. +Resolves: #190427 + +* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.2.11-7.1 +- rebuild + +* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 2.2.11-7 +- Fix minor problems in desktop files (bug #185764) + +* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.2.11-6.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.2.11-6.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> +- rebuilt + +* Mon Nov 21 2005 Tom Lane <tgl@redhat.com> 2.2.11-6 +- Patch NO-vs-no discrepancy between aclocal/acinclude and recent autoconf + versions (not sure if this has been broken for a long time, or was just + exposed by modular X changeover). +- Apparently need to require libXt-devel too for modular X. + +* Mon Nov 7 2005 Tom Lane <tgl@redhat.com> 2.2.11-5 +- Adjust BuildPrereq for modular X. + +* Sun Oct 16 2005 Florian La Roche <laroche@redhat.com> 2.2.11-4 +- link against dependent libs +- fix some bugs to resolve unknown symbols ;-( + +* Thu Sep 29 2005 Tom Lane <tgl@redhat.com> 2.2.11-3 +- Force update of yac.h because the copy in the distributed tarball does not + match bison 2.0's numbering of symbols (bz #162676) +- Include documentation of text-file driver +- Use private libltdl so we can omit RTLD_GLOBAL from dlopen flags (bz #161399) + +* Sat Sep 24 2005 Tom Lane <tgl@redhat.com> 2.2.11-2 +- Remove Makefiles accidentally included in docs installation (bz #168819) +- Updates to keep newer libtool code from installing itself as part of package + +* Fri Apr 8 2005 Tom Lane <tgl@redhat.com> 2.2.11-1 +- Update to unixODBC 2.2.11 + +* Mon Mar 7 2005 Tom Lane <tgl@redhat.com> 2.2.10-3 +- Rebuild with gcc4. + +* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 2.2.10-2 +- Rebuilt for new readline. + +* Thu Oct 28 2004 Tom Lane <tgl@redhat.com> 2.2.10-1 +- Update to unixODBC 2.2.10 + +* Wed Sep 22 2004 Tom Lane <tgl@redhat.com> 2.2.9-1 +- Update to unixODBC 2.2.9 + +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Sat May 8 2004 Tom Lane <tgl@redhat.com> 2.2.8-5 +- Backpatch fix for double-free error from upstream devel sources. +- rebuilt + +* Wed May 5 2004 Tom Lane <tgl@redhat.com> 2.2.8-4 +- Add dependency to ensure kde subpackage stays in sync with main + (needed because we moved odbctest from one pkg to the other, + cf bug #122478) +- rebuilt + +* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 2.2.8-3 +- Use installed libltdl +- rebuilt for Fedora Core 2 + +* Tue Mar 9 2004 Tom Lane <tgl@redhat.com> 2.2.8-2 +- Rename lo_xxx() to odbc_lo_xxx() (bug #117211) (temporary until 2.2.9) +- rebuilt + +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Mon Mar 1 2004 Tom Lane <tgl@redhat.com> +- Update to 2.2.8 +- rebuilt + +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Thu Dec 4 2003 Joe Orton <jorton@redhat.com> 2.2.5-10 +- rebuild to restore sqltypes.h after #111195 + +* Thu Oct 16 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-9 +- Add XFree86-devel to the list of BuildPrereq. Did not bump + release as there is no need to rebuild. + +* Thu Oct 16 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-9 +- Add comments to the /etc/odbcinst.ini file regarding the proper + setup for MySQL and the origin of each library needed. + +* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-8 +- Move libodbcmyS.so to the main package as well. It is used the + same way as libodbcpsqlS.so. + +* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-7 +- Bumped the version so it rebuilds. + +* Tue Oct 14 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-4 +- Revert previous change and special case libodbcpsql.so and + libodbcpsqlS.so instead. Here is the explanation (from Elliot + Lee): + ".so files are only used at link time for normal dynamic libraries. + The libraries referred to here are being used as dynamically loaded + modules, so I guess moving those particular .so files back to the + main package would make sense, but the other .so files should stay + in the devel subpackage." + +* Fri Oct 10 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-3 +- Moved all the shared library symlinks to the main package. + They were deliberatedly being added to the devel package for + unknown reasons but this was forcing users to install the + devel package always. +- No need to special-case libodbc.so anymore + +* Fri Sep 05 2003 Elliot Lee <sopwith@redhat.com> 2.2.5-2 +- Run auto* so it rebuilds. + +* Mon Jul 07 2003 Fernando Nasser <fnasser@redhat.com> 2.2.5-1 +- Moved odbctest to the kde package to remove require on Qt stuff + from the main package. +- Removed stray "\" from doc/Makefile.am +- Applied libtool fix (provided by Alex Oliva) so that it build + with cross-compilers (which are used by 64 bit systems) +- Updated sources to the 2.2.5 community release +- Changed the included libtool to the 1.5-3 one so that + it properly link the libraries with the newly generated ones + and not with the ones installed on the build system (or give + an error if an old version is not installed (# 91110) +- Added new files for executable DataManagerII and icons LinuxODBC.xpm + and odbc.xpm + +* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> +- rebuilt + +* Wed Jan 22 2003 Tim Powers <timp@redhat.com> +- rebuilt + +* Thu Jan 9 2003 Bill Nottingham <notting@redhat.com> 2.2.3-5 +- debloat + +* Tue Dec 17 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-4 +- Run libtoolize etc. + +* Thu Dec 12 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-3 +- Rebuild to fix filelist errors...? + +* Fri Nov 29 2002 Tim Powers <timp@redhat.com> 2.2.3-2 +- remove unpackaged files from the buildroot + +* Tue Nov 19 2002 Elliot Lee <sopwith@redhat.com> 2.2.3-1 +- Rebuild, update to 2.2.3 + +* Mon Aug 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.2-3 +- Move libodbc.so to the main package, so programs dlopening + it don't break (#72653) + +* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> +- rebuilt with gcc-3.2 (we hope) + +* Mon Jul 22 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.2-1 +- 2.2.2 +- desktop file changes (# 69371) + +* Fri Jun 21 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Sun May 26 2002 Tim Powers <timp@redhat.com> +- automated rebuild + +* Mon May 20 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.1-1 +- 2.2.1 +- Reenable other archs, as this should now build on 64 bit archs + +* Sun May 19 2002 Florian La Roche <Florian.LaRoche@redhat.de> +- add at least mainframe; should this really be a i386-only rpm? + +* Wed Apr 17 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.2.0-5 +- rebuild + +* Fri Apr 5 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.0-4 +- Avoid having files in more than one package (#62755) + +* Tue Mar 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.0-3 +- Don't include kde plugin .so as a devel symlink (#61039) + +* Fri Mar 8 2002 Bernhard Rosenkraenzer <bero@redhat.com> 2.2.0-2 +- Rebuild with KDE 3.x + +* Tue Feb 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.2.0-1 +- Just build on i386 now, there are 64 bit oddities +- 2.2.0 + +* Fri Jan 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.1.1-2 +- move libodbcinstQ* to the kde subpackage + +* Fri Jan 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 2.1.1-1 +- 2.1.1 +- minor cleanups + +* Fri Dec 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 2.0.7-5 +- Rebuild + +* Wed Sep 12 2001 Tim Powers <timp@redhat.com> +- rebuild with new gcc and binutils + +* Sun Jun 24 2001 Than Ngo <than@redhat.com> +- rebuild against qt-2.3.1, kde-2.1.x + +* Fri Jun 15 2001 Trond Eivind Glomsrd <teg@redhat.com> +- Better default odbcinst.ini +- Minor cleanups + +* Wed Jun 6 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 2.0.7 + +* Wed Apr 25 2001 Trond Eivind Glomsrd <teg@redhat.com> +- Fix for isql segfault on EOF/ctrl-d exit + +* Fri Apr 20 2001 Trond Eivind Glomsrd <teg@redhat.com> +- 2.0.6 +- add patch for 64 bit archs (dword shouldn't be "long int") + +* Wed Feb 28 2001 Trond Eivind Glomsrd <teg@redhat.com> +- rebuild + +* Tue Nov 28 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 1.8.13 + +* Tue Oct 10 2000 Trond Eivind Glomsrd <teg@redhat.com> +- enable GUI now that we have KDE compiled with the standard + compiler +- move the applnk entries to the KDE package + +* Thu Aug 24 2000 Nalin Dahyabhai <nalin@redhat.com> +- add the missing shared libs to the non-devel package + +* Wed Aug 23 2000 Preston Brown <pbrown@redhat.com> +- 1.8.12 fixes problems with the postgresql driver + +* Mon Jul 31 2000 Trond Eivind Glomsrd <teg@redhat.com> +- disable KDE subpackage to avoid the mess that is C++ binary + compatibility + +* Wed Jul 12 2000 Prospector <bugzilla@redhat.com> +- automatic rebuild + +* Fri Jun 30 2000 Florian La Roche <laroche@redhat.com> +- improved QTDIR detection + +* Thu Jun 28 2000 Trond Eivind Glomsrd <teg@redhat.com> +- 1.8.10 +- use %%{_tmppath} +- update URL +- including two missing libraries + +* Tue Jun 13 2000 Preston Brown <pbrown@redhat.com> +- 1.8.9 + +* Fri Jun 09 2000 Preston Brown <pbrown@redhat.com> +- adopted for Winston, changed to Red Hat packaging standards + +* Tue Apr 18 2000 Murray Todd Williams <murray@codingapes.com> +- added a unixODBC-devel RPM to the group, added KDE links and icons to system +- all of which came from recommendations from Fredrick Meunier +- <Fredrick.Meunier@computershare.com.au> + +* Mon Apr 17 2000 Murray Todd Williams <murray@codingapes.com> +- unixODBC-1.8.7 +- moved install to $RPM_BUILD_ROOT so it didn't overrun existing files. |