Resolves:rhbz#1967892 - Add conditional for anthy module subpackage

This commit is contained in:
Parag Nemade 2021-06-07 09:02:56 +05:30
parent 81df5a36fa
commit bc3f3eb9c9
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -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: 11%{?dist}
Release: 12%{?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
* Mon Jun 07 2021 Parag Nemade <pnemade AT redhat DOT com> - 1.8.0-12
- Resolves:rhbz#1967892 - Add conditional for anthy module subpackage
* Tue May 25 2021 Parag Nemade <pnemade AT redhat DOT com> - 1.8.0-11
- Resolves:rhbz#1961998 - Add gating tests from rhel-8