%if "%{run_tests}" == "1" %define __spec_check_pre %___build_pre %define check %%check %endif Name: libdatrie Version: 0.2.10 Release: 0 License: LGPL-2.1 Summary: Double-Array Trie Library Url: http://linux.thai.net/~thep/datrie/datrie.html Group: System/Libraries Source: %{name}-%{version}.tar.bz2 Source99: baselibs.conf Source1001: libdatrie.manifest BuildRequires: doxygen BuildRequires: pkg-config %description This is an implementation of double-array structure for representing trie, as proposed by Junichi Aoe. Summary: Double-Array Trie Library Group: Development/Libraries/C and C++ %package devel Summary: Double-Array Trie Library (development) Group: Development/Libraries/C and C++ Requires: libdatrie = %{version} %description devel This is an implementation of double-array structure for representing trie, as proposed by Junichi Aoe. This package contains the development files for libdatrie. %prep %setup -q cp %{SOURCE1001} . %build ./autogen.sh chmod +x ./configure %configure \ --disable-static --with-pic \ --with-html-docdir=%{_docdir}/libdatrie/html make %{?_smp_mflags} %check make check || exit 0 %install %make_install %remove_docs %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %manifest %{name}.manifest %defattr(-,root,root) %license COPYING %{_libdir}/libdatrie.so.1* %files devel %manifest %{name}.manifest %defattr(-,root,root) %{_bindir}/trietool %{_bindir}/trietool-0.2 %{_includedir}/datrie/ %{_libdir}/libdatrie.so %{_libdir}/pkgconfig/datrie-0.2.pc