2 %define version @VERSION@
5 Summary: An Enchanting Spell Checking Library
10 Group: System Environment/Libraries
13 Source: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/libenchant/%{name}-%{version}.tar.gz
14 Buildroot: /var/tmp/%{name}-%{version}-%{release}-root
15 URL: http://www.abisource.com/
17 Requires: glib2 >= 2.0.0
18 BuildRequires: glib2-devel >= 2.0.0
21 A library that wraps other spell checking backends.
24 Summary: Support files necessary to compile applications with libenchant.
25 Group: Development/Libraries
29 Libraries, headers, and support files necessary to compile applications using libenchant.
37 MYARCH_FLAGS="--host=alpha-redhat-linux"
40 if [ ! -f configure ]; then
41 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
43 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
44 %{?_without_ispell:--disable-ispell} \
45 %{?_without_myspell:--disable-myspell} \
46 %{?_without_aspell:--disable-aspell} \
47 %{?_with_uspell:--enable-uspell}
50 if [ "$SMP" != "" ]; then
51 (%__make "MAKE=%__make -k -j $SMP"; exit 0)
58 if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi
59 %__make DESTDIR=$RPM_BUILD_ROOT install
60 find $RPM_BUILD_ROOT/%{_libdir} -name \*.la -exec rm -f \{\} \;
63 %defattr(644,root,root,755)
64 %doc AUTHORS COPYING.LIB README
65 %attr(755,root,root)%{_bindir}/*
67 %{_prefix}/man/man1/enchant.1.gz
68 %{!?_without_ispell:%{_libdir}/enchant/*ispell.so*}
69 %{!?_without_myspell:%{_libdir}/enchant/*myspell.so*}
70 %{!?_without_aspell:%{_libdir}/enchant/*aspell.so*}
71 %{?_with_uspell:%{_libdir}/enchant/*uspell.so*}
74 %defattr(644,root,root,755)
76 %{!?_without_ispell:%{_libdir}/enchant/*ispell.a}
77 %{!?_without_myspell:%{_libdir}/enchant/*myspell.a}
78 %{!?_without_aspell:%{_libdir}/enchant/*aspell.a}
79 %{?_with_uspell:%{_libdir}/enchant/*uspell.a}
80 %{_libdir}/pkgconfig/enchant.pc
81 %{_includedir}/enchant/*
84 %__rm -r $RPM_BUILD_ROOT
87 * Sun Aug 24 2003 Rui Miguel Seabra <rms@1407.org>
88 - update spec to current stat of affairs
89 - building from source rpm is now aware of --with and --without flags:
90 - --without aspell --without ispell --without myspell --with uspell
92 * Wed Jul 16 2003 Rui Miguel Seabra <rms@1407.org>
93 - take advantage of environment rpm macros
95 * Sun Jul 13 2003 Dom Lachowicz <cinamod@hotmail.com>