root/trunk/libpqxx.spec.in

Revision 1260, 2.1 kB (checked in by jtv, 2 years ago)

Changed site hostname from thaiopensource.org to pqxx.org

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 Summary: C++ API to the PostgreSQL database management system.
2 Name: libpqxx
3 Version: @VERSION@
4 Release: 1
5 License: LGPL
6 Group: Development/Libraries
7 Source: ftp://pqxx.org/software/libpqxx/libpqxx-%{version}.tar.gz
8 BuildRoot: %{_tmppath}/%{name}-%{version}-root
9 URL: http://pqxx.org/
10 Vendor:    Andromeda Technology & Automation
11 Packager:  Arjen Baart <arjen@andromeda.nl>
12 Prefix: %{_prefix}
13 Docdir: %{_docdir}
14
15 %description
16 This is the official C++ client API for postgres.  What libpqxx brings you is
17 effective use of templates to reduce the inconvenience of dealing with type
18 conversions; of standard C++ strings to keep you from having to worry about
19 buffer allocation and overflow attacks; of exceptions to take the tedious and
20 error-prone plumbing around error handling out of your hands; of constructors
21 and destructors to bring resource management under control; and even basic
22 object-orientation to give you some extra reliability features that would be
23 hard to get with most other database interfaces.
24
25 %package devel
26 Summary: Libraries, includes, etc. to develop PostgreSQL applications in C++.
27 Group: Development/Libraries
28 Requires: libpqxx = %{version}
29
30 %description devel
31 Libraries, include files, etc you can use to develop PostgreSQL applications in C++.
32
33 %prep
34 %setup -q
35
36 %build
37 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} --enable-shared
38 make
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 #install -d $RPM_BUILD_ROOT%{_mandir}/man1
44 #install -d $RPM_BUILD_ROOT%{_mandir}/man4
45 make prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{_mandir} install
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post -p /sbin/ldconfig
51
52 %postun -p /sbin/ldconfig
53
54 %files
55 %defattr(-, root, root)
56
57 %doc AUTHORS ChangeLog NEWS README COPYING TODO
58 #%doc %{_mandir}/man4/libxml.4*
59
60 %{prefix}/lib/lib*.so
61
62 %files devel
63 %defattr(-, root, root)
64
65 #%doc %{_mandir}/man1/xml2-config.1*
66 #%doc doc/*.html doc/html
67
68 %{prefix}/lib/lib*.so
69 %{prefix}/lib/*a
70 %{prefix}/include/*
71 %{prefix}/bin/pqxx-config
72 %{prefix}/lib/pkgconfig/libpqxx.pc
73
74 %changelog
75
76 * Thu Jan 29 2004 Arjen Baart <arjen@andromeda.nl>
77
78 - Built release 2.1.3
79
Note: See TracBrowser for help on using the browser.