libpqxx-vl.spec 3.5 KB

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