Switch to use py_byte_compile rpm macro

This commit is contained in:
Peng Wu 2020-07-13 17:50:47 +08:00
parent 373673742a
commit 0b2dce8674

View File

@ -1,12 +1,8 @@
# This package depends on automagic byte compilation
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
%global _python_bytecompile_extra 1
%global snapshot 0 %global snapshot 0
Name: ibus-libzhuyin Name: ibus-libzhuyin
Version: 1.9.1 Version: 1.9.1
Release: 3%{?dist} Release: 4%{?dist}
Summary: New Zhuyin engine based on libzhuyin for IBus Summary: New Zhuyin engine based on libzhuyin for IBus
License: GPLv2+ License: GPLv2+
URL: https://github.com/libzhuyin/ibus-libzhuyin URL: https://github.com/libzhuyin/ibus-libzhuyin
@ -54,6 +50,8 @@ make %{?_smp_mflags} V=1
%install %install
make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p" make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
%py_byte_compile %{python3} $RPM_BUILD_ROOT/%{datadir}/ibus-libzhuyin/setup
%find_lang %{name} %find_lang %{name}
%files -f %{name}.lang %files -f %{name}.lang
@ -72,6 +70,9 @@ make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
%changelog %changelog
* Mon Jul 13 2020 Peng Wu <pwu@redhat.com> - 1.9.1-4
- Switch to use py_byte_compile rpm macro
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-3 * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild