xapian-core-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. Summary: The Xapian Probabilistic Information Retrieval Library
  2. Name: xapian-core
  3. Version: 1.2.12
  4. Release: 1%{_dist_release}
  5. License: GPL
  6. Group: Applications/Databases
  7. Source: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.gz
  8. URL: http://xapian.org/
  9. BuildRequires: gcc-c++ zlib-devel libuuid-devel
  10. Requires: %{name}-libs = %{version}
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. %description
  15. Xapian is an Open Source Probabilistic Information Retrieval Library. It
  16. offers a highly adaptable toolkit that allows developers to easily add advanced
  17. indexing and search facilities to applications.
  18. %package libs
  19. Summary: Xapian search engine libraries.
  20. Group: System Environment/Libraries
  21. %description libs
  22. Xapian is an Open Source Probabilistic Information Retrieval framework. It
  23. offers a highly adaptable toolkit that allows developers to easily add advanced
  24. indexing and search facilities to applications. This package provides the
  25. libraries for applications using Xapian functionality.
  26. %package devel
  27. Group: Development/Libraries
  28. Summary: Files needed for building packages which use Xapian.
  29. Requires: %{name}-libs = %{version}
  30. %description devel
  31. Xapian is an Open Source Probabilistic Information Retrieval framework. It
  32. offers a highly adaptable toolkit that allows developers to easily add advanced
  33. indexing and search facilities to applications. This package provides the
  34. files needed for building packages which use Xapian.
  35. %prep
  36. %setup -q -n %{name}-%{version}
  37. %build
  38. # As of 1.1.0, Xapian uses libtool 2.2.x which allows us to override libtool's
  39. # sometimes conservative take on which directories are in the default dynamic
  40. # linker search path, so we no longer incorrectly try to set rpath for
  41. # /usr/lib64. Hence there's no longer a need to run "autoreconf --force" here
  42. # and it's better not to as it avoids having to cope with incompatibilities
  43. # with older versions of the autotools which older distros have.
  44. #autoreconf --force
  45. %configure
  46. make
  47. %install
  48. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  49. mkdir -p %{buildroot}
  50. # makeinstall doesn't work properly with libtool built libraries
  51. make DESTDIR=%{buildroot} install
  52. # Move the docs to the right place
  53. mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}
  54. # Copy HACKING now, as "%doc HACKING" would overwrite everything
  55. cp HACKING %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}
  56. # Copy the rest while we are in this directory
  57. mkdir -p %{buildroot}%{_datadir}/doc/%{name}-%{version}
  58. cp AUTHORS ChangeLog ChangeLog.examples COPYING NEWS PLATFORMS README %{buildroot}%{_datadir}/doc/%{name}-%{version}
  59. %post libs -p /sbin/ldconfig
  60. %postun libs -p /sbin/ldconfig
  61. %clean
  62. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  63. %files
  64. %defattr(-, root, root)
  65. %{_bindir}/xapian-tcpsrv
  66. %{_bindir}/xapian-progsrv
  67. %{_bindir}/quest
  68. %{_bindir}/delve
  69. %{_bindir}/copydatabase
  70. %{_bindir}/simpleindex
  71. %{_bindir}/simplesearch
  72. %{_bindir}/simpleexpand
  73. %{_bindir}/xapian-check
  74. %{_bindir}/xapian-chert-update
  75. %{_bindir}/xapian-compact
  76. %{_bindir}/xapian-inspect
  77. %{_bindir}/xapian-replicate
  78. %{_bindir}/xapian-replicate-server
  79. %{_bindir}/xapian-metadata
  80. %doc %{_datadir}/doc/%{name}-%{version}
  81. # man pages may be gzipped, hence the trailing wildcard.
  82. %{_mandir}/man1/xapian-tcpsrv.1*
  83. %{_mandir}/man1/xapian-progsrv.1*
  84. %{_mandir}/man1/quest.1*
  85. %{_mandir}/man1/delve.1*
  86. %{_mandir}/man1/copydatabase.1*
  87. %{_mandir}/man1/xapian-check.1*
  88. %{_mandir}/man1/xapian-chert-update.1*
  89. %{_mandir}/man1/xapian-compact.1*
  90. %{_mandir}/man1/xapian-inspect.1*
  91. %{_mandir}/man1/xapian-replicate.1*
  92. %{_mandir}/man1/xapian-replicate-server.1*
  93. %{_mandir}/man1/xapian-metadata.1*
  94. %files libs
  95. %defattr(-, root, root)
  96. %{_libdir}/libxapian*.so.*
  97. %files devel
  98. %defattr(-, root, root)
  99. %{_bindir}/xapian-config
  100. %{_includedir}/xapian
  101. %{_includedir}/xapian.h
  102. %{_libdir}/libxapian*.so
  103. %{_libdir}/libxapian*.a
  104. %{_libdir}/libxapian*.la
  105. %{_libdir}/cmake/xapian
  106. %{_datadir}/aclocal/xapian*.m4
  107. %doc %{_datadir}/doc/%{name}-devel-%{version}
  108. # man pages may be gzipped, hence the trailing wildcard.
  109. %{_mandir}/man1/xapian-config.1*
  110. %changelog
  111. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.12-1
  112. - initial build