libpqxx-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Summary: A C++ API to the PostgreSQL database management system.
  2. Summary(ja): PostgreSQL の C++ API
  3. Name: libpqxx
  4. Version: 2.6.9
  5. Release: 3%{?_dist_release}
  6. License: LGPL
  7. Group: Development/Libraries
  8. Source: ftp://gborg.postgresql.org/pub/libpqxx/stable/libpqxx-%{version}.tar.gz
  9. Patch0: libpqxx-2.6.9-glibc-headers.patch
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. URL: http://pqxx.tk/
  12. BuildPrereq: postgresql-devel
  13. Requires: postgresql-libs
  14. %description
  15. What libpqxx brings you is effective use of templates to reduce the
  16. inconvenience of dealing with type conversions; of standard C++ strings
  17. to keep you from having to worry about buffer allocation and overflow
  18. attacks; of exceptions to take the tedious and error-prone plumbing around
  19. error handling out of your hands; of constructors and destructors to bring
  20. resource management under control; and even basic object-orientation
  21. to give you some extra reliability features that would be hard to get
  22. with most other database interfaces.
  23. %package devel
  24. Summary: Libraries, includes, etc. to develop PostgreSQL applications in C++.
  25. Summary(ja): C++ で PostgreSQL アプリケーションを開発ためのライブラリ/ヘッダファイル等
  26. Group: Development/Libraries
  27. Requires: libpqxx = %{version}
  28. %description devel
  29. Libraries, include files, etc you can use to develop PostgreSQL applications
  30. in C++.
  31. %prep
  32. %setup -q
  33. %patch0 -p0 -b .gibc-headers
  34. %build
  35. CFLAGS="$RPM_OPT_FLAGS" \
  36. ./configure --prefix=%{_prefix} --libdir=%{_libdir} --enable-shared
  37. make %{?_smp_mflags}
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. make DESTDIR=$RPM_BUILD_ROOT install
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %post -p /sbin/ldconfig
  44. %postun -p /sbin/ldconfig
  45. %files
  46. %defattr(-,root,root)
  47. %doc AUTHORS ChangeLog NEWS README COPYING TODO
  48. %{_libdir}/*.so
  49. %files devel
  50. %defattr(-,root,root)
  51. %doc doc/html/Reference doc/html/Tutorial
  52. %{_bindir}/*
  53. %{_includedir}/pqxx/*
  54. %{_libdir}/*.a
  55. %{_libdir}/*.la
  56. %{_libdir}/pkgconfig/*.pc
  57. %changelog
  58. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 2.6.9-3
  59. - rebuilt with rpm-4.8.1 for pkg-config
  60. - added libpqxx-2.6.9-glibc-headers.patch
  61. * Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 2.6.9-2
  62. - rebuilt with postgresql-8.4.0
  63. * Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 2.6.9-1vl5
  64. - rebuilt with postgresql-8.3.3
  65. - applied new versioning policy, and spec in utf-8
  66. * Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 2.6.9-0vl3
  67. - rebuilt with postgresql-8.2.6
  68. * Wed Sep 19 2007 Shu KONNO <owa@bg.wakwak.com> 2.6.9-0vl2
  69. - rebuilt with postgresql-8.2.5
  70. * Tue May 22 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.6.9-0vl1
  71. - new upstream release
  72. - build with new toolchain
  73. * Sun Oct 22 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.5.5-0vl2
  74. - added --libdir=%%{_libdir} configure option
  75. * Thu Jul 7 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.5.5-0vl1
  76. - new upstream release
  77. - add Japanese summary
  78. * Wed Jun 1 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.5.3-0vl1
  79. - new upstream release
  80. * Wed Apr 27 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.5.0-0vl1
  81. - new upstream release
  82. - clean up this file
  83. * Thu Jan 29 2004 Arjen Baart <arjen@andromeda.nl>
  84. - Built release 2.1.3