summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-31 13:38:26 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-31 13:38:26 +0800
commit7e85b8930fc00c3f66d689654e22930f2e15fc67 (patch)
tree69c2107699ea7a214d3d461a940202ff69be6301
parent43c5fb9c202bb68314b2205a746fb0a578e97a7f (diff)
downloadlibpinyin-7e85b8930fc00c3f66d689654e22930f2e15fc67.zip
libpinyin-7e85b8930fc00c3f66d689654e22930f2e15fc67.tar.gz
libpinyin-7e85b8930fc00c3f66d689654e22930f2e15fc67.tar.xz
add libpinyin.spec.in
-rw-r--r--configure.ac7
-rw-r--r--libpinyin.spec.in61
2 files changed, 68 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7df5d55..dea6172 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,6 +71,7 @@ AC_SEARCH_LIBS([db_create], [db], [], AC_MSG_ERROR([Cannot find Berkeley DB libr
AC_CONFIG_FILES([libpinyin.pc
+ libpinyin.spec
Makefile
data/Makefile
src/Makefile
@@ -88,3 +89,9 @@ AC_CONFIG_FILES([libpinyin.pc
])
AC_OUTPUT
+
+AC_MSG_RESULT([
+Build options:
+ Version $VERSION
+ Install prefix $prefix
+])
diff --git a/libpinyin.spec.in b/libpinyin.spec.in
new file mode 100644
index 0000000..a88186d
--- /dev/null
+++ b/libpinyin.spec.in
@@ -0,0 +1,61 @@
+Name: libpinyin
+Version: @VERSION@
+Release: 1%{?dist}
+Summary: Library to deal with pinyin
+
+License: GPLv2+
+URL: https://github.com/libpinyin/libpinyin
+Source0: https://github.com/downloads/libpinyin/libpinyin/%{name}-%{version}.tar.gz
+
+BuildRequires: db4-devel, glib2-devel
+#Requires:
+
+%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}.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure --disable-static
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc AUTHORS COPYING README
+%{_libdir}/*.so.*
+%dir %{_datadir}/libpinyin
+%{_datadir}/libpinyin/data
+
+%files devel
+%doc
+%{_includedir}/libpinyin-0.3/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/libpinyin.pc
+
+
+%changelog
+* Wed Aug 31 2011 Peng Wu <alexepico@gmail.com> - 0.2.99-1
+- Initial version