Tizen 2.1 base
[external/enchant.git] / enchant.spec.in
1 %define name enchant
2 %define version @VERSION@
3 %define release 1
4
5 Summary: An Enchanting Spell Checking Library
6
7 Name: %{name}
8 Version: %{version}
9 Release: %{release}
10 Group: System Environment/Libraries
11 License: LGPL
12
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/
16
17 Requires: glib2 >= 2.0.0
18 BuildRequires: glib2-devel >= 2.0.0
19
20 %description
21 A library that wraps other spell checking backends.
22
23 %package devel
24 Summary: Support files necessary to compile applications with libenchant.
25 Group: Development/Libraries
26 Requires: enchant
27
28 %description devel
29 Libraries, headers, and support files necessary to compile applications using libenchant.
30
31 %prep
32
33 %setup
34
35 %build
36 %ifarch alpha
37   MYARCH_FLAGS="--host=alpha-redhat-linux"
38 %endif
39
40 if [ ! -f configure ]; then
41 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
42 fi
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}
48
49
50 if [ "$SMP" != "" ]; then
51   (%__make "MAKE=%__make -k -j $SMP"; exit 0)
52   %__make
53 else
54 %__make
55 fi
56
57 %install
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 \{\} \;
61
62 %files
63 %defattr(644,root,root,755)
64 %doc AUTHORS COPYING.LIB README
65 %attr(755,root,root)%{_bindir}/*
66 %{_libdir}/lib*.so*
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*}
72
73 %files devel
74 %defattr(644,root,root,755)
75 %{_libdir}/*.a
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/*
82
83 %clean
84 %__rm -r $RPM_BUILD_ROOT
85
86 %changelog
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
91
92 * Wed Jul 16 2003 Rui Miguel Seabra <rms@1407.org>
93 - take advantage of environment rpm macros
94
95 * Sun Jul 13 2003 Dom Lachowicz <cinamod@hotmail.com>
96 - Initial version