- BuildRequires for libchewing-python changed

from python-devel to python2-devel
- RPM_BUILD_ROOT changed to buildroot
epel9
Ding-Yi Chen 12 years ago
parent 2280256489
commit 515a37deb0

@ -2,14 +2,14 @@
%define name_zh_TW %{im_name_zh_TW}函式庫
Name: libchewing
Version: 0.3.3
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Intelligent phonetic input method library for Traditional Chinese
Summary(zh_TW): %{name_zh_TW}
Group: System Environment/Libraries
License: LGPLv2+
URL: http://chewing.csie.net/
Source: https://github.com/downloads/chewing/libchewing/%{name}-%{version}.tar.bz2
Source0: https://github.com/downloads/chewing/libchewing/%{name}-%{version}.tar.bz2
#Patch0: libchewing-0.3.0-3.bz199353.patch
#Patch1: libchewing-0.3.0-4.bz206232.patch
#Patch2: libchewing-0.3.0-5.bz216581a.patch
@ -68,7 +68,7 @@ library.
Summary: libchewing python binding
Summary(zh_TW): %{name_zh_TW} python 綁定
Group: Development/Libraries
BuildRequires: python-devel
BuildRequires: python2-devel
Requires: %{name} = %{version}-%{release}
Requires: python
@ -104,21 +104,19 @@ autoreconf -ivf
%{__make} RPM_CFLAGS="%{optflags}" %{_smp_mflags}
%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} DESTDIR=%{buildroot} install
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libchewing.la
%{__mkdir} -p $RPM_BUILD_ROOT%{libchewing_python_dir}
%{__cp} python/chewing.py $RPM_BUILD_ROOT%{libchewing_python_dir}
%{__mkdir} -p $RPM_BUILD_ROOT%{_libdir}/chewing
%{__cp} data/fonetree.dat $RPM_BUILD_ROOT%{_libdir}/chewing
touch $RPM_BUILD_ROOT%{libchewing_python_dir}/__init__.py
%{__rm} %{buildroot}%{_libdir}/libchewing.la
%{__mkdir} -p %{buildroot}%{libchewing_python_dir}
%{__cp} python/chewing.py %{buildroot}%{libchewing_python_dir}
%{__mkdir} -p %{buildroot}%{_libdir}/chewing
%{__cp} data/fonetree.dat %{buildroot}%{_libdir}/chewing
touch %{buildroot}%{libchewing_python_dir}/__init__.py
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
@ -139,9 +137,13 @@ touch $RPM_BUILD_ROOT%{libchewing_python_dir}/__init__.py
%defattr(-, root, root)
%{libchewing_python_dir}
%changelog
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-3
* Tue Nov 20 2012 Ding-Yi Chen <dchen at redhat dot com> - 0.3.3-4
- BuildRequires for libchewing-python changed
from python-devel to python2-devel
- RPM_BUILD_ROOT changed to buildroot
* Thu Jul 19 2012 Ding-Yi Chen <dchen at redhat dot com> - 0.3.3-3
- Fixed Bug 477690 - libchewing multilib conflict
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-2

Loading…
Cancel
Save