1%define version @VERSION@ 2%define release 1 3 4Summary: An Embeddable Fulltext Search Engine 5Name: senna 6Version: %{version} 7Release: %{release} 8License: LGPL 9Group: local 10Packager: Brazil Ltd. <senna@razil.jp> 11Source: %{name}-%{version}.tar.gz 12BuildRoot: /var/tmp/%{name} 13Requires: mecab >= 0.80 14 15%description 16An Embeddable Fulltext Search Engine. 17 18%package devel 19Summary: Libraries and header files for Senna 20Group: Development/Libraries 21 22%description devel 23Libraries and header files for Senna 24 25%prep 26%setup -q 27 28%build 29export CFLAGS="$RPM_OPT_FLAGS" 30export CXXFLAGS="$RPM_OPT_FLAGS" 31%configure 32make 33 34%install 35[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT 36%makeinstall 37 38%clean 39[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT 40 41%post -p /sbin/ldconfig 42%postun -p /sbin/ldconfig 43 44%files 45%defattr(-, root, root) 46%doc README AUTHORS COPYING doc/* 47%{_libdir}/*.so.* 48%{_bindir}/* 49 50%files devel 51%defattr(-, root, root) 52%{_includedir}/senna/* 53%{_libdir}/*.so 54%{_libdir}/*.a 55%{_libdir}/*.la 56