File libpqxx.spec of Package libpqxx
#
# spec file for package libpqxx (Version 3.1)
#
# Copyright (c) 2010 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.1
Release: 1
License: BSD3c(or similar)
Group: Productivity/Databases/Clients
Source0: %name-%version.tar.bz2
Source1: libpqxx-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is the standard library for C++ programs that connect to a
PostgreSQL database server.
%package devel
License: BSD3c(or similar)
Summary: C++ Client Library for PostgreSQL
Group: Productivity/Databases/Clients
Requires: libpqxx = %version
%description devel
This package contains header files and documentation needed for writing
C++ programs that connect to a PostgreSQL database.
%prep
%setup -q
chmod 0644 AUTHORS COPYING ChangeLog NEWS README README-UPGRADE
%build
%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* 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