Hello community,

here is the log from the commit of package libchewing for openSUSE:Factory 
checked in at 2013-04-26 13:27:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libchewing (Old)
 and      /work/SRC/openSUSE:Factory/.libchewing.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libchewing", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libchewing/libchewing.changes    2013-04-23 
15:10:39.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libchewing.new/libchewing.changes       
2013-04-26 13:27:08.000000000 +0200
@@ -1,0 +2,18 @@
+Wed Apr 24 06:43:59 UTC 2013 - [email protected]
+
+- retrack upstream source. previous source is from unknown origin.
+  * it couldn't be found at the link in specfile.
+  * it didn't have the same content and build result
+    as upstream source.
+  * it missed entire python and data sub directories,
+    so almost useless.
+- remove ambiguous libchewing package. fix bnc#808338
+  * libchewing is always taken as an old version by users.
+  * libchewing contained the runtime libraries but it was
+    not required by libchewing3. important orphan package.
+    so ibus-chewing and fcitx-chewing can't work.
+- enable ncurses wide-char and thread-safe (w6)
+- enable python.
+- new sub-packages: chewing-data python-chewing chewing-utils
+
+-------------------------------------------------------------------

Old:
----
  libchewing-0.3.4.tar.bz2

New:
----
  chewing-utils-0.3.4.git20130424.tar.bz2
  libchewing-0.3.4.git20130424.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libchewing.spec ++++++
--- /var/tmp/diff_new_pack.pcbZoy/_old  2013-04-26 13:27:10.000000000 +0200
+++ /var/tmp/diff_new_pack.pcbZoy/_new  2013-04-26 13:27:10.000000000 +0200
@@ -16,58 +16,146 @@
 #
 
 
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
 Name:           libchewing
 %define lname  libchewing3
-Version:        0.3.4
+Version:        0.3.4.git20130424
 Release:        0
-Url:            http://chewing.csie.net/
 Summary:        Intelligent Phonetic Input Method Library for Traditional 
Chinese
 License:        LGPL-2.1+
 Group:          System/I18n/Chinese
-
-Source0:        
http://chewing.csie.net/download/libchewing/%{name}-%{version}.tar.bz2
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Url:            https://github.com/chewing
+Source:         %{name}-%{version}.tar.bz2
+Source1:        chewing-utils-%{version}.tar.bz2
 BuildRequires:  autoconf >= 2.67
 BuildRequires:  check-devel
+BuildRequires:  gtk2-devel
 BuildRequires:  libtool
+%if 0%{?suse_version} >= 1230
+BuildRequires:  makeinfo
+%else
+BuildRequires:  texinfo
+%endif
+BuildRequires:  ncurses-devel
 BuildRequires:  pkg-config
+BuildRequires:  python-devel
+Requires(post):        info
+Requires(postun):      info
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 Intelligent phonetic input method library for traditional Chinese.
 
-%package devel
+%package -n chewing-devel
 Summary:        Development package for chewing
-Group:          Development/Libraries/Other
-Requires:       %lname = %version
-Requires:       glibc-devel
+Group:          Development/Libraries/C and C++
+Requires:       %{name} = %{version}
+Requires:       python-chewing = %{version}
+Provides:       %{name}-devel = %{version}
+Obsoletes:      %{name}-devel = %{version}
 
-%description devel
+%description -n chewing-devel
 Development package for chewing (An Intelligent phonetic input method library 
for traditional Chinese)
 
 %package -n %lname
 Summary:        Chewing libraries
 Group:          System/Libraries
-# The package with the data files is needed
-Requires:       %name = %version
+Provides:       %{name} = %{version}
+Obsoletes:      %{name} < %{version}
+Requires:       chewing-data = %{version}
+Recommends:     chewing-utils = %{version}
 
 %description -n %lname
 This package contains libraries for Chewing, an intelligent phonetic
 input method library for traditional Chinese.
 
+%package -n chewing-data
+Summary:        Chewing Data for %{name}
+Group:          System/I18n/Chinese
+
+%description -n chewing-data
+This package contains data files for chewing, an intelligent phonetic
+input method library for traditional Chinese.
+
+%package -n chewing-utils
+Summary:        Hash editor for %{name}
+Group:          System/I18n/Chinese
+
+%description -n chewing-utils
+This package contains a hash editor for chewing, an intelligent phonetic
+input method library for tranditional Chinese.
+
+It's used to add, modify and remove entries in the chewing user database
+(usually located at ~/.chewing/uhash.dat).
+
+%package -n python-chewing
+Summary:        Python 2 bindings for %{name}
+Group:          Development/Libraries/Python
+%py_requires
+
+%description -n python-chewing
+This package contains python bindings for chewing, an intelligent phonetic
+input method library for traditional Chinese.
+
+Only input method framework written in python (like very old versions of ibus)
+or developers will need it.
+
+
 %prep
 %setup -q
 
 %build
-rm -f aclocal.m4
-autoreconf --force --install --verbose
-CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
-%configure --disable-static --with-pic 
+# build libchewing main
+./autogen.sh
+NCURSESW6_CFLAGS=`ncursesw6-config --cflags`
+NCURSESW6_LIBS=`ncursesw6-config --libs`
+CFLAGS="$NCURSESW6_CFLAGS %{optflags} -fno-strict-aliasing" \
+LIBS="$NCURSES_LIBS" \
+%configure --disable-static --with-pic --with-ncurses
 
 make %{?_smp_mflags}
 
+# build contrib
+pushd contrib
+make -f Makefile-simple-select
+popd
+
+# build utils
+cp -r %{SOURCE1} ./
+tar -xjf chewing-utils-%{version}.tar.bz2
+rm -rf chewing-utils-%{version}.tar.bz2
+pushd chewing-utils-%{version}/hash-editor
+make
+popd
+
 %install
-make DESTDIR=${RPM_BUILD_ROOT} install
-%{__rm} -f %{buildroot}%{_libdir}/*.la
+# install main
+%make_install
+
+# remove .la file
+rm -f %{buildroot}%{_libdir}/*.la
+
+# install simple-select
+mkdir -p %{buildroot}%{_bindir}
+cp -r contrib/simple-select %{buildroot}%{_bindir}
+
+# install python 2 bindings
+mkdir -p %{buildroot}%{python_sitearch}/chewing/
+cp -r contrib/python/chewing.py %{buildroot}%{python_sitearch}/chewing/
+pushd %{buildroot}%{python_sitearch}/chewing/
+%py_compile -O .
+popd
+
+# install chewing-utils
+mkdir -p %{buildroot}%{_docdir}/chewing-utils
+pushd chewing-utils-%{version}
+cp -r AUTHORS %{buildroot}%{_docdir}/chewing-utils/
+cp -r COPYING %{buildroot}%{_docdir}/chewing-utils/
+cp -r hash-editor/ChangeLog.old %{buildroot}%{_docdir}/chewing-utils/ChangeLog
+cp -r hash-editor/src/che %{buildroot}%{_bindir}
+cp -r hash-editor/src/zhuindict_compile %{buildroot}%{_bindir}
+popd
 
 %post
 %install_info --info-dir=%{_infodir} %{_infodir}/libchewing.info.gz
@@ -75,26 +163,40 @@
 %postun
 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libchewing.info.gz
 
-%post -n libchewing3 -p /sbin/ldconfig
+%post -n %lname -p /sbin/ldconfig
+
+%postun -n %lname -p /sbin/ldconfig
+
+%post -n chewing-utils -p /sbin/ldconfig
 
-%postun -n libchewing3 -p /sbin/ldconfig
+%postun -n chewing-utils -p /sbin/ldconfig
 
-%files
+%files -n %lname
 %defattr(-, root, root)
-%doc AUTHORS COPYING NEWS README ChangeLog
-%dir %{_libdir}/libchewing
-%{_libdir}/libchewing/*
+%doc AUTHORS COPYING NEWS README TODO scripts/ChangeLog-svn
+%{_bindir}/simple-select
+%{_libdir}/libchewing.so.3
+%{_libdir}/libchewing.so.3.0.1
 %{_infodir}/*.gz
 
-%files -n %lname
+%files -n chewing-data
+%defattr(-, root, root)
+%{_libdir}/libchewing/
+
+%files -n python-chewing
+%defattr(-, root, root)
+%{python_sitearch}/chewing
+
+%files -n chewing-utils
 %defattr(-, root, root)
-%{_libdir}/libchewing.so.*
+%{_bindir}/che
+%{_bindir}/zhuindict_compile
+%doc %{_docdir}/chewing-utils
 
-%files devel
+%files -n chewing-devel
 %defattr(-, root, root)
-%dir %{_includedir}/chewing
-%{_includedir}/chewing/*
-%{_libdir}/lib*.so
+%{_includedir}/chewing/
+%{_libdir}/libchewing.so
 %{_libdir}/pkgconfig/chewing.pc
 
 %changelog

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to