Blame SPECS/libpinyin.spec

295c3e
%global snapshot 0
295c3e
295c3e
Name:           libpinyin
295c3e
Version:        2.2.0
295c3e
Release:        1%{?dist}
295c3e
Summary:        Library to deal with pinyin
295c3e
295c3e
License:        GPLv3+
295c3e
URL:            https://github.com/libpinyin/libpinyin
295c3e
Source0:        http://downloads.sourceforge.net/libpinyin/libpinyin/%{name}-%{version}.tar.gz
295c3e
%if %snapshot
295c3e
Patch0:         libpinyin-2.2.x-head.patch
295c3e
%endif
295c3e
295c3e
BuildRequires:  gcc-c++
295c3e
BuildRequires:  kyotocabinet-devel, glib2-devel
295c3e
Requires:       %{name}-data%{?_isa} = %{version}-%{release}
295c3e
295c3e
%description
295c3e
The libpinyin project aims to provide the algorithms core
295c3e
for intelligent sentence-based Chinese pinyin input methods.
295c3e
295c3e
295c3e
%package        devel
295c3e
Summary:        Development files for %{name}
295c3e
Requires:       %{name} = %{version}-%{release}
295c3e
Provides:       libzhuyin-devel = %{version}-%{release}
295c3e
Obsoletes:      libzhuyin-devel < %{version}-%{release}
295c3e
295c3e
%description    devel
295c3e
The %{name}-devel package contains libraries and header files for
295c3e
developing applications that use %{name}.
295c3e
295c3e
295c3e
%package        data
295c3e
Summary:        Data files for %{name}
295c3e
Requires:       %{name} = %{version}-%{release}
295c3e
295c3e
%description data
295c3e
The %{name}-data package contains data files.
295c3e
295c3e
%package        tools
295c3e
Summary:        Tools for %{name}
295c3e
Requires:       %{name} = %{version}-%{release}
295c3e
295c3e
%description tools
295c3e
The %{name}-tools package contains tools.
295c3e
295c3e
%package -n     libzhuyin
295c3e
Summary:        Library to deal with zhuyin
295c3e
Requires:       %{name} = %{version}-%{release}
295c3e
295c3e
%description -n libzhuyin
295c3e
The libzhuyin package contains libzhuyin compatibility library.
295c3e
295c3e
295c3e
%prep
295c3e
%setup -q
295c3e
295c3e
%if %snapshot
295c3e
%patch0 -p1 -b .head
295c3e
%endif
295c3e
295c3e
%build
295c3e
%configure --disable-static \
295c3e
           --with-dbm=KyotoCabinet \
295c3e
           --enable-libzhuyin
295c3e
make %{?_smp_mflags}
295c3e
295c3e
%check
295c3e
make check
295c3e
295c3e
%install
295c3e
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
295c3e
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
295c3e
295c3e
295c3e
%post -p /sbin/ldconfig
295c3e
295c3e
%postun -p /sbin/ldconfig
295c3e
295c3e
295c3e
%files
295c3e
%doc AUTHORS COPYING README
295c3e
%{_libdir}/libpinyin*.so.*
295c3e
%dir %{_libdir}/libpinyin
295c3e
295c3e
%files devel
295c3e
%doc
295c3e
%dir %{_includedir}/libpinyin-%{version}
295c3e
%{_includedir}/libpinyin-%{version}/*
295c3e
%{_libdir}/libpinyin.so
295c3e
%{_libdir}/pkgconfig/libpinyin.pc
295c3e
%{_libdir}/libzhuyin.so
295c3e
%{_libdir}/pkgconfig/libzhuyin.pc
295c3e
295c3e
%files data
295c3e
%doc
295c3e
%{_libdir}/libpinyin/data
295c3e
295c3e
%files tools
295c3e
%{_bindir}/gen_binary_files
295c3e
%{_bindir}/import_interpolation
295c3e
%{_bindir}/gen_unigram
295c3e
%{_mandir}/man1/*.1.*
295c3e
295c3e
%files -n libzhuyin
295c3e
%{_libdir}/libzhuyin*.so.*
295c3e
295c3e
%changelog
295c3e
* Tue Apr 17 2018 Peng Wu <pwu@redhat.com> - 2.2.0-1
295c3e
- Update to 2.2.0
295c3e
- bug fixes
295c3e
295c3e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.91-2
295c3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
295c3e
295c3e
* Thu Jan 25 2018 Peng Wu <pwu@redhat.com> - 2.1.91-1
295c3e
- Update to 2.1.91
295c3e
- fixes zhuyin parsers
295c3e
295c3e
* Thu Aug 24 2017 Peng Wu <pwu@redhat.com> - 2.1.0-1
295c3e
- Update to 2.1.0
295c3e
- support sort option in pinyin_guess_candidates function
295c3e
295c3e
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.92-3
295c3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
295c3e
295c3e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.92-2
295c3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
295c3e
295c3e
* Mon Jul 10 2017 Peng Wu <pwu@redhat.com> - 2.0.92-1
295c3e
- Update to 2.0.92
295c3e
- reduce memory consumption after imported user dictionary
295c3e
295c3e
* Thu Jun  8 2017 Peng Wu <pwu@redhat.com> - 2.0.91-1
295c3e
- Update to 2.0.91
295c3e
- merge libzhuyin code
295c3e
295c3e
* Thu Apr 20 2017 Peng Wu <pwu@redhat.com> - 2.0.0-1
295c3e
- Update to 2.0.0
295c3e
295c3e
* Tue Mar  7 2017 Peng Wu <pwu@redhat.com> - 1.9.92-1
295c3e
- Update to 1.9.92
295c3e
- fixes crash
295c3e
295c3e
* Tue Feb 28 2017 Peng Wu <pwu@redhat.com> - 1.9.91-2
295c3e
- Fixes crash in Double Pinyin
295c3e
295c3e
* Tue Feb 14 2017 Peng Wu <pwu@redhat.com> - 1.9.91-1
295c3e
- Update to 1.9.91
295c3e
- multiple sentence candidates
295c3e
295c3e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
295c3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
295c3e
295c3e
* Wed Nov 30 2016 Peng Wu <pwu@redhat.com> - 1.7.0-1
295c3e
- Update to 1.7.0
295c3e
- fixes build on FreeBSD
295c3e
- update cmake files
295c3e
295c3e
* Tue Nov  1 2016 Peng Wu <pwu@redhat.com> - 1.6.91-1
295c3e
- Update to 1.6.91
295c3e
- change license to GPLv3+
295c3e
- import open-gram dictionary and remove pinyin tones
295c3e
- add some checks when load data from file
295c3e
295c3e
* Wed Sep  7 2016 Peng Wu <pwu@redhat.com> - 1.6.0-1
295c3e
- Update to 1.6.0
295c3e
295c3e
* Mon Aug 15 2016 Peng Wu <pwu@redhat.com> - 1.5.92-3
295c3e
- Fixes crashes again
295c3e
295c3e
* Tue Aug  9 2016 Peng Wu <pwu@redhat.com> - 1.5.92-2
295c3e
- Fixes crashes for Full Pinyin and Bopomofo
295c3e
295c3e
* Tue Aug  2 2016 Peng Wu <pwu@redhat.com> - 1.5.92-1
295c3e
- Update to 1.5.92
295c3e
295c3e
* Mon Jul 18 2016 Peng Wu <pwu@redhat.com> - 1.5.91-1
295c3e
- Update to 1.5.91
295c3e
- Use Kyoto Cabinet instead of Berkeley DB
295c3e
295c3e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
295c3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
295c3e
295c3e
* Fri Dec  4 2015 Peng Wu <pwu@redhat.com> - 1.3.0-1
295c3e
- Update to 1.3.0
295c3e
295c3e
* Tue Nov 17 2015 Peng Wu <pwu@redhat.com> - 1.2.91-1
295c3e
- Update to 1.2.91
295c3e
295c3e
* Mon Aug  3 2015 Peng Wu <pwu@redhat.com> - 1.2.0-1
295c3e
- Update to 1.2.0
295c3e
295c3e
* Tue Jul  7 2015 Peng Wu <pwu@redhat.com> - 1.1.91-1
295c3e
- Update to 1.1.91
295c3e
295c3e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
295c3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
295c3e
295c3e
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.1.0-2
295c3e
- Rebuilt for GCC 5 C++11 ABI change
295c3e
295c3e
* Tue Mar  3 2015 Peng Wu <pwu@redhat.com> - 1.1.0-1
295c3e
- Update to 1.1.0
295c3e
295c3e
* Mon Feb  9 2015 Peng Wu <pwu@redhat.com> - 1.0.99.20150212-1
295c3e
- Update to 1.0.99.20150212
295c3e
- Bring back libpinyin-tools
295c3e
295c3e
* Tue Feb  3 2015 Peng Wu <pwu@redhat.com> - 1.0.99.20150203-2
295c3e
- Obsoletes libpinyin-tools
295c3e
295c3e
* Tue Feb  3 2015 Peng Wu <pwu@redhat.com> - 1.0.99.20150203-1
295c3e
- Update to 1.0.99.20150203
295c3e
295c3e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
295c3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
295c3e
295c3e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
295c3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
295c3e
295c3e
* Tue Nov 26 2013 Peng Wu <pwu@redhat.com> - 1.0.0-1
295c3e
- Update to 1.0.0
295c3e
295c3e
* Mon Oct 28 2013 Peng Wu <pwu@redhat.com> - 0.9.94-1
295c3e
- Update to 0.9.94
295c3e
295c3e
* Tue Jul 30 2013 Peng Wu <pwu@redhat.com> - 0.9.93-2
295c3e
- Fixes load table.conf in German locale
295c3e
295c3e
* Thu Jun 27 2013 Peng Wu <pwu@redhat.com> - 0.9.93-1
295c3e
- Update to 0.9.93
295c3e
295c3e
* Sun Jun  9 2013 Peng Wu <pwu@redhat.com> - 0.9.92-1
295c3e
- Update to 0.9.92
295c3e
295c3e
* Sun Apr 28 2013 Peng Wu <pwu@redhat.com> - 0.9.91-1
295c3e
- Update to 0.9.91
295c3e
295c3e
* Sat Mar 23 2013 Peng Wu <pwu@redhat.com> - 0.8.93-2
295c3e
- Fixes import dictionary
295c3e
295c3e
* Mon Mar 18 2013 Peng Wu <pwu@redhat.com> - 0.8.93-1
295c3e
- Update to 0.8.93
295c3e
295c3e
* Fri Mar  8 2013 Peng Wu <pwu@redhat.com> - 0.8.92-1
295c3e
- Update to 0.8.92
295c3e
295c3e
* Mon Mar  4 2013 Peng Wu <pwu@redhat.com> - 0.8.91-1
295c3e
- Update to 0.8.91
295c3e
295c3e
* Thu Feb 28 2013 Peng Wu <pwu@redhat.com> - 0.8.1-1
295c3e
- Update to 0.8.1
295c3e
- Fixes pinyin_init crashes
295c3e
295c3e
* Mon Jan 28 2013 Peng Wu <pwu@redhat.com> - 0.8.0-3
295c3e
- Fixes incomplete pinyin
295c3e
295c3e
* Wed Dec 12 2012 Peng Wu <pwu@redhat.com> - 0.8.0-2
295c3e
- Fixes chewing input
295c3e
295c3e
* Wed Nov 14 2012  Peng Wu <pwu@redhat.com> - 0.8.0-1
295c3e
- Update to 0.8.0
295c3e
295c3e
* Mon Oct 15 2012  Peng Wu <pwu@redhat.com> - 0.7.92-1
295c3e
- Update to 0.7.92
295c3e
295c3e
* Mon Sep 17 2012  Peng Wu <pwu@redhat.com> - 0.7.91-1
295c3e
- Update to 0.7.91
295c3e
295c3e
* Wed Aug 15 2012  Peng Wu <pwu@redhat.com> - 0.7.1-1
295c3e
- Update to 0.7.1
295c3e
295c3e
* Fri Jul 27 2012  Peng Wu <pwu@redhat.com> - 0.7.0-1
295c3e
- Update to 0.7.0
295c3e
295c3e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.92-3
295c3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
295c3e
295c3e
* Tue Jul 10 2012  Peng Wu <pwu@redhat.com> - 0.6.92-2
295c3e
- Update libpinyin-0.7.x-head.patch
295c3e
295c3e
* Wed Jul 04 2012  Peng Wu <pwu@redhat.com> - 0.6.92-1
295c3e
- Update to 0.6.92
295c3e
295c3e
* Tue Jun 12 2012  Peng Wu <pwu@redhat.com> - 0.6.0-3
295c3e
- Removes provides ibus-pinyin-db
295c3e
295c3e
* Thu Jun 07 2012  Peng Wu <pwu@redhat.com> - 0.6.0-2
295c3e
- Fixes "jv" => "ju"
295c3e
295c3e
* Mon May 28 2012  Peng Wu <pwu@redhat.com> - 0.6.0-1
295c3e
- Update to 0.6.0
295c3e
295c3e
* Tue Mar 27 2012  Peng Wu <pwu@redhat.com> - 0.5.92-1
295c3e
- Update to 0.5.92
295c3e
295c3e
* Wed Feb 15 2012  Peng Wu <pwu@redhat.com> - 0.5.91-3
295c3e
- Provides ibus-pinyin-db
295c3e
295c3e
* Tue Feb 14 2012  Peng Wu <pwu@redhat.com> - 0.5.91-2
295c3e
- Improves full pinyin parser2
295c3e
295c3e
* Mon Feb 13 2012  Peng Wu <pwu@redhat.com> - 0.5.91-1
295c3e
- Update to 0.5.91
295c3e
295c3e
* Sun Jan 29 2012  Peng Wu <pwu@redhat.com> - 0.5.0-2
295c3e
- Fixes pinyin parsers
295c3e
295c3e
* Wed Jan 18 2012  Peng Wu <pwu@redhat.com> - 0.5.0-1
295c3e
- Update to 0.5.0
295c3e
295c3e
* Fri Jan 13 2012  Peng Wu <pwu@redhat.com> - 0.4.93-1
295c3e
- Update to 0.4.93
295c3e
295c3e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.92-2
295c3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
295c3e
295c3e
* Thu Dec 29 2011  Peng Wu <pwu@redhat.com> - 0.4.92-1
295c3e
- Update to 0.4.92
295c3e
295c3e
* Tue Dec 27 2011  Peng Wu <pwu@redhat.com> - 0.4.91-1
295c3e
- Update to 0.4.91
295c3e
295c3e
* Fri Nov 25 2011  Peng Wu <pwu@redhat.com> - 0.3.0-2
295c3e
- Increase train factor
295c3e
295c3e
* Fri Nov 18 2011  Peng Wu <pwu@redhat.com> - 0.3.0-1
295c3e
- Update to 0.3.0
295c3e
295c3e
* Thu Nov 03 2011  Peng Wu <pwu@redhat.com> - 0.2.99.3-1
295c3e
- Update to 0.2.99.3
295c3e
295c3e
* Mon Oct 31 2011  Peng Wu <pwu@redhat.com> - 0.2.99.2-5
295c3e
- Fixes memory leak and save_db
295c3e
295c3e
* Thu Oct 27 2011  Peng Wu <pwu@redhat.com> - 0.2.99.2-4
295c3e
- Update libpinyin-0.3.x-head.patch
295c3e
295c3e
* Thu Oct 27 2011  Peng Wu <pwu@redhat.com> - 0.2.99.2-3
295c3e
- Add requires
295c3e
295c3e
* Thu Oct 27 2011  Peng Wu <pwu@redhat.com> - 0.2.99.2-2
295c3e
- Add patch libpinyin-0.3.x-head.patch
295c3e
295c3e
* Tue Oct 11 2011  Peng Wu <pwu@redhat.com> - 0.2.99.2-1
295c3e
- Update to 0.2.99.2
295c3e
295c3e
* Wed Sep 28 2011  Peng Wu <pwu@redhat.com> - 0.2.99.1-1
295c3e
- Update to 0.2.99.1
295c3e
295c3e
* Thu Sep 08 2011  Peng Wu <pwu@redhat.com> - 0.2.99-2
295c3e
- Split data sub package
295c3e
295c3e
* Wed Aug 31 2011  Peng Wu <alexepico@gmail.com> - 0.2.99-1
295c3e
- Initial version