99f691
Name:    m17n-lib
99f691
Version:  1.6.4
b0ef8c
Release:  14%{?dist}
99f691
Summary:  Multilingual text library
99f691
99f691
Group:    System Environment/Libraries
99f691
License:  LGPLv2+
99f691
URL:    http://www.nongnu.org/m17n/
99f691
Source0:  http://download.savannah.gnu.org/releases/m17n/%{name}-%{version}.tar.gz
99f691
Patch0:  %{name}-1.6.1-multilib.patch
99f691
Patch1:	 %{name}-1.6.4-aarch64.patch
b0ef8c
Patch2:  %{name}-1.6.4-HEAD-internal_h.patch
99f691
b0ef8c
BuildRequires:  m17n-db-devel libthai-devel
99f691
BuildRequires:  libxml2-devel, libXft-devel, fontconfig-devel
99f691
BuildRequires:  freetype-devel , fribidi-devel, gd-devel, libXaw-devel
b0ef8c
BuildRequires:  libotf-devel, bzip2-devel
99f691
Requires:  m17n-db
99f691
99f691
99f691
%description
99f691
m17n-lib is a multilingual text library used primarily to allow
99f691
the input of many languages with the input table maps from m17n-db.
99f691
99f691
The package provides the core and input method backend libraries.
99f691
99f691
%package  devel
99f691
Summary:  Development files for %{name}
99f691
Group:    Development/Libraries
99f691
Requires: %{name}%{?_isa} = %{version}-%{release}
99f691
Requires: %{name}-tools = %{version}-%{release}
99f691
99f691
%description devel
99f691
Development files for %{name}.
99f691
99f691
99f691
%package  tools
99f691
Summary:  m17n GUI Library tools
99f691
Group:    System Environment/Libraries
99f691
Requires: m17n-db-extras
99f691
Requires: %{name}%{?_isa} = %{version}-%{release}
99f691
99f691
%description tools
99f691
Tools to test M17n GUI widget library.
99f691
99f691
99f691
%prep
99f691
%setup -q 
99f691
%patch0 -p1
99f691
%patch1 -p1
b0ef8c
%patch2 -p1
99f691
99f691
%build
99f691
%configure --disable-rpath --disable-static
99f691
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
99f691
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
99f691
99f691
# parallel make usage with make command fails build on koji
99f691
make
99f691
99f691
%install
99f691
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
99f691
# fix bug rh#680363
99f691
rm $RPM_BUILD_ROOT%{_libdir}/m17n/1.0/libmimx-ispell.so
99f691
# fix bug rh#1002868
99f691
rm $RPM_BUILD_ROOT%{_libdir}/m17n/1.0/libmimx-anthy.so
99f691
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
99f691
99f691
%post -p /sbin/ldconfig
99f691
%postun -p /sbin/ldconfig
99f691
99f691
%post tools -p /sbin/ldconfig
99f691
%postun tools -p /sbin/ldconfig
99f691
99f691
%files
99f691
%doc AUTHORS COPYING NEWS ChangeLog README
99f691
#Own module directory path
99f691
%dir %{_libdir}/m17n
99f691
%dir %{_libdir}/m17n/1.0
99f691
%{_bindir}/m17n-conv
99f691
%{_libdir}/libm17n.so.*
99f691
%{_libdir}/libm17n-core.so.*
99f691
%{_libdir}/libm17n-flt.so.*
99f691
99f691
%files devel
99f691
%{_bindir}/m17n-config
99f691
%{_includedir}/*
99f691
%{_libdir}/lib*.so
99f691
%{_libdir}/pkgconfig/*
99f691
99f691
%files tools
99f691
%{_bindir}/m17n-date
99f691
%{_bindir}/m17n-dump
99f691
%{_bindir}/m17n-edit
99f691
%{_bindir}/m17n-view
99f691
%{_libdir}/m17n/1.0/libm17n-X.so
99f691
%{_libdir}/m17n/1.0/libm17n-gd.so
99f691
%{_libdir}/libm17n-gui.so.*
99f691
99f691
%changelog
b0ef8c
* Tue Jun 02 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.6.4-14
b0ef8c
- Resolves:rh#1125602 - coverity scan issue apply upstream patch
b0ef8c
- forgot to actually apply patch
b0ef8c
b0ef8c
* Tue Jun 02 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.6.4-13
b0ef8c
- Resolves:rh#1125602 - coverity scan issue apply upstream patch
b0ef8c
b0ef8c
* Mon Aug 18 2014 Peter Robinson <pbrobinson@redhat.com> - 1.6.4-12
b0ef8c
- Resolves:rh#1125602 - Fix explicit build dependencies
b0ef8c
b0ef8c
* Mon Aug 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.6.4-11
b0ef8c
- Resolves:rh#1125602 - m17n-lib fails to build on arch: ppc64le 
b0ef8c
b92b09
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.6.4-10
b92b09
- Mass rebuild 2014-01-24
b92b09
b92b09
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.6.4-9
b92b09
- Mass rebuild 2013-12-27
b92b09
99f691
* Fri Aug 30 2013 Parag Nemade <pnemade AT redhat DOT com> - 1.6.4-8.1
99f691
- Resolves:rh#1002868 - m17n-lib-anthy fails to install because of missing dependencies
99f691
99f691
* Sun Mar 24 2013 Parag Nemade <pnemade AT redhat DOT com> - 1.6.4-8
99f691
- Resolves:rh#926108 - Does not support aarch64 in f19 and rawhide
99f691
99f691
* Thu Mar 14 2013 Hans de Goede <hdegoede@redhat.com> - 1.6.4-7
99f691
- Fix m17n-config not working on non x86_* archs (rh#921189)
99f691
99f691
* Mon Mar 11 2013 Parag Nemade <pnemade AT redhat DOT com> - 1.6.4-6
99f691
- Resolves:rh#907488 - shell syntax error in m17n-config
99f691
99f691
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-5
99f691
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
99f691
99f691
* Fri Nov 30 2012 Parag Nemade <pnemade AT redhat DOT com> - 1.6.4-4
99f691
- Resolves:rh#880957 - m17n-lib doesn't uninstall properly
99f691
99f691
* Tue Nov 20 2012 Parag Nemade <pnemade AT redhat DOT com> - 1.6.4-3
99f691
- m17n-lib to own %%{_libdir}/m17n
99f691
99f691
* Tue Nov 20 2012 Parag Nemade <pnemade AT redhat DOT com> - 1.6.4-2
99f691
- Resolves:rh#877925 - drop m17n-lib-flt provides
99f691
- Fix bogus date in %%changelog
99f691
- Make sure not to attempt to use parallel make as it fails the build
99f691
99f691
* Tue Sep 18 2012 Parag Nemade <pnemade AT redhat DOT com> - 1.6.4-1
99f691
- update to 1.6.4
99f691
99f691
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.3-3
99f691
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
99f691
99f691
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.3-2
99f691
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
99f691
99f691
* Tue Oct 11 2011 Parag Nemade <pnemade AT redhat DOT com> - 1.6.3-1
99f691
- update to 1.6.3
99f691
99f691
* Tue Mar 22 2011 Parag Nemade <pnemade AT redhat DOT com> - 1.6.2-3
99f691
- Resolves: rh#680363 - Remove m17n-lib-ispell subpackage
99f691
- Resolves: rh#677866 - m17n*.pc reports wrong moduledir on x86_64 system
99f691
99f691
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-2
99f691
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
99f691
99f691
* Wed Oct 06 2010 Parag Nemade <pnemade AT redhat.com> - 1.6.2-1
99f691
- update to new upstream release 1.6.2
99f691
99f691
* Mon Sep 13 2010 Parag Nemade <pnemade AT redhat.com> - 1.6.1-5
99f691
- Fix some packaging issue
99f691
- Change Requires: m17n-db-datafiles to m17n-db-extras
99f691
99f691
* Fri Sep 10 2010 Daiki Ueno <dueno@redhat.com> - 1.6.1-4
99f691
- supply libotf cflags/libs manually, since the current libotf package
99f691
  does not ship with "libotf-config" and m17n-lib cannot detect those
99f691
  values
99f691
- fix paths for modules used by GUI support
99f691
99f691
* Wed Aug 11 2010 Adam Jackson <ajax@redhat.com> 1.6.1-3
99f691
- Fix Obsoletes: so upgrades actually work (1.5.5-3 < 1.5.5-3.fc13)
99f691
99f691
* Wed Jul 07 2010 Parag Nemade <pnemade@redhat.com> - 1.6.1-2
99f691
- Resolves: rh#602029:-m17n-lib-devel multilib conflict 
99f691
- Fix rpmlint rpath error.
99f691
99f691
* Tue Apr 27 2010 Parag Nemade <pnemade AT redhat.com> - 1.6.1-1
99f691
- update to new upstream release 1.6.1
99f691
99f691
* Wed Apr 07 2010 Parag Nemade <pnemade AT redhat.com> - 1.6.0-1
99f691
- update to new upstream release 1.6.0
99f691
99f691
* Wed Dec 23 2009 Jens Petersen <petersen@redhat.com> - 1.5.5-2
99f691
- add bcond for otf, anthy, and gui
99f691
- subpackage flt for emacs, etc
99f691
- add subpackages for anthy and ispell modules
99f691
- disable new gui subpackage (and hence ispell)
99f691
99f691
* Mon Aug 17 2009 Parag Nemade <pnemade@redhat.com> - 1.5.5-1
99f691
- update to new upstream release 1.5.5
99f691
99f691
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.4-2
99f691
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
99f691
99f691
* Tue Mar 03 2009 Parag Nemade <pnemade@redhat.com> -1.5.4-1
99f691
- Update to new upstream release 1.5.4
99f691
99f691
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-2
99f691
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
99f691
99f691
* Tue Oct 21 2008 Parag Nemade <pnemade@redhat.com> -1.5.3-1.fc10
99f691
- Update to new upstream release 1.5.3
99f691
99f691
* Thu Jul 03 2008 Parag Nemade <pnemade@redhat.com> -1.5.2-1
99f691
- Update to new upstream release 1.5.2
99f691
99f691
* Thu Feb 07 2008 Parag Nemade <pnemade@redhat.com> -1.5.1-1.fc9
99f691
- Update to new upstream release 1.5.1
99f691
99f691
* Fri Dec 28 2007 Parag Nemade <pnemade@redhat.com> -1.5.0-1.fc9
99f691
- Update to new upstream release 1.5.0
99f691
- Added missing internal-flt.h file as Source1
99f691
99f691
* Wed Aug 22 2007 Parag Nemade <pnemade@redhat.com> - 1.4.0-2
99f691
- rebuild against new rpm package
99f691
- update license tag
99f691
99f691
* Thu Jul 19 2007 Jens Petersen <petersen@redhat.com>
99f691
- buildrequire and require m17n-db >= 1.4.0
99f691
99f691
* Thu Jul 19 2007 Parag Nemade <pnemade@redhat.com> - 1.4.0-1
99f691
- Updated to new upstream release 1.4.0
99f691
99f691
* Wed Jan 10 2007 Mayank Jain <majain@redhat.com> - 1.3.4-1.1.fc7
99f691
- rebuild for m17n-lib-1.3.4 version
99f691
- Updated m17n-lib-nobuild-examples.patch
99f691
99f691
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.3.3-1.1.fc6
99f691
- rebuild
99f691
99f691
* Wed Jul 12 2006 Mayank Jain <majain@redhat.com> - 1.3.3-1.fc6
99f691
- Updated spec file for changes mentioned in RH bug 193524, comment 4
99f691
- Thanks to Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
99f691
99f691
* Thu Mar  2 2006 Jens Petersen <petersen@redhat.com> - 1.3.3-1
99f691
- update to 1.3.3 minor bugfix release
99f691
99f691
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.3.2-1.1
99f691
- bump again for double-long bug on ppc(64)
99f691
99f691
* Fri Feb 10 2006 Jens Petersen <petersen@redhat.com> - 1.3.2-1
99f691
- update to 1.3.2 bugfix release
99f691
  - m17n-lib-no-gui-headers.patch is now upstream
99f691
99f691
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.3.1-1.1
99f691
- rebuilt for new gcc4.1 snapshot and glibc changes
99f691
99f691
* Thu Feb  2 2006 Jens Petersen <petersen@redhat.com> - 1.3.1-1
99f691
- update to 1.3.1 release
99f691
  - rename use_otf and use_anthy macros to with_gui and with_examples
99f691
  - build --with-gui=no and replace m17n-lib-1.2.0-core-libs-only.patch
99f691
    with m17n-lib-no-gui-headers.patch and m17n-lib-nobuild-examples.patch
99f691
99f691
* Fri Dec 16 2005 Jens Petersen <petersen@redhat.com> - 1.2.0-2
99f691
- import to Fedora Core
99f691
- buildrequire autoconf
99f691
99f691
* Thu Nov 10 2005 Jens Petersen <petersen@redhat.com> - 1.2.0-1
99f691
- do not build static lib and .la files (Warren Togami)
99f691
99f691
* Wed Oct  5 2005 Jens Petersen <petersen@redhat.com>
99f691
- initial packaging for Fedora Extras
99f691
99f691
* Sat Jan 15 2005 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
99f691
- modify spec for fedora