Hello community, here is the log from the commit of package libchewing for openSUSE:Factory checked in at 2015-09-08 17:38:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libchewing (Old) and /work/SRC/openSUSE:Factory/.libchewing.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libchewing" Changes: -------- --- /work/SRC/openSUSE:Factory/libchewing/libchewing.changes 2014-06-16 21:26:59.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libchewing.new/libchewing.changes 2015-09-08 17:40:46.000000000 +0200 @@ -1,0 +2,31 @@ +Tue Sep 1 14:32:59 UTC 2015 - [email protected] + +- move %install_info_delete to %preun + +------------------------------------------------------------------- +Mon Aug 24 16:13:36 UTC 2015 - [email protected] + +- Update to version 0.4.0+git20150820.285b47d: + + fix resource leak + + Add notification_email + + Update build_command_prepend + + Do not write last element of phone_array + + Prevent fclose null file handler + + Check return value for ftell + + Check return value of UserGetPhraseFirst before use + + testhelper.c: clean_userphase() ignore ENOENT + + init_database.c: Fix strtoul error checking + + init_database: make integer comparison 64-bit safe + + Fix Coverity error "Buffer not null terminated" + + Fix Coverity error "Copy into fixed size buffer" + + Fix Coverity error "Explicit null dereferenced" + + init_database.c: Resolve queue-full exception + + gen_keystroke.c: Use static APIs + + genkeystroke.c: Fix buffer usage + + Disable selection keys out of the reasonable range + + dump_database: utilize plat_mmap for file operations + + Fix ChewingKillChar which is disabling OpenSymbolChoice + + Use chewing_delete to delete ChewingContext + + Detect attribute existence by hasattr, not __dict__ + +------------------------------------------------------------------- Old: ---- chewing-utils-0.4.0git20130807.tar.bz2 libchewing-0.4.0.tar.bz2 New: ---- _service _servicedata chewing-utils-0.4.0+git20150602.81299e5.tar.gz libchewing-0.4.0+git20150820.285b47d.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libchewing.spec ++++++ --- /var/tmp/diff_new_pack.4B5Yww/_old 2015-09-08 17:40:53.000000000 +0200 +++ /var/tmp/diff_new_pack.4B5Yww/_new 2015-09-08 17:40:53.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package libchewing # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,24 +17,30 @@ %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%define with_utils 1 +%if %{with_utils} +%define utilver 0.4.0+git20150602.81299e5 +%endif Name: libchewing -%define lname libchewing3 -Version: 0.4.0 +%define soname 3 +Version: 0.4.0+git20150820.285b47d Release: 0 -%define utilver 0.4.0git20130807 Summary: Intelligent Phonetic Input Method Library for Traditional Chinese License: LGPL-2.1+ Group: System/I18n/Chinese Url: https://github.com/chewing -Source: https://github.com/chewing/libchewing/releases/download/v%{version}/%{name}-%{version}.tar.bz2 -Source1: chewing-utils-%{utilver}.tar.bz2 +Source: %{name}-%{version}.tar.xz +Source1: chewing-utils-%{utilver}.tar.gz #PATCH-FIX-UPSTREAM [email protected] fix a lot of errors in the code Source2: chewing-utils-abuild.patch #PATCH-FIX-UPSTREAM [email protected] remove rpath from simple-select Patch: libchewing-0.4.0-simple-select-rpath.patch +Source99: baselibs.conf BuildRequires: autoconf >= 2.67 +%if %{with_utils} BuildRequires: gtk2-devel +%endif BuildRequires: libtool %if 0%{?suse_version} >= 1230 BuildRequires: makeinfo @@ -55,21 +61,19 @@ %package devel Summary: Development package for chewing Group: Development/Libraries/C and C++ -Requires: %{name} = %{version} +Requires: %{name}%{soname} = %{version} Requires: python-chewing = %{version} %description devel Development package for chewing (An Intelligent phonetic input method library for traditional Chinese) -%package -n %lname +%package -n %{name}%{soname} Summary: Chewing libraries Group: System/Libraries -Provides: %{name} = %{version} -Obsoletes: %{name} < %{version} Requires: chewing-data Recommends: chewing-utils = %{version} -%description -n %lname +%description -n %{name}%{soname} This package contains libraries for Chewing, an intelligent phonetic input method library for traditional Chinese. @@ -122,26 +126,26 @@ # build contrib pushd contrib -make -f Makefile +make -f Makefile %{?_smp_mflags} popd # build utils cp -r %{SOURCE1} ./ -tar -xjf chewing-utils-%{utilver}.tar.bz2 -rm -rf chewing-utils-%{utilver}.tar.bz2 +tar -xf chewing-utils-%{utilver}.tar.gz +rm -rf chewing-utils-%{utilver}.tar.gz pushd chewing-utils-%{utilver}/hash-editor pushd .. patch -p1 < %{SOURCE2} popd -make +make %{?_smp_mflags} popd %install # install main -%make_install +make DESTDIR=%{buildroot} install %{?_smp_mflags} # remove .la file -rm -f %{buildroot}%{_libdir}/*.la +find %{buildroot}%{_libdir} -name "*.la" -delete # install simple-select mkdir -p %{buildroot}%{_bindir} @@ -164,21 +168,22 @@ cp -r hash-editor/src/zhuindict_compile %{buildroot}%{_bindir} popd -%post -n %lname +%post -n %{name}%{soname} /sbin/ldconfig -%install_info --info-dir=%{_infodir} %{_infodir}/libchewing.info.gz +%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz -%postun -n %lname -/sbin/ldconfig -%install_info_delete --info-dir=%{_infodir} %{_infodir}/libchewing.info.gz +%postun -n %{name}%{soname} -p /sbin/ldconfig + +%preun -n %{name}%{soname} +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %post -n chewing-utils -p /sbin/ldconfig %postun -n chewing-utils -p /sbin/ldconfig -%files -n %lname +%files -n %{name}%{soname} %defattr(-, root, root) -%doc AUTHORS ChangeLog COPYING NEWS README.md TODO +%doc AUTHORS COPYING NEWS README.md TODO %{_bindir}/simple-select %{_libdir}/libchewing.so.3 %{_libdir}/libchewing.so.3.2.0 @@ -186,7 +191,7 @@ %files -n chewing-data %defattr(-, root, root) -%{_datadir}/libchewing/ +%{_datadir}/%{name}/ %files -n python-chewing %defattr(-, root, root) ++++++ _service ++++++ <services> <service name="tar_scm" mode="disabled"> <param name="url">https://github.com/chewing/libchewing/</param> <param name="scm">git</param> <param name="exclude">.git</param> <param name="versionformat">0.4.0+git%cd.%h</param> <param name="revision">master</param> <param name="changesgenerate">enable</param> </service> <service name="recompress" mode="disabled"> <param name="file">libchewing-*.tar</param> <param name="compression">xz</param> </service> <service name="set_version" mode="disabled"> <param name="basename">libchewing</param> </service> </services> ++++++ _servicedata ++++++ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/chewing/libchewing/</param> <param name="changesrevision">285b47d498e39fe556f0176416c1513e15b7ae37</param></service></servicedata>
