Rebase for libdatrie 0.2.10 93/157593/1
authorAnas Nashif <anas.nashif@intel.com>
Sun, 4 Nov 2012 03:42:09 +0000 (20:42 -0700)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 25 Oct 2017 00:51:19 +0000 (09:51 +0900)
Change-Id: Ib1647a2b41f9065d7fa6ec062584c72f197dfae5
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/baselibs.conf [new file with mode: 0644]
packaging/libdatrie.manifest [new file with mode: 0644]
packaging/libdatrie.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..bc428c7
--- /dev/null
@@ -0,0 +1 @@
+libdatrie
diff --git a/packaging/libdatrie.manifest b/packaging/libdatrie.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/libdatrie.spec b/packaging/libdatrie.spec
new file mode 100644 (file)
index 0000000..0fb513d
--- /dev/null
@@ -0,0 +1,65 @@
+Name:           libdatrie
+Version:        0.2.4
+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
+%configure \
+        --disable-static --with-pic \
+        --with-html-docdir=%{_docdir}/libdatrie/html
+make %{?_smp_mflags}
+
+%install
+%make_install
+# This is not installed where it should
+mv %{buildroot}%{_datadir}/doc/libdatrie/README.migration %{buildroot}%{_docdir}/libdatrie/
+
+%post  -p /sbin/ldconfig
+
+%postun  -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%doc COPYING
+%{_libdir}/libdatrie.so.1*
+
+%files devel
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%{_bindir}/trietool-0.2
+%doc %{_mandir}/man*/trietool-0.2.*
+%{_includedir}/datrie/
+%{_libdir}/libdatrie.so
+%{_libdir}/pkgconfig/datrie-0.2.pc
+%doc %{_docdir}/libdatrie/