Add conditional for anthy module subpackage
This commit is contained in:
parent
f55d93a40d
commit
0e0a675ba2
@ -1,9 +1,13 @@
|
|||||||
# note this duplicates native anthy IMEs
|
# note this duplicates native anthy IMEs
|
||||||
|
%if 0%{?fedora}
|
||||||
%bcond_without anthy
|
%bcond_without anthy
|
||||||
|
%else
|
||||||
|
%bcond_with anthy
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: m17n-lib
|
Name: m17n-lib
|
||||||
Version: 1.8.0
|
Version: 1.8.0
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Summary: Multilingual text library
|
Summary: Multilingual text library
|
||||||
|
|
||||||
License: LGPLv2+
|
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.
|
The package provides the core and input method backend libraries.
|
||||||
|
|
||||||
|
%if %{with anthy}
|
||||||
%package anthy
|
%package anthy
|
||||||
Summary: Anthy module for m17n
|
Summary: Anthy module for m17n
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description anthy
|
%description anthy
|
||||||
Anthy module for %{name} allows ja-anthy.mim to support input conversion.
|
Anthy module for %{name} allows ja-anthy.mim to support input conversion.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
@ -80,6 +85,10 @@ make install DESTDIR=%{buildroot} INSTALL="install -p"
|
|||||||
# fix bug rh#680363
|
# fix bug rh#680363
|
||||||
rm %{buildroot}%{_libdir}/m17n/1.0/libmimx-ispell.so
|
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 {} ';'
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
@ -98,8 +107,10 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|||||||
%{_libdir}/libm17n-flt.so.*
|
%{_libdir}/libm17n-flt.so.*
|
||||||
|
|
||||||
#Anthy module
|
#Anthy module
|
||||||
|
%if %{with anthy}
|
||||||
%files anthy
|
%files anthy
|
||||||
%{_libdir}/m17n/1.0/libmimx-anthy.so
|
%{_libdir}/m17n/1.0/libmimx-anthy.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
@ -116,6 +127,9 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|||||||
%{_libdir}/libm17n-gui.so.*
|
%{_libdir}/libm17n-gui.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 04 2021 Parag Nemade <pnemade AT redhat DOT com> - 1.8.0-10
|
||||||
|
- Add conditional for anthy module subpackage
|
||||||
|
|
||||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-9
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-9
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user