Added Tizen packaging 58/13658/4 accepted/tizen/generic accepted/tizen/ivi accepted/tizen/mobile accepted/tizen_generic accepted/tizen_ivi_panda tizen_3.0.m14.2_ivi tizen_ivi_panda accepted/tizen/generic/20140106.150053 accepted/tizen/ivi/20131220.020639 accepted/tizen/ivi/panda/20140403.014351 accepted/tizen/mobile/20131219.213100 submit/tizen/20131219.192602 submit/tizen_ivi_panda/20140403.012025 tizen_3.0.m14.2_ivi_release
authorEduardo Lima (Etrunko) <eduardo.lima@intel.com>
Wed, 11 Dec 2013 19:34:59 +0000 (17:34 -0200)
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>
Wed, 18 Dec 2013 17:54:41 +0000 (15:54 -0200)
Change-Id: I8f8ecc10e6dfffa724ce581bce455c9ad25de64a
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
packaging/libpinyin.changes [new file with mode: 0644]
packaging/libpinyin.manifest [new file with mode: 0644]
packaging/libpinyin.spec [new file with mode: 0644]

diff --git a/packaging/libpinyin.changes b/packaging/libpinyin.changes
new file mode 100644 (file)
index 0000000..b9f91fb
--- /dev/null
@@ -0,0 +1,2 @@
+* Wed Dec 18 2013 Eduardo Lima (Etrunko) <eduardo.lima@intel.com> upstream/1.0.0@22f79f0
+- Added Tizen packaging
diff --git a/packaging/libpinyin.manifest b/packaging/libpinyin.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/libpinyin.spec b/packaging/libpinyin.spec
new file mode 100644 (file)
index 0000000..f1e78e3
--- /dev/null
@@ -0,0 +1,74 @@
+Name:           libpinyin
+Version:        1.0.0
+Release:        1
+Summary:        Library to deal with pinyin
+License:        GPL-2.0+
+Group:          System/Libraries
+URL:            https://github.com/libpinyin/libpinyin
+Source0:        http://downloads.sourceforge.net/libpinyin/libpinyin/%{name}-%{version}.tar.gz
+Source1001:     libpinyin.manifest
+
+BuildRequires:  db4-devel, glib2-devel
+
+%description
+The libpinyin project aims to provide the algorithms core
+for intelligent sentence-based Chinese pinyin input methods.
+
+
+%package        devel
+Summary:        Development files for %{name}
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%package        tools
+Summary:        Tools for %{name}
+Requires:       %{name} = %{version}-%{release}
+
+%description tools
+The %{name}-tools package contains tools.
+
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+
+%build
+%configure --disable-static
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%manifest %{name}.manifest
+%doc AUTHORS COPYING README
+%{_libdir}/*.so.*
+%dir %{_libdir}/libpinyin
+%{_libdir}/libpinyin/data
+
+%files devel
+%manifest %{name}.manifest
+%doc
+%dir %{_includedir}/libpinyin-1.0.0
+%{_includedir}/libpinyin-1.0.0/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/libpinyin.pc
+
+%files tools
+%manifest %{name}.manifest
+%{_bindir}/gen_binary_files
+%{_bindir}/import_interpolation
+%{_bindir}/gen_unigram
+%{_mandir}/man1/*.1.*