diff --git a/libchewing.spec b/libchewing.spec index d6748715a8..3166329928 100644 --- a/libchewing.spec +++ b/libchewing.spec @@ -6,7 +6,7 @@ Name: libchewing Version: 0.5.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Intelligent phonetic input method library for Traditional Chinese Summary(zh_TW): %{name_zh_TW} @@ -50,18 +50,23 @@ library. 像是標頭檔(header files),以及函式庫。 -%package -n %{name}-python +%package -n python2-%{name} Summary: Python binding for libchewing Summary(zh_TW): %{name_zh_TW} python 綁定 Group: Development/Libraries BuildRequires: python2-devel Requires: %{name}%{?_isa} = %{version}-%{release} Requires: python +%{?python_provide:%python_provide python2-%{name}} +# Remove before F30 +Provides: %{name}-python = %{version}-%{release} +Provides: %{name}-python%{?_isa} = %{version}-%{release} +Obsoletes: %{name}-python < %{version}-%{release} -%description -n %{name}-python +%description -n python2-%{name} Python binding of libchewing. -%description -l zh_TW -n %{name}-python +%description -l zh_TW -n python2-%{name} %{name_zh_TW} python 綁定 %prep @@ -112,10 +117,14 @@ fi %{_libdir}/pkgconfig/chewing.pc %{_libdir}/*.so -%files python +%files -n python2-%{name} %{libchewing_python_dir} %changelog +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 0.5.1-6 +- Python 2 binary subpackage is renamed to python2-libchewing + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Aug 03 2017 Fedora Release Engineering - 0.5.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild