Name: marisa Version: 0.2.1 Release: 2%{?dist} Summary: Static and spece-efficient trie data structure library License: BSD URL: https://code.google.com/p/marisa-trie/ Source0: https://marisa-trie.googlecode.com/files/marisa-0.2.1.tar.gz %description Matching Algorithm with Recursively Implemented StorAge (MARISA) is a static and space-efficient trie data structure. And libmarisa is a C++ library to provide an implementation of MARISA. Also, the package of libmarisa contains a set of command line tools for building and operating a MARISA-based dictionary. A MARISA-based dictionary supports not only lookup but also reverse lookup, common prefix search and predictive search. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package tools Summary: Tools for %{name} Group: Development/Tools Requires: %{name}%{?_isa} = %{version}-%{release} %description tools The %{name}-tools package contains tools for developing applications that use %{name}. %prep %setup -q %build %configure --disable-static sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} %install %make_install INSTALL="install -p" find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc docs/* AUTHORS COPYING README %{_libdir}/*.so.* %files devel %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %files tools %{_bindir}/marisa* %changelog * Fri Feb 1 2013 Daiki Ueno - 0.2.1-2 - remove unnesseary BR - don't embed rpath in executables - add docs - drop buildroot cleanup - preserve timestamp when make install * Thu Jan 24 2013 Daiki Ueno - 0.2.1-1 - initial packaging