File libpqxx.spec of Package libpqxx

#
# spec file for package libpqxx (Version 3.0.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libpqxx
BuildRequires:  fdupes gcc-c++ krb5-devel postgresql-devel
Url:            http://pqxx.org/development/libpqxx/
Summary:        C++ Client Library for PostgreSQL
Version:        3.0.1
Release:        1
License:        BSD 3-clause (or similar)
Group:          Productivity/Databases/Clients
Source0:        %name-%version.tar.bz2
Source1:        libpqxx-rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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 (or similar)
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
chmod 0644 AUTHORS COPYING ChangeLog NEWS README README-UPGRADE TODO

%build
autoreconf -fiv
%configure --enable-shared --disable-static --with-pic
make %{?jobs:-j%jobs} all

%install
make DESTDIR=%buildroot install
rm -f %buldroot%_libdir/*.la
DOCDIR=%buildroot%_docdir/%name
mkdir -p $DOCDIR
cp -a AUTHORS ChangeLog COPYING NEWS README* TODO doc/html $DOCDIR
%fdupes $DOCDIR

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%_libdir/%name-%version.so

%files devel
%defattr(-,root,root,-)
%doc %_docdir/%name
%_includedir/pqxx
%_libdir/lib*
%_libdir/pkgconfig/libpqxx.pc
/usr/bin/pqxx-config

%changelog
openSUSE Build Service is sponsored by