diff --git a/libdatrie-0.2.13.tar.xz b/libdatrie-0.2.13.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..2cc586a6c82ea02e67f864ab0582203b31677fde Binary files /dev/null and b/libdatrie-0.2.13.tar.xz differ diff --git a/libdatrie.spec b/libdatrie.spec new file mode 100644 index 0000000000000000000000000000000000000000..d13200bc55a3f93996f5b9668040ab4288ff5948 --- /dev/null +++ b/libdatrie.spec @@ -0,0 +1,70 @@ +%define anolis_release 1 +Name: libdatrie +Version: 0.2.13 +Release: %{anolis_release}%{?dist} +Summary: Implementation of Double-Array structure for representing trie +License: LGPLv2+ +URL: http://linux.thai.net/projects/datrie +Source0: http://linux.thai.net/pub/thailinux/software/libthai/%{name}-%{version}.tar.xz +BuildRequires: autoconf, automake, libtool +BuildRequires: autoconf-archive +BuildRequires: doxygen +BuildRequires: make + +%description +datrie is an implementation of double-array structure for representing trie. + +Trie is a kind of digital search tree, an efficient indexing method with O(1) +time complexity for searching. Comparably as efficient as hashing, trie also +provides flexibility on incremental matching and key spelling manipulation. +This makes it ideal for lexical analyzers, as well as spelling dictionaries. + +Details of the implementation: http://linux.thai.net/~thep/datrie/datrie.html + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -q + +%build +autoreconf -f -i -v +#sed -i '/sys_lib_dlsearch_path_spec/s|/usr/lib |/usr/lib /usr/lib64|' configure +%configure --disable-static \ + --with-html-docdir=%{_pkgdocdir}-devel +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_build + +%install +%make_install +rm -frv %{buildroot}%{_pkgdocdir} +find %{buildroot} -name '*.*a' -delete -print + +%check +LD_LIBRARY_PATH=../datrie/.libs %make_build check + +%ldconfig_scriptlets + +%files +%license COPYING +%{_libdir}/libdatrie.so.* + +%files devel +%doc AUTHORS ChangeLog NEWS README* +%{_includedir}/datrie/ +%{_libdir}/libdatrie.so +%{_libdir}/pkgconfig/datrie-0.2.pc +%{_bindir}/trietool* +%{_mandir}/man1/trietool* +%{_pkgdocdir}-devel/*.{html,css,png,js,svg} + +%changelog +* Sat Apr 02 2022 mgb01105731 - 0.2.13-1 +- Init from upstream version 0.2.13 +