From 20d30306e7c40e4e60ea9a81a2c4515d22e9b882 Mon Sep 17 00:00:00 2001 From: "chenyuao.cya" Date: Fri, 7 Apr 2023 19:17:22 +0800 Subject: [PATCH] change spec file format --- libdatrie.spec | 60 ++++++++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 26 deletions(-) diff --git a/libdatrie.spec b/libdatrie.spec index addc942..ac6a81f 100644 --- a/libdatrie.spec +++ b/libdatrie.spec @@ -1,51 +1,56 @@ -%define anolis_release 4 +%define anolis_release 5 Name: libdatrie Version: 0.2.13 Release: %{anolis_release}%{?dist} -Summary: Implementation of Double-Array structure for representing trie +Summary: Datrie is an 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: cmake gcc gcc-c++ automake autoconf autoconf-archive BuildRequires: doxygen -BuildRequires: make + %description -datrie is an implementation of double-array structure for representing trie. +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. -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. +See the details of the implementation at: + https://linux.thai.net/~thep/datrie/datrie.html + +Historically, this was first implemented as C++ classes in a library called +midatrie [2], but later simplified and rewritten from scratch in C. -Details of the implementation: http://linux.thai.net/~thep/datrie/datrie.html %package devel -Summary: Development files for %{name} +Summary: Development files for libdatrie Requires: %{name} = %{version}-%{release} %description devel This package contains libraries and header files for -developing applications that use %{name}. +developing applications that use libdatrie. + %package doc -Summary: Documentation files for %{name} +Summary: Documentation files for libdatrie Requires: %{name}-devel = %{version}-%{release} BuildArch: noarch %description doc -The %{name}-doc package contains documentation files for %{name}. +The libdatrie-doc package contains documentation files for libdatrie + %prep -%setup -q +%autosetup %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 +%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 @@ -54,7 +59,6 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool %make_install rm -frv %{buildroot}%{_pkgdocdir} find %{buildroot} -name '*.*a' -delete -print - %generate_compatibility_deps %check @@ -62,22 +66,26 @@ LD_LIBRARY_PATH=../datrie/.libs %make_build check %files %dir %{abidir} +%{_libdir}/lib*.so.* %license COPYING -%{_libdir}/libdatrie.so.* -%{abidir}/libdatrie.dump +%{abidir}/*.dump %files devel -%{_includedir}/datrie/ -%{_libdir}/libdatrie.so -%{_libdir}/pkgconfig/datrie-0.2.pc %{_bindir}/trietool* +%{_libdir}/lib*.so +%{_libdir}/pkgconfig/datrie-0.2.pc +%{_includedir}/datrie/ %{_mandir}/man1/trietool* %{_pkgdocdir}-devel/*.{html,css,png,js,svg} %files doc -%doc AUTHORS ChangeLog NEWS README* +%doc ChangeLog NEWS README* AUTHORS + %changelog +* Fri Apr 07 2023 chen_yu_ao - 0.2.13-3 +- change spec file format + * Tue Feb 28 2023 chen_yu_ao - 0.2.13-4 - remove ldconfig_scriptlets -- Gitee