1 Summary: C++ interface to PostgreSQL
2 Summary(pl.UTF-8): Interfejs C++ do PostgreSQL
8 Source0: http://pqxx.org/download/software/libpqxx/%{name}-%{version}.tar.gz
9 # Source0-md5: 6ea888b9ba85dd7cef1b182dc5f223a2
11 BuildRequires: autoconf >= 2.59
12 BuildRequires: libstdc++-devel
13 BuildRequires: postgresql-devel >= 8.0
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 This package includes library for C++ interface to PostgreSQL.
19 %description -l pl.UTF-8
20 Pakiet ten zawiera biblioteki dla interfejsu C++ do PostgreSQL.
23 Summary: C++ interface to PostgreSQL - development part
24 Summary(pl.UTF-8): Interfejs C++ do PostgreSQL - część programistyczna
25 Group: Development/Libraries
26 Requires: %{name} = %{version}-%{release}
27 Requires: libstdc++-devel
28 Requires: postgresql-devel
31 This package includes header files for C++ interface.
33 %description devel -l pl.UTF-8
34 Pakiet ten zawiera pliki nagłówkowe dla interfejsu C++.
37 Summary: C++ interface to PostgreSQL - static libraries
38 Summary(pl.UTF-8): Interfejs C++ do PostgreSQL - biblioteki statyczne
39 Group: Development/Libraries
40 Requires: %{name}-devel = %{version}-%{release}
43 This package includes static library for interface C++.
45 %description static -l pl.UTF-8
46 Pakiet ten zawiera biblioteki statyczne dla interfejsu C++.
49 Summary: C++ interface to PostgreSQL - examples
50 Summary(pl.UTF-8): Interfejs C++ do PostgreSQL - przykładowe programy
52 Requires: %{name}-devel = %{version}-%{release}
55 This package includes examples for C++ interface.
57 %description examples -l pl.UTF-8
58 Pakiet ten zawiera przykładowe programy dla interfejsu C++.
61 Summary: C++ interface to PostgreSQL - documentation
62 Summary(pl.UTF-8): Interfejs C++ do PostgreSQL - dokumentacja
64 Requires: %{name}-devel = %{version}-%{release}
67 This package includes documentation for C++ interface.
69 %description doc -l pl.UTF-8
70 Pakiet ten zawiera dokumentację dla interfejsu C++.
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
86 DESTDIR=$RPM_BUILD_ROOT
88 ./libtool --mode=install install tools/rmlo $RPM_BUILD_ROOT%{_bindir}
90 cp -a test/test* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
93 rm -rf $RPM_BUILD_ROOT
95 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
99 %defattr(644,root,root,755)
100 %doc AUTHORS ChangeLog NEWS README*
101 %attr(755,root,root) %{_bindir}/rmlo
102 %attr(755,root,root) %{_libdir}/libpqxx-*.so
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_bindir}/pqxx-config
107 %attr(755,root,root) %{_libdir}/libpqxx.so
108 %{_libdir}/libpqxx.la
110 %{_pkgconfigdir}/libpqxx.pc
113 %defattr(644,root,root,755)
114 %doc doc/html/{Reference,Tutorial}
117 %defattr(644,root,root,755)
121 %defattr(644,root,root,755)
122 %{_examplesdir}/%{name}-%{version}