xapian-core-vl.spec 4.6 KB

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