Группа :: Система/Библиотеки
Пакет: libchewing
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-python
BuildRequires: perl(FileHandle.pm) perl(Text/Wrap.pm) texinfo
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%global libchewing_python_dir %{python_sitelibdir}/libchewing
%global im_name_zh_TW Ф√╟И┘╥И÷ЁХ╪╦Е┘╔ФЁ∙
%global name_zh_TW %{im_name_zh_TW}Е┤╫Е╪▐Е╨╚
Name: libchewing
Version: 0.5.1
Release: alt1_8
Summary: Intelligent phonetic input method library for Traditional Chinese
Summary(zh_TW): %{name_zh_TW}
Group: System/Libraries
License: LGPLv2+
URL: http://chewing.csie.net/
Source0: https://github.com/chewing/%{name}/archive/v%{version}.tar.gz
Source1: https://raw.githubusercontent.com/chewing/%{name}/v%{version}/contrib/python/chewing.py
BuildRequires: autoconf automake libtool makeinfo
BuildRequires: libsqlite3-devel
Requires: sqlite3
Requires(post): info info-install
Requires(preun): info info-install
Source44: import.info
%description
libchewing is an intelligent phonetic input method library for Chinese.
It provides the core algorithm and logic that can be used by various
input methods. The Chewing input method is a smart bopomofo phonetics
input method that is useful for inputting Mandarin Chinese.
%description -l zh_TW
%{name_zh_TW}Ф▐░Д╬⌡Е╞╕Е│ Д╨├Ф═╦Е©┐И│╦Е╜≈Ф╪■Г╝≈ФЁ∙О╪▄Д╩╔Д╬©Х╪╦Е┘╔ФЁ∙Г╗▀Е╪▐Х╙©Г■╗Ц─┌
%{im_name_zh_TW}Ф≤╞Д╦─Г╗╝Ф≥╨Ф┘╖Е·▀ФЁ╗И÷Ё/Ф▀╪И÷ЁГ▄°Е╜≈Х╪╦Е┘╔ФЁ∙О╪▄И─▐И│▌Ф≥╨Ф┘╖Е·▀Г └Е╜≈Е╨╚Е┬├Ф·░Ц─│Г©▓Ф┘ёХ╗≤И▄└Е╜╦Г©▓Х┬┤И═░Ф╦╛Е┬├Ф·░О╪▄
Д╫©Ф▀╪Е╜≈Х╪╦Е┘╔Г └Д╨╨Г┌╨И│╦Е╜≈Ф╘÷Г▌┤И≥█Х┤ЁФ°─Д╫▌О╪▄И─╡Х─▄Ф▐░Е█┤Д╦╜Ф√┤Х╪╦Е┘╔Ц─│Ф┴⌠Е╜≈Г └Ф∙┬Г▌┤Ц─┌
%package -n %{name}-devel
Summary: Development files for libchewing
Summary(zh_TW): %{name_zh_TW}И√▀Г≥╪Х─┘Е╔≈Д╩╤
Group: Development/Other
Requires: %{name} = %{version}-%{release}
%description -n %{name}-devel
Headers and other files needed to develop applications using the %{name}
library.
%description -l zh_TW -n %{name}-devel
%{name_zh_TW}И√▀Г≥╪Х─┘Е╔≈Д╩╤Ф▐░Д╬⌡Д╨├И√▀Г≥╪%{im_name_zh_TW}Г⌡╦И≈°Г╗▀Е╪▐Ф┴─И°─Г └Ф╙■Ф║┬О╪▄
Е┐▐Ф≤╞Ф╗≥И═╜Ф╙■(header files)О╪▄Д╩╔Е▐┼Е┤╫Е╪▐Е╨╚Ц─┌
%package -n python-module-chewing
Summary: Python binding for libchewing
Summary(zh_TW): %{name_zh_TW} python Г╤│Е╝
Group: Development/Other
BuildRequires: python-devel
Requires: %{name} = %{version}-%{release}
Requires: python
%{?python_provide:%python_provide python2-%{name}}
# Remove before F30
Provides: %{name}-python = %{version}-%{release}
Provides: %{name}-python = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release}
%description -n python-module-chewing
Python binding of libchewing.
%description -l zh_TW -n python-module-chewing
%{name_zh_TW} python Г╤│Е╝
%prep
%setup -q
mkdir -p contrib/python
cp -p %SOURCE1 contrib/python
%build
CFLAGS="%{optflags} -g -DLIBINSTDIR='%{_libdir}'"
autoreconf -ivf
%configure --disable-static
make V=1 RPM_CFLAGS="%{optflags}" %{_smp_mflags}
%install
make DESTDIR=%{buildroot} install INSTALL="install -p"
rm %{buildroot}%{_libdir}/libchewing.la
mkdir -p %{buildroot}%{libchewing_python_dir}
cp -p contrib/python/chewing.py %{buildroot}%{libchewing_python_dir}
mkdir -p %{buildroot}%{_libdir}/chewing
touch %{buildroot}%{libchewing_python_dir}/__init__.py
rm -f %{buildroot}/%{_infodir}/dir
%files
%doc README.md AUTHORS COPYING NEWS TODO
%{_datadir}/%{name}/*
%{_libdir}/*.so.*
%{_infodir}/%{name}.info.*
%files devel
%dir %{_includedir}/chewing
%{_includedir}/chewing/*
%{_libdir}/pkgconfig/chewing.pc
%{_libdir}/*.so
%files -n python-module-chewing
%{libchewing_python_dir}
%changelog
…
Полный changelog можно просмотреть здесь
BuildRequires(pre): rpm-build-python
BuildRequires: perl(FileHandle.pm) perl(Text/Wrap.pm) texinfo
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%global libchewing_python_dir %{python_sitelibdir}/libchewing
%global im_name_zh_TW Ф√╟И┘╥И÷ЁХ╪╦Е┘╔ФЁ∙
%global name_zh_TW %{im_name_zh_TW}Е┤╫Е╪▐Е╨╚
Name: libchewing
Version: 0.5.1
Release: alt1_8
Summary: Intelligent phonetic input method library for Traditional Chinese
Summary(zh_TW): %{name_zh_TW}
Group: System/Libraries
License: LGPLv2+
URL: http://chewing.csie.net/
Source0: https://github.com/chewing/%{name}/archive/v%{version}.tar.gz
Source1: https://raw.githubusercontent.com/chewing/%{name}/v%{version}/contrib/python/chewing.py
BuildRequires: autoconf automake libtool makeinfo
BuildRequires: libsqlite3-devel
Requires: sqlite3
Requires(post): info info-install
Requires(preun): info info-install
Source44: import.info
%description
libchewing is an intelligent phonetic input method library for Chinese.
It provides the core algorithm and logic that can be used by various
input methods. The Chewing input method is a smart bopomofo phonetics
input method that is useful for inputting Mandarin Chinese.
%description -l zh_TW
%{name_zh_TW}Ф▐░Д╬⌡Е╞╕Е│ Д╨├Ф═╦Е©┐И│╦Е╜≈Ф╪■Г╝≈ФЁ∙О╪▄Д╩╔Д╬©Х╪╦Е┘╔ФЁ∙Г╗▀Е╪▐Х╙©Г■╗Ц─┌
%{im_name_zh_TW}Ф≤╞Д╦─Г╗╝Ф≥╨Ф┘╖Е·▀ФЁ╗И÷Ё/Ф▀╪И÷ЁГ▄°Е╜≈Х╪╦Е┘╔ФЁ∙О╪▄И─▐И│▌Ф≥╨Ф┘╖Е·▀Г └Е╜≈Е╨╚Е┬├Ф·░Ц─│Г©▓Ф┘ёХ╗≤И▄└Е╜╦Г©▓Х┬┤И═░Ф╦╛Е┬├Ф·░О╪▄
Д╫©Ф▀╪Е╜≈Х╪╦Е┘╔Г └Д╨╨Г┌╨И│╦Е╜≈Ф╘÷Г▌┤И≥█Х┤ЁФ°─Д╫▌О╪▄И─╡Х─▄Ф▐░Е█┤Д╦╜Ф√┤Х╪╦Е┘╔Ц─│Ф┴⌠Е╜≈Г └Ф∙┬Г▌┤Ц─┌
%package -n %{name}-devel
Summary: Development files for libchewing
Summary(zh_TW): %{name_zh_TW}И√▀Г≥╪Х─┘Е╔≈Д╩╤
Group: Development/Other
Requires: %{name} = %{version}-%{release}
%description -n %{name}-devel
Headers and other files needed to develop applications using the %{name}
library.
%description -l zh_TW -n %{name}-devel
%{name_zh_TW}И√▀Г≥╪Х─┘Е╔≈Д╩╤Ф▐░Д╬⌡Д╨├И√▀Г≥╪%{im_name_zh_TW}Г⌡╦И≈°Г╗▀Е╪▐Ф┴─И°─Г └Ф╙■Ф║┬О╪▄
Е┐▐Ф≤╞Ф╗≥И═╜Ф╙■(header files)О╪▄Д╩╔Е▐┼Е┤╫Е╪▐Е╨╚Ц─┌
%package -n python-module-chewing
Summary: Python binding for libchewing
Summary(zh_TW): %{name_zh_TW} python Г╤│Е╝
Group: Development/Other
BuildRequires: python-devel
Requires: %{name} = %{version}-%{release}
Requires: python
%{?python_provide:%python_provide python2-%{name}}
# Remove before F30
Provides: %{name}-python = %{version}-%{release}
Provides: %{name}-python = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release}
%description -n python-module-chewing
Python binding of libchewing.
%description -l zh_TW -n python-module-chewing
%{name_zh_TW} python Г╤│Е╝
%prep
%setup -q
mkdir -p contrib/python
cp -p %SOURCE1 contrib/python
%build
CFLAGS="%{optflags} -g -DLIBINSTDIR='%{_libdir}'"
autoreconf -ivf
%configure --disable-static
make V=1 RPM_CFLAGS="%{optflags}" %{_smp_mflags}
%install
make DESTDIR=%{buildroot} install INSTALL="install -p"
rm %{buildroot}%{_libdir}/libchewing.la
mkdir -p %{buildroot}%{libchewing_python_dir}
cp -p contrib/python/chewing.py %{buildroot}%{libchewing_python_dir}
mkdir -p %{buildroot}%{_libdir}/chewing
touch %{buildroot}%{libchewing_python_dir}/__init__.py
rm -f %{buildroot}/%{_infodir}/dir
%files
%doc README.md AUTHORS COPYING NEWS TODO
%{_datadir}/%{name}/*
%{_libdir}/*.so.*
%{_infodir}/%{name}.info.*
%files devel
%dir %{_includedir}/chewing
%{_includedir}/chewing/*
%{_libdir}/pkgconfig/chewing.pc
%{_libdir}/*.so
%files -n python-module-chewing
%{libchewing_python_dir}
%changelog
…
Полный changelog можно просмотреть здесь