146 lines
3.4 KiB
RPMSpec
146 lines
3.4 KiB
RPMSpec
Name: libpinyin
|
|
Version: 0.5.91
|
|
Release: 3%{?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
|
|
Patch0: libpinyin-0.6.x-head.patch
|
|
|
|
BuildRequires: db4-devel, glib2-devel
|
|
Requires: %{name}-data = %{version}-%{release}
|
|
|
|
%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 data
|
|
Summary: Data files for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Provides: ibus-pinyin-db
|
|
|
|
%description data
|
|
The %{name}-data package contains data files.
|
|
|
|
|
|
%package tools
|
|
Summary: Tools for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description tools
|
|
The %{name}-tools package contains tools.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1 -b .head
|
|
|
|
|
|
%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
|
|
%doc AUTHORS COPYING README
|
|
%{_libdir}/*.so.*
|
|
%dir %{_datadir}/libpinyin
|
|
|
|
%files devel
|
|
%doc
|
|
%dir %{_includedir}/libpinyin-0.3
|
|
%{_includedir}/libpinyin-0.3/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/libpinyin.pc
|
|
|
|
%files data
|
|
%doc
|
|
%{_datadir}/libpinyin/data
|
|
|
|
%files tools
|
|
%{_bindir}/gen_binary_files
|
|
%{_bindir}/import_interpolation
|
|
%{_bindir}/gen_unigram
|
|
%{_mandir}/man1/*.1.*
|
|
|
|
%changelog
|
|
* Wed Feb 15 2012 Peng Wu <pwu@redhat.com> - 0.5.91-3
|
|
- Provides ibus-pinyin-db
|
|
|
|
* Tue Feb 14 2012 Peng Wu <pwu@redhat.com> - 0.5.91-2
|
|
- Improves full pinyin parser2
|
|
|
|
* Mon Feb 13 2012 Peng Wu <pwu@redhat.com> - 0.5.91-1
|
|
- Update to 0.5.91
|
|
|
|
* Sun Jan 29 2012 Peng Wu <pwu@redhat.com> - 0.5.0-2
|
|
- Fixes pinyin parsers
|
|
|
|
* Wed Jan 18 2012 Peng Wu <pwu@redhat.com> - 0.5.0-1
|
|
- Update to 0.5.0
|
|
|
|
* Fri Jan 13 2012 Peng Wu <pwu@redhat.com> - 0.4.93-1
|
|
- Update to 0.4.93
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.92-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Thu Dec 29 2011 Peng Wu <pwu@redhat.com> - 0.4.92-1
|
|
- Update to 0.4.92
|
|
|
|
* Tue Dec 27 2011 Peng Wu <pwu@redhat.com> - 0.4.91-1
|
|
- Update to 0.4.91
|
|
|
|
* Fri Nov 25 2011 Peng Wu <pwu@redhat.com> - 0.3.0-2
|
|
- Increase train factor
|
|
|
|
* Fri Nov 18 2011 Peng Wu <pwu@redhat.com> - 0.3.0-1
|
|
- Update to 0.3.0
|
|
|
|
* Thu Nov 03 2011 Peng Wu <pwu@redhat.com> - 0.2.99.3-1
|
|
- Update to 0.2.99.3
|
|
|
|
* Mon Oct 31 2011 Peng Wu <pwu@redhat.com> - 0.2.99.2-5
|
|
- Fixes memory leak and save_db
|
|
|
|
* Thu Oct 27 2011 Peng Wu <pwu@redhat.com> - 0.2.99.2-4
|
|
- Update libpinyin-0.3.x-head.patch
|
|
|
|
* Thu Oct 27 2011 Peng Wu <pwu@redhat.com> - 0.2.99.2-3
|
|
- Add requires
|
|
|
|
* Thu Oct 27 2011 Peng Wu <pwu@redhat.com> - 0.2.99.2-2
|
|
- Add patch libpinyin-0.3.x-head.patch
|
|
|
|
* Tue Oct 11 2011 Peng Wu <pwu@redhat.com> - 0.2.99.2-1
|
|
- Update to 0.2.99.2
|
|
|
|
* Wed Sep 28 2011 Peng Wu <pwu@redhat.com> - 0.2.99.1-1
|
|
- Update to 0.2.99.1
|
|
|
|
* Thu Sep 08 2011 Peng Wu <pwu@redhat.com> - 0.2.99-2
|
|
- Split data sub package
|
|
|
|
* Wed Aug 31 2011 Peng Wu <alexepico@gmail.com> - 0.2.99-1
|
|
- Initial version
|