[libdatrie/f20] Initial SETUP.

Christopher Meng cicku at fedoraproject.org
Thu Jul 3 12:07:17 UTC 2014


commit e439ac1650498d66d746f5bd828e1c0e6e90c1c6
Author: Christopher Meng <i at cicku.me>
Date:   Thu Jul 3 20:07:09 2014 +0800

    Initial SETUP.

 .gitignore     |    1 +
 libdatrie.spec |   75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..47333a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libdatrie-0.2.8.tar.xz
diff --git a/libdatrie.spec b/libdatrie.spec
new file mode 100644
index 0000000..1bf31bf
--- /dev/null
+++ b/libdatrie.spec
@@ -0,0 +1,75 @@
+Name:           libdatrie
+Version:        0.2.8
+Release:        4%{?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:  doxygen
+
+%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
+#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 %{?_smp_mflags}
+
+%install
+%make_install
+rm -frv %{buildroot}%{_pkgdocdir}
+find %{buildroot} -name '*.*a' -delete -print
+
+%check
+LD_LIBRARY_PATH=../datrie/.libs make check %{?_smp_mflags}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc 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*.1*
+
+%changelog
+* Wed Jun 18 2014 Christopher Meng <rpm at cicku.me> - 0.2.8-4
+- Move docs to %%_pkgdocdir
+
+* Mon Feb 24 2014 Christopher Meng <rpm at cicku.me> - 0.2.8-3
+- Disable rpath.
+
+* Sat Feb 08 2014 Christopher Meng <rpm at cicku.me> - 0.2.8-2
+- Reform the subpackages.
+- Add check section to ensure the availability.
+
+* Tue Jan 07 2014 Christopher Meng <rpm at cicku.me> - 0.2.8-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..c5c5d28 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fc25a7bf5ec7405e30ae1512a8e2226c  libdatrie-0.2.8.tar.xz


More information about the scm-commits mailing list