2009-12-23 09:44:36 +00:00
|
|
|
# note this duplicates native anthy IMEs
|
2021-06-04 10:07:56 +00:00
|
|
|
%if 0%{?fedora}
|
2009-12-23 09:44:36 +00:00
|
|
|
%bcond_without anthy
|
2021-06-04 10:07:56 +00:00
|
|
|
%else
|
|
|
|
%bcond_with anthy
|
|
|
|
%endif
|
2005-12-16 03:47:54 +00:00
|
|
|
|
2014-12-25 11:21:35 +00:00
|
|
|
Name: m17n-lib
|
2023-08-23 08:31:44 +00:00
|
|
|
Version: 1.8.4
|
2024-07-18 08:56:00 +00:00
|
|
|
Release: %autorelease
|
2014-12-25 11:21:35 +00:00
|
|
|
Summary: Multilingual text library
|
2007-12-28 10:55:29 +00:00
|
|
|
|
2022-11-30 14:15:13 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2014-12-25 11:21:35 +00:00
|
|
|
URL: http://www.nongnu.org/m17n/
|
2018-02-10 07:31:51 +00:00
|
|
|
Source0: http://download.savannah.gnu.org/releases/m17n/%{name}-%{version}.tar.gz
|
2018-02-10 08:13:11 +00:00
|
|
|
Patch0: %{name}-1.8.0-multilib.patch
|
2011-03-22 09:12:56 +00:00
|
|
|
|
2021-01-06 21:20:37 +00:00
|
|
|
BuildRequires: make
|
2014-08-07 08:13:32 +00:00
|
|
|
BuildRequires: m17n-db-devel libthai-devel
|
2014-12-25 11:21:35 +00:00
|
|
|
BuildRequires: libxml2-devel libXft-devel
|
|
|
|
BuildRequires: fontconfig-devel freetype-devel
|
|
|
|
BuildRequires: fribidi-devel gd-devel
|
|
|
|
BuildRequires: libXaw-devel libotf-devel
|
|
|
|
BuildRequires: autoconf gettext-devel
|
|
|
|
BuildRequires: automake libtool
|
|
|
|
|
2018-11-26 13:51:47 +00:00
|
|
|
# The upstream source contains part of gnulib
|
|
|
|
# library which includes directories intl and m4
|
|
|
|
Provides: bundled(gnulib)
|
|
|
|
|
2009-12-23 09:44:36 +00:00
|
|
|
%if %{with anthy}
|
2007-12-28 10:55:29 +00:00
|
|
|
BuildRequires: anthy-devel
|
2005-12-16 03:47:54 +00:00
|
|
|
%endif
|
2010-04-07 06:42:01 +00:00
|
|
|
|
2014-12-25 11:21:35 +00:00
|
|
|
Requires: m17n-db
|
2005-12-16 03:47:54 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
m17n-lib is a multilingual text library used primarily to allow
|
|
|
|
the input of many languages with the input table maps from m17n-db.
|
|
|
|
|
2009-12-23 09:44:36 +00:00
|
|
|
The package provides the core and input method backend libraries.
|
|
|
|
|
2021-06-04 10:07:56 +00:00
|
|
|
%if %{with anthy}
|
2009-12-23 09:44:36 +00:00
|
|
|
%package anthy
|
|
|
|
Summary: Anthy module for m17n
|
2012-11-21 09:27:42 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2009-12-23 09:44:36 +00:00
|
|
|
|
|
|
|
%description anthy
|
|
|
|
Anthy module for %{name} allows ja-anthy.mim to support input conversion.
|
2021-06-04 10:07:56 +00:00
|
|
|
%endif
|
2005-12-16 03:47:54 +00:00
|
|
|
|
2007-12-28 10:55:29 +00:00
|
|
|
%package devel
|
2010-04-07 06:42:01 +00:00
|
|
|
Summary: Development files for %{name}
|
2012-11-21 09:27:42 +00:00
|
|
|
Requires: %{name}-tools = %{version}-%{release}
|
2005-12-16 03:47:54 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for %{name}.
|
|
|
|
|
|
|
|
|
2010-10-05 08:22:16 +00:00
|
|
|
%package tools
|
2018-01-03 16:34:48 +00:00
|
|
|
Summary: The m17n GUI Library tools
|
2010-10-05 08:22:16 +00:00
|
|
|
Requires: m17n-db-extras
|
2012-11-21 09:27:42 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2009-12-23 09:44:36 +00:00
|
|
|
|
2010-10-05 08:22:16 +00:00
|
|
|
%description tools
|
|
|
|
Tools to test M17n GUI widget library.
|
2009-12-23 09:44:36 +00:00
|
|
|
|
2007-12-28 10:55:29 +00:00
|
|
|
|
2009-12-23 09:44:36 +00:00
|
|
|
%prep
|
2019-04-30 08:36:43 +00:00
|
|
|
%autosetup -p1
|
2005-12-16 03:47:54 +00:00
|
|
|
|
|
|
|
%build
|
2018-01-03 16:34:48 +00:00
|
|
|
#autoreconf -ivf
|
2010-10-05 08:22:16 +00:00
|
|
|
%configure --disable-rpath --disable-static
|
2010-07-07 13:39:57 +00:00
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
2005-12-16 03:47:54 +00:00
|
|
|
|
2023-05-09 18:00:46 +00:00
|
|
|
%{make_build}
|
2005-12-16 03:47:54 +00:00
|
|
|
|
|
|
|
%install
|
2018-01-03 16:34:48 +00:00
|
|
|
make install DESTDIR=%{buildroot} INSTALL="install -p"
|
|
|
|
|
2011-03-22 09:12:56 +00:00
|
|
|
# fix bug rh#680363
|
2018-01-03 16:34:48 +00:00
|
|
|
rm %{buildroot}%{_libdir}/m17n/1.0/libmimx-ispell.so
|
2005-12-16 03:47:54 +00:00
|
|
|
|
2021-06-04 10:07:56 +00:00
|
|
|
%if %{without anthy}
|
|
|
|
rm %{buildroot}%{_libdir}/m17n/1.0/libmimx-anthy.so
|
|
|
|
%endif
|
|
|
|
|
2018-01-03 16:34:48 +00:00
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
2005-12-16 03:47:54 +00:00
|
|
|
|
2019-01-22 17:40:21 +00:00
|
|
|
%ldconfig_scriptlets
|
2005-12-16 03:47:54 +00:00
|
|
|
|
2019-01-22 17:40:21 +00:00
|
|
|
%ldconfig_scriptlets tools
|
2010-10-05 08:22:16 +00:00
|
|
|
|
2005-12-16 03:47:54 +00:00
|
|
|
%files
|
2018-01-03 16:34:48 +00:00
|
|
|
%doc AUTHORS NEWS ChangeLog README
|
|
|
|
%license COPYING
|
2012-11-21 15:13:22 +00:00
|
|
|
#Own module directory path
|
|
|
|
%dir %{_libdir}/m17n
|
|
|
|
%dir %{_libdir}/m17n/1.0
|
2009-12-23 09:44:36 +00:00
|
|
|
%{_bindir}/m17n-conv
|
|
|
|
%{_libdir}/libm17n.so.*
|
|
|
|
%{_libdir}/libm17n-core.so.*
|
2010-04-07 06:42:01 +00:00
|
|
|
%{_libdir}/libm17n-flt.so.*
|
2009-12-23 09:44:36 +00:00
|
|
|
|
2012-11-21 09:27:42 +00:00
|
|
|
#Anthy module
|
2021-06-04 10:07:56 +00:00
|
|
|
%if %{with anthy}
|
2009-12-23 09:44:36 +00:00
|
|
|
%files anthy
|
2010-04-07 06:42:01 +00:00
|
|
|
%{_libdir}/m17n/1.0/libmimx-anthy.so
|
2021-06-04 10:07:56 +00:00
|
|
|
%endif
|
2005-12-16 03:47:54 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
|
2010-10-05 08:22:16 +00:00
|
|
|
%files tools
|
2009-12-23 09:44:36 +00:00
|
|
|
%{_bindir}/m17n-date
|
|
|
|
%{_bindir}/m17n-dump
|
|
|
|
%{_bindir}/m17n-edit
|
|
|
|
%{_bindir}/m17n-view
|
2010-10-05 08:22:16 +00:00
|
|
|
%{_libdir}/m17n/1.0/libm17n-X.so
|
|
|
|
%{_libdir}/m17n/1.0/libm17n-gd.so
|
2009-12-23 09:44:36 +00:00
|
|
|
%{_libdir}/libm17n-gui.so.*
|
|
|
|
|
2005-12-16 03:47:54 +00:00
|
|
|
%changelog
|
2024-07-18 08:56:00 +00:00
|
|
|
%autochangelog
|