commit 77b593db8930abe282378a1a319db36004869d14 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:55:19 2019 -0400 Package init diff --git a/libdatrie-0.2.12.tar.xz b/libdatrie-0.2.12.tar.xz new file mode 100644 index 0000000..bc2c452 Binary files /dev/null and b/libdatrie-0.2.12.tar.xz differ diff --git a/libdatrie.spec b/libdatrie.spec new file mode 100644 index 0000000..18a170c --- /dev/null +++ b/libdatrie.spec @@ -0,0 +1,63 @@ +Name: libdatrie +Version: 0.2.12 +Release: 1 +Summary: a library of double-array structure for representing trie. +License: LGPLv2+ +URL: https://linux.thai.net/~thep/datrie/datrie.htm +Source0: ftp://linux.thai.net/pub/ThaiLinux/software/libthai/%{name}-%{version}.tar.xz +BuildRequires: git gcc automake libtool doxygen autoconf-archive pkgconfig xz + +%description +Trie is an efficient indexing method. It is usually much faster +than B-tree or any comparison-based indexing method in general +cases. Its time complexity is comparable with hashing techniques. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} +%description devel +Development files for %{name}. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +autoreconf -ivf +%configure --with-html-docdir=%{_pkgdocdir}-help +%disable_rpath +%make_build + +%install +%make_install +%delete_la_and_a +find %{buildroot} -name README.migration -delete -print + +%check +export LD_LIBRARY_PATH=../datrie/.libs +make check + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%license COPYING +%{_libdir}/%{name}.so.* + +%files devel +%defattr(-,root,root) +%{_bindir}/trietool* +%{_includedir}/datrie +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/*.pc + +%files help +%defattr(-,root,root) +%doc AUTHORS ChangeLog NEWS README* doc/html/* +%{_mandir}/man1/trietool*.1.gz + +%changelog +* Thu Aug 29 2019 openEuler Buildteam - 0.2.12-1 +- Package init