From 0e0a675ba29dc579d55aac0dc89528957d5b361a Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Fri, 4 Jun 2021 15:37:56 +0530 Subject: [PATCH] Add conditional for anthy module subpackage --- m17n-lib.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/m17n-lib.spec b/m17n-lib.spec index 7e55853..446666b 100644 --- a/m17n-lib.spec +++ b/m17n-lib.spec @@ -1,9 +1,13 @@ # note this duplicates native anthy IMEs +%if 0%{?fedora} %bcond_without anthy +%else +%bcond_with anthy +%endif Name: m17n-lib Version: 1.8.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Multilingual text library License: LGPLv2+ @@ -37,13 +41,14 @@ the input of many languages with the input table maps from m17n-db. The package provides the core and input method backend libraries. +%if %{with anthy} %package anthy Summary: Anthy module for m17n Requires: %{name}%{?_isa} = %{version}-%{release} %description anthy Anthy module for %{name} allows ja-anthy.mim to support input conversion. - +%endif %package devel Summary: Development files for %{name} @@ -80,6 +85,10 @@ make install DESTDIR=%{buildroot} INSTALL="install -p" # fix bug rh#680363 rm %{buildroot}%{_libdir}/m17n/1.0/libmimx-ispell.so +%if %{without anthy} +rm %{buildroot}%{_libdir}/m17n/1.0/libmimx-anthy.so +%endif + find %{buildroot} -name '*.la' -exec rm -f {} ';' %ldconfig_scriptlets @@ -98,8 +107,10 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %{_libdir}/libm17n-flt.so.* #Anthy module +%if %{with anthy} %files anthy %{_libdir}/m17n/1.0/libmimx-anthy.so +%endif %files devel %{_includedir}/* @@ -116,6 +127,9 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %{_libdir}/libm17n-gui.so.* %changelog +* Fri Jun 04 2021 Parag Nemade - 1.8.0-10 +- Add conditional for anthy module subpackage + * Tue Jan 26 2021 Fedora Release Engineering - 1.8.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild