]> git.pld-linux.org Git - packages/aspell.git/blob - aspell.spec
6643f6ba9b8b931948000616f7ccb1d29b593232
[packages/aspell.git] / aspell.spec
1 Summary:        Aspell is an Open Source spell checker.
2 Name:           aspell
3 Version:        .27.2
4 Release:        3
5 Serial:         1
6 Copyright:      LGPL
7 Group:          Utilities/Text
8 Group(pl):      Narzêdzia/Tekst
9 Vendor:         Kevin Atkinson <kevinatk@home.com>
10 Source:         http://metalab.unc.edu/kevina/aspell/%{name}-%{version}.tar.gz
11 URL:            http://metalab.unc.edu/kevina/aspell/
12 BuildPrereq:    libstdc++-devel
13 Provides:       ispell
14 Obsoletes:      ispell
15 BuildRoot:      /tmp/%{name}-%{version}-root
16
17 %description
18 Aspell is an Open Source spell checker designed to eventually replace
19 Ispell. Its main feature is that it does a much better job of coming up with
20 possible suggestions than Ispell does. In fact recent tests shows that it
21 even does better than Microsoft Word 97's spell checker in some cases. In
22 addition it has both compile time and run time support for other non English
23 languages. Aspell also doubles as a powerful C++ library with C and Perl
24 interfaces in the works.
25
26 %package devel
27 Summary:        Libraries and header files for aspell development
28 Group:          Development/Libraries
29 Group(pl):      Programowanie/Biblioteki
30 Serial:         %{serial}
31 Requires:       %{name} = %{version}
32
33 %description devel
34 Aspell is an Open Source spell checker.
35
36 Libraries and header files for aspell development
37
38 %package static
39 Summary:        Static Libraries for aspell development
40 Group:          Development/Libraries
41 Group(pl):      Programowanie/Biblioteki
42 Serial:         %{serial}
43 Requires:       %{name}-devel = %{version}
44
45 %description static
46 Aspell is an Open Source spell checker.
47
48 Static Libraries for aspell development
49
50 %prep
51 %setup -q
52
53 cp -p %{_includedir}/g++/stl_rope.h .
54 patch <misc/stl_rope-30.diff
55
56 %build
57 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
58 CXXFLAGS="$RPM_OPT_FLAGS" \
59 ./configure %{_target_platform} \
60         --prefix=/usr \
61         --libdir=%{_datadir} \
62         --enable-shared \
63         --enable-static
64 make 
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 make install \
70         DESTDIR=$RPM_BUILD_ROOT \
71         pkgdatadir=%{_datadir}/aspell \
72         libdir=%{_libdir}
73
74 #cp -pr $RPM_BUILD_ROOT/usr/doc/aspell .
75
76 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
77 strip $RPM_BUILD_ROOT%{_bindir}/* || :
78
79 ln -sf aspell $RPM_BUILD_ROOT%{_bindir}/ispell
80 rm -rf $RPM_BUILD_ROOT/usr/{bin/run-with-aspell,share/aspell/ispell}
81
82 gzip -9nf manual/manual2.lyx manual/man-text/*.txt
83
84 %post   -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %doc README TODO manual/{*,man-text/*.txt}.gz
93 %attr(755,root,root) %{_bindir}/*
94 %{_datadir}/aspell
95 %{_libdir}/libaspell.so.*.*
96
97 %files  devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libaspell.so
100 %{_includedir}/aspell
101 %{_libdir}/libaspell.la
102
103 %files static
104 %defattr(644,root,root,755)
105 %{_libdir}/libaspell.a
106
107 %define date    %(LC_ALL="C" date +"%a %b %d %Y"`)
This page took 0.08543 seconds and 3 git commands to generate.