]> git.pld-linux.org Git - packages/libpqxx.git/blob - libpqxx.spec
fb94e5ae47029c524381e98674f7023255d3f763
[packages/libpqxx.git] / libpqxx.spec
1 Summary:        C++ interface to PostgreSQL
2 Summary(pl.UTF-8):      Interfejs C++ do PostgreSQL
3 Name:           libpqxx
4 Version:        4.0.1
5 Release:        3
6 License:        BSD
7 Group:          Libraries
8 Source0:        http://pqxx.org/download/software/libpqxx/%{name}-%{version}.tar.gz
9 # Source0-md5:  6ea888b9ba85dd7cef1b182dc5f223a2
10 URL:            http://pqxx.org/
11 BuildRequires:  autoconf >= 2.59
12 BuildRequires:  libstdc++-devel
13 BuildRequires:  postgresql-devel >= 8.0
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 This package includes library for C++ interface to PostgreSQL.
18
19 %description -l pl.UTF-8
20 Pakiet ten zawiera biblioteki dla interfejsu C++ do PostgreSQL.
21
22 %package devel
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
29
30 %description devel
31 This package includes header files for C++ interface.
32
33 %description devel -l pl.UTF-8
34 Pakiet ten zawiera pliki nagłówkowe dla interfejsu C++.
35
36 %package static
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}
41
42 %description static
43 This package includes static library for interface C++.
44
45 %description static -l pl.UTF-8
46 Pakiet ten zawiera biblioteki statyczne dla interfejsu C++.
47
48 %package examples
49 Summary:        C++ interface to PostgreSQL - examples
50 Summary(pl.UTF-8):      Interfejs C++ do PostgreSQL - przykładowe programy
51 Group:          Documentation
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description examples
55 This package includes examples for C++ interface.
56
57 %description examples -l pl.UTF-8
58 Pakiet ten zawiera przykładowe programy dla interfejsu C++.
59
60 %package doc
61 Summary:        C++ interface to PostgreSQL - documentation
62 Summary(pl.UTF-8):      Interfejs C++ do PostgreSQL - dokumentacja
63 Group:          Documentation
64 Requires:       %{name}-devel = %{version}-%{release}
65
66 %description doc
67 This package includes documentation for C++ interface.
68
69 %description doc -l pl.UTF-8
70 Pakiet ten zawiera dokumentację dla interfejsu C++.
71
72 %prep
73 %setup -q
74
75 %build
76 %{__autoconf}
77 %configure \
78         --enable-shared
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 ./libtool --mode=install install tools/rmlo $RPM_BUILD_ROOT%{_bindir}
89
90 cp -a test/test* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files
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
103
104 %files devel
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
109 %{_includedir}/pqxx
110 %{_pkgconfigdir}/libpqxx.pc
111
112 %files doc
113 %defattr(644,root,root,755)
114 %doc doc/html/{Reference,Tutorial}
115
116 %files static
117 %defattr(644,root,root,755)
118 %{_libdir}/libpqxx.a
119
120 %files examples
121 %defattr(644,root,root,755)
122 %{_examplesdir}/%{name}-%{version}
This page took 0.098263 seconds and 2 git commands to generate.