1 # set to 1 to build with GUI and OpenType Font support
3 # set to 1 to build examples (including anthy support)
4 %define with_examples 0
9 Summary: Multilingual text library
10 Group: System Environment/Libraries
12 URL: http://www.m17n.org/m17n-lib/index.html
13 Source0: %{name}-%{version}.tar.gz
15 BuildRequires: m17n-db >= 1.4.0
17 BuildRequires: libxml2-devel, xorg-x11-devel
18 BuildRequires: freetype-devel >= 2.0, fribidi-devel, gd-devel >= 2.0
19 BuildRequires: libotf-devel >= %{libotf_version}
21 BuildRequires: autoconf
22 BuildRequires: libtool
23 BuildRequires: pkgconfig
26 BuildRequires: anthy-devel
28 Requires: m17n-db >= 1.4.0
29 Patch2: m17n-lib-nobuild-examples.patch
32 m17n-lib is a multilingual text library used primarily to allow
33 the input of many languages with the input table maps from m17n-db.
37 Summary: Development file for m17n-lib
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
43 Development files for %{name}.
49 %if ! %{with_examples}
50 %patch2 -p1 -b .examples
52 # patch2 touches Makefile.am
57 libtoolize --copy --force
58 %configure --disable-static \
68 rm -rf $RPM_BUILD_ROOT
69 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -c -p"
71 # remove unneeded files
72 rm $RPM_BUILD_ROOT%{_bindir}/m17n-config
73 rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
77 rm -rf $RPM_BUILD_ROOT
80 %post -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
88 %doc AUTHORS COPYING NEWS
96 %{_libdir}/pkgconfig/*