sary-vl.spec 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. %define name sary
  2. %define version 1.2.0
  3. %define release 1%{?_dist_release}
  4. Summary: Suffix array library (with tools)
  5. Name: %{name}
  6. Version: %{version}
  7. Release: %{release}
  8. Group: System Environment/Libraries
  9. License: LGPL
  10. URL: http://prime.sourceforge.jp/src/
  11. Source: %{name}-%{version}.tar.bz2
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: glib2-devel
  14. %description
  15. Sary is a suffix array library. It provides fast full-text
  16. search facilities for text files on the order of 10 to 100
  17. MB using a data structure called a suffix array. It can also
  18. search specific fields in a text file by assigning index
  19. points to those fields.
  20. %package -n %{name}-devel
  21. Summary: Development headers for sary
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}
  24. Requires: glib2-devel
  25. Provides: %{name}-devel = %{version}-%{release}
  26. %description -n %{name}-devel
  27. Sary is a suffix array library. It provides fast full-text
  28. search facilities for text files on the order of 10 to 100
  29. MB using a data structure called a suffix array. It can also
  30. search specific fields in a text file by assigning index
  31. points to those fields.
  32. %prep
  33. %setup -q
  34. %build
  35. [[ ! -x configure ]] && ./autogen.sh
  36. %configure
  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 TODO
  48. %{_bindir}/mksary
  49. %{_bindir}/sary
  50. %{_datadir}/%name
  51. %_mandir/man*/*
  52. %{_libdir}/libsary.so.10.0.0
  53. %{_libdir}/libsary.so.10
  54. %files -n %{name}-devel
  55. %defattr(-,root,root)
  56. %{_includedir}/*
  57. %{_libdir}/libsary.a
  58. %{_libdir}/libsary.la
  59. %{_libdir}/libsary.so
  60. %{_libdir}/pkgconfig/sary.pc
  61. %changelog
  62. * Sat Nov 01 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.0-1
  63. - initial build for VineSeed
  64. * Mon Mar 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.0-1vl5
  65. - initial build for VineSeed
  66. ### end of file