libpqxx/libpqxx.spec

76 lines
2.1 KiB
RPMSpec

Name: libpqxx
Version: 4.0.1
Release: 2mamba
Summary: C++ client API for PostgreSQL
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://pqxx.org/development/libpqxx/
Source: http://pqxx.org/download/software/libpqxx/libpqxx-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libpostgresql-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Libpqxx is the official C++ client API for PostgreSQL, the enterprise-strength open-source database software.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
Libpqxx is the official C++ client API for PostgreSQL, the enterprise-strength open-source database software.
This package contains static libraries and header files need for development.
%prep
%setup -q
%build
%configure --enable-shared --disable-static
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libpqxx-*.so
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_bindir}/pqxx-config
%{_includedir}/pqxx/
%{_libdir}/libpqxx.la
%{_libdir}/libpqxx.so
%{_libdir}/pkgconfig/libpqxx.pc
%doc ChangeLog NEWS README README-UPGRADE
%changelog
* Sat Jan 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.1-2mamba
- rebuilt with gcc 5.3
* Sun Jan 20 2013 Automatic Build System <autodist@mambasoft.it> 4.0.1-1mamba
- automatic version update by autodist
* Mon Nov 28 2011 Automatic Build System <autodist@mambasoft.it> 4.0-1mamba
- automatic version update by autodist
* Fri Jul 09 2010 Davide Madrisan <davide.madrisan@gmail.com> 3.1-1mamba
- package created by autospec