2006-02-02 07:59:31 +00:00
|
|
|
# set to 1 to build with GUI and OpenType Font support
|
|
|
|
%define with_gui 0
|
|
|
|
# set to 1 to build examples (including anthy support)
|
|
|
|
%define with_examples 0
|
2005-12-16 03:47:54 +00:00
|
|
|
|
|
|
|
Name: m17n-lib
|
2006-03-01 15:51:48 +00:00
|
|
|
Version: 1.3.3
|
|
|
|
Release: 1%{?dist}
|
2005-12-16 03:47:54 +00:00
|
|
|
Summary: Multilingual text library
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: LGPL
|
|
|
|
URL: http://www.m17n.org/m17n-lib/index.html
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildRequires: m17n-db
|
2006-02-02 07:59:31 +00:00
|
|
|
%if %{with_gui}
|
2005-12-16 03:47:54 +00:00
|
|
|
BuildRequires: libxml2-devel, xorg-x11-devel
|
|
|
|
BuildRequires: freetype-devel >= 2.0, fribidi-devel, gd-devel >= 2.0
|
|
|
|
BuildRequires: libotf-devel >= %{libotf_version}
|
2005-12-16 04:04:47 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: autoconf
|
2005-12-16 03:47:54 +00:00
|
|
|
%endif
|
2006-02-02 07:59:31 +00:00
|
|
|
%if %{with_examples}
|
2005-12-16 03:47:54 +00:00
|
|
|
BuildRequires: anthy-devel
|
|
|
|
%endif
|
|
|
|
Requires: m17n-db
|
2006-02-02 07:59:31 +00:00
|
|
|
Patch2: m17n-lib-nobuild-examples.patch
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: m17n-lib development files
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2006-02-02 07:59:31 +00:00
|
|
|
%if ! %{with_examples}
|
|
|
|
%patch2 -p1 -b .examples
|
2005-12-16 03:47:54 +00:00
|
|
|
%endif
|
2006-02-10 02:53:33 +00:00
|
|
|
# patch2 touches Makefile.am
|
2006-02-02 07:59:31 +00:00
|
|
|
autoreconf
|
2005-12-16 03:47:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2006-02-02 07:59:31 +00:00
|
|
|
%configure --disable-static \
|
|
|
|
%if ! %{with_gui}
|
|
|
|
--with-gui=no
|
2006-05-30 07:25:52 +00:00
|
|
|
%else
|
|
|
|
%{nil}
|
2006-02-02 07:59:31 +00:00
|
|
|
%endif
|
2005-12-16 03:47:54 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
# remove unneeded files
|
|
|
|
rm $RPM_BUILD_ROOT%{_bindir}/m17n-config
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING NEWS
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc ChangeLog README
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2006-03-01 15:51:48 +00:00
|
|
|
* Thu Mar 2 2006 Jens Petersen <petersen@redhat.com> - 1.3.3-1
|
|
|
|
- update to 1.3.3 minor bugfix release
|
|
|
|
|
2006-02-11 04:26:41 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.3.2-1.1
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-10 02:53:33 +00:00
|
|
|
* Fri Feb 10 2006 Jens Petersen <petersen@redhat.com> - 1.3.2-1
|
2006-03-01 15:51:48 +00:00
|
|
|
- update to 1.3.2 bugfix release
|
2006-02-10 02:53:33 +00:00
|
|
|
- m17n-lib-no-gui-headers.patch is now upstream
|
|
|
|
|
2006-02-07 12:53:59 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.3.1-1.1
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2006-02-02 07:59:31 +00:00
|
|
|
* Thu Feb 2 2006 Jens Petersen <petersen@redhat.com> - 1.3.1-1
|
|
|
|
- update to 1.3.1 release
|
|
|
|
- rename use_otf and use_anthy macros to with_gui and with_examples
|
|
|
|
- build --with-gui=no and replace m17n-lib-1.2.0-core-libs-only.patch
|
|
|
|
with m17n-lib-no-gui-headers.patch and m17n-lib-nobuild-examples.patch
|
|
|
|
|
2005-12-16 04:04:47 +00:00
|
|
|
* Fri Dec 16 2005 Jens Petersen <petersen@redhat.com> - 1.2.0-2
|
|
|
|
- import to Fedora Core
|
|
|
|
- buildrequire autoconf
|
|
|
|
|
2005-12-16 03:47:54 +00:00
|
|
|
* Thu Nov 10 2005 Jens Petersen <petersen@redhat.com> - 1.2.0-1
|
|
|
|
- do not build static lib and .la files (Warren Togami)
|
|
|
|
|
|
|
|
* Wed Oct 5 2005 Jens Petersen <petersen@redhat.com>
|
|
|
|
- initial packaging for Fedora Extras
|
|
|
|
|
|
|
|
* Sat Jan 15 2005 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
|
|
|
|
- modify spec for fedora
|