sary/sary.spec

92 lines
2.3 KiB
RPMSpec

%define libname lib%{name}
Name: sary
Version: 1.2.0
Release: 2mamba
Summary: Sary is a set of a suffix array library and tools
Group: System/Internationalization
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
URL: http://sary.sourceforge.net/
Source: http://sary.sourceforge.net/sary-%{version}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libglib-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Sary is a suffix array library and tools.
It provides fast full-text search facilities for text files
on the order of 10 to 100 MB using a data structure called a suffix array.
It can also search specific fields in a text file by assigning index points to those fields.
%package -n %{libname}
Summary: Sary library
Group: System/Internationalization
Provides: %{libname} = %{version}-%{release}
%description -n %{libname}
sary library.
%package -n %{libname}-devel
Summary: Headers of uim for development
Group: Development/Languages
Requires: %{libname} = %{version}
Provides: %{name}-devel = %{version}-%{release}
Provides: %{libname}-devel = %{version}-%{release}
%description -n %{libname}-devel
Headers of %{name} for development.
%prep
%setup -q -n sary-%{version}
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/mksary
%{_bindir}/sary
%{_datadir}/%{name}
%{_mandir}/man1/mksary.1.gz
%{_mandir}/man1/sary.1.gz
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%files -n %{libname}
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libsary.so.10.0.0
%files -n %{libname}-devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/libsary.a
%{_libdir}/libsary.la
%{_libdir}/libsary.so
%{_libdir}/libsary.so.10
%{_libdir}/pkgconfig/sary.pc
%doc COPYING
%changelog
* Tue Aug 20 2013 Automatic Build System <autodist@mambasoft.it> 1.2.0-2mamba
- automatic rebuild by autodist
* Fri Jul 25 2008 gil <puntogil@libero.it> 1.2.0-1mamba
- package created by autospec