libpqxx-vl.spec 3.4 KB

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