From cbfd53b7ca66dbcee55abdb0af9ee4d9446e5bde Mon Sep 17 00:00:00 2001 From: "Eduardo Lima (Etrunko)" Date: Wed, 11 Dec 2013 17:34:59 -0200 Subject: [PATCH] Added Tizen packaging Change-Id: I8f8ecc10e6dfffa724ce581bce455c9ad25de64a Signed-off-by: Eduardo Lima (Etrunko) --- packaging/libpinyin.changes | 2 ++ packaging/libpinyin.manifest | 5 +++ packaging/libpinyin.spec | 74 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 packaging/libpinyin.changes create mode 100644 packaging/libpinyin.manifest create mode 100644 packaging/libpinyin.spec diff --git a/packaging/libpinyin.changes b/packaging/libpinyin.changes new file mode 100644 index 0000000..b9f91fb --- /dev/null +++ b/packaging/libpinyin.changes @@ -0,0 +1,2 @@ +* Wed Dec 18 2013 Eduardo Lima (Etrunko) upstream/1.0.0@22f79f0 +- Added Tizen packaging diff --git a/packaging/libpinyin.manifest b/packaging/libpinyin.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/libpinyin.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/libpinyin.spec b/packaging/libpinyin.spec new file mode 100644 index 0000000..f1e78e3 --- /dev/null +++ b/packaging/libpinyin.spec @@ -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.* -- 2.7.4