From 0b2dce867431c7fcedc1daa6f5f1a8ce559367aa Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 13 Jul 2020 17:50:47 +0800 Subject: [PATCH] Switch to use py_byte_compile rpm macro --- ibus-libzhuyin.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ibus-libzhuyin.spec b/ibus-libzhuyin.spec index 135fe33..e9316fd 100644 --- a/ibus-libzhuyin.spec +++ b/ibus-libzhuyin.spec @@ -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 Name: ibus-libzhuyin Version: 1.9.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: New Zhuyin engine based on libzhuyin for IBus License: GPLv2+ URL: https://github.com/libzhuyin/ibus-libzhuyin @@ -54,6 +50,8 @@ make %{?_smp_mflags} V=1 %install make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p" +%py_byte_compile %{python3} $RPM_BUILD_ROOT/%{datadir}/ibus-libzhuyin/setup + %find_lang %{name} %files -f %{name}.lang @@ -72,6 +70,9 @@ make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p" %changelog +* Mon Jul 13 2020 Peng Wu - 1.9.1-4 +- Switch to use py_byte_compile rpm macro + * Wed Jan 29 2020 Fedora Release Engineering - 1.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild