sary-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. %define name sary
  2. %define version 1.2.0
  3. %define release 2%{?_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 --disable-static
  37. %{__make} %{?_smp_mflags}
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. %{__make} DESTDIR=$RPM_BUILD_ROOT install
  41. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  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 NEWS README TODO
  49. %{_bindir}/mksary
  50. %{_bindir}/sary
  51. %{_datadir}/%name
  52. %_mandir/man*/*
  53. %{_libdir}/libsary.so.10.0.0
  54. %{_libdir}/libsary.so.10
  55. %files -n %{name}-devel
  56. %defattr(-,root,root)
  57. %{_includedir}/*
  58. #{_libdir}/libsary.a
  59. #{_libdir}/libsary.la
  60. %{_libdir}/libsary.so
  61. %{_libdir}/pkgconfig/sary.pc
  62. %changelog
  63. * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-2
  64. - rebuilt with current VineSeed
  65. - removed static libraries from devel package
  66. * Sat Nov 01 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.0-1
  67. - initial build for VineSeed
  68. * Mon Mar 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.0-1vl5
  69. - initial build for VineSeed
  70. ### end of file