File libpqxx.spec of Package libpqxx
#
# spec file for package libpqxx (Version 2.6.9)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libpqxx
BuildRequires: gcc-c++ krb5-devel postgresql-devel
Url: http://pqxx.org/development/libpqxx/
Summary: C++ Client Library for PostgreSQL
Version: 2.6.9
Release: 65
License: BSD 3-Clause
Group: Productivity/Databases/Clients
Source0: %name-%version.tar.bz2
Source1: libpqxx-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch: libpqxx.diff
Patch1: fix-visibility.diff
%description
C++ client API for PostgreSQL. This is the standard front-end (in the
sense of "language binding") for writing C++ programs that use
PostgreSQL. This supersedes the older libpq++ interface. It requires an
up-to-date C++ compiler, such as gcc 2.95 or better.
Authors:
--------
Jeroen T. Vermeulen <jtv@xs4all.nl>
%package devel
License: BSD 3-Clause
Summary: C++ Client Library for PostgreSQL
Group: Productivity/Databases/Clients
Requires: libpqxx = %version
%description devel
C++ client API for PostgreSQL. This is the standard front-end (in the
sense of "language binding") for writing C++ programs that use
PostgreSQL. This supersedes the older libpq++ interface. It requires an
up-to-date C++ compiler, such as gcc 2.95 or better.
Authors:
--------
Jeroen T. Vermeulen <jtv@xs4all.nl>
%prep
%setup -q
%patch -p0
%patch1
chmod 0644 AUTHORS COPYING ChangeLog NEWS README README-UPGRADE TODO
%build
autoreconf -fi
export CFLAGS="%optflags"
export CXXFLAGS="$CFLAGS"
./configure \
--prefix=/usr \
--libdir=%_libdir \
--enable-shared \
--enable-static
make %{?jobs:-j%jobs} all
%install
make DESTDIR=%buildroot install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README README-UPGRADE TODO
%_libdir/%name-%version.so
%files devel
%defattr(-,root,root,-)
%doc doc/html
%_libdir/%name.*
%_includedir/pqxx
%_libdir/pkgconfig/libpqxx.pc
/usr/bin/pqxx-config
%changelog
* Fri Jun 27 2008 schwab@suse.de
- Use autoreconf.
* Mon Jan 14 2008 dmueller@suse.de
- fix last change
* Mon Jan 14 2008 aj@suse.de
- Fix build with g++.
* Mon Jul 30 2007 max@suse.de
- New version: 2.6.9 (#280593). Changes include:
* Removed old 1.x API
* Greatly reduced memory usage while escaping strings
* Useful error messages when preparing statements
* New cursor class, absolute_cursor
* New, encoding-safe string-escaping functions
* Radical rework of prepared statements;
INCOMPATIBLE INTERFACE CHANGE!
* Support for subtransactions
* Detect more connection capabilities
* Greatly improved cursor support
* ... and many many mire bug fixes and improvements.
- Tell rpmlint to shut up.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 09 2006 max@suse.de
- New version 2.5.5
* Thu Nov 18 2004 ro@suse.de
- use kerberos-devel-packages
* Thu Aug 19 2004 max@suse.de
- New version: 2.2.7
* Tue Nov 18 2003 max@suse.de
- New version: 2.1.1
- Split off a libpqxx-devel package
- Added heimdal-lib to neededforbuild
- Enabled building as non-root user
* Mon Jan 27 2003 max@suse.de
- Quote $RPM_OPT_FLAGS
* Mon Jan 27 2003 max@suse.de
- New Package libpqxx: A C++ client library for PostgreSQL
- Version 1.3.3