-
Notifications
You must be signed in to change notification settings - Fork 3
/
enchant.spec.in
96 lines (76 loc) · 2.49 KB
/
enchant.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
%define name enchant
%define version @VERSION@
%define release 1
Summary: An Enchanting Spell Checking Library
Name: %{name}
Version: %{version}
Release: %{release}
Group: System Environment/Libraries
License: LGPL
Source: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/libenchant/%{name}-%{version}.tar.gz
Buildroot: /var/tmp/%{name}-%{version}-%{release}-root
URL: http://www.abisource.com/
Requires: glib2 >= 2.0.0
BuildRequires: glib2-devel >= 2.0.0
%description
A library that wraps other spell checking backends.
%package devel
Summary: Support files necessary to compile applications with libenchant.
Group: Development/Libraries
Requires: enchant
%description devel
Libraries, headers, and support files necessary to compile applications using libenchant.
%prep
%setup
%build
%ifarch alpha
MYARCH_FLAGS="--host=alpha-redhat-linux"
%endif
if [ ! -f configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
fi
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
%{?_without_ispell:--disable-ispell} \
%{?_without_myspell:--disable-myspell} \
%{?_without_aspell:--disable-aspell} \
%{?_with_uspell:--enable-uspell}
if [ "$SMP" != "" ]; then
(%__make "MAKE=%__make -k -j $SMP"; exit 0)
%__make
else
%__make
fi
%install
if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi
%__make DESTDIR=$RPM_BUILD_ROOT install
find $RPM_BUILD_ROOT/%{_libdir} -name \*.la -exec rm -f \{\} \;
%files
%defattr(644,root,root,755)
%doc AUTHORS COPYING.LIB README
%attr(755,root,root)%{_bindir}/*
%{_libdir}/lib*.so*
%{_prefix}/man/man1/enchant.1.gz
%{!?_without_ispell:%{_libdir}/enchant/*ispell.so*}
%{!?_without_myspell:%{_libdir}/enchant/*myspell.so*}
%{!?_without_aspell:%{_libdir}/enchant/*aspell.so*}
%{?_with_uspell:%{_libdir}/enchant/*uspell.so*}
%files devel
%defattr(644,root,root,755)
%{_libdir}/*.a
%{!?_without_ispell:%{_libdir}/enchant/*ispell.a}
%{!?_without_myspell:%{_libdir}/enchant/*myspell.a}
%{!?_without_aspell:%{_libdir}/enchant/*aspell.a}
%{?_with_uspell:%{_libdir}/enchant/*uspell.a}
%{_libdir}/pkgconfig/enchant.pc
%{_includedir}/enchant/*
%clean
%__rm -r $RPM_BUILD_ROOT
%changelog
* Sun Aug 24 2003 Rui Miguel Seabra <rms@1407.org>
- update spec to current stat of affairs
- building from source rpm is now aware of --with and --without flags:
- --without aspell --without ispell --without myspell --with uspell
* Wed Jul 16 2003 Rui Miguel Seabra <rms@1407.org>
- take advantage of environment rpm macros
* Sun Jul 13 2003 Dom Lachowicz <cinamod@hotmail.com>
- Initial version