]> git.pld-linux.org Git - packages/aspell.git/blob - aspell.spec
- spec adapterized.
[packages/aspell.git] / aspell.spec
1 Summary:        Aspell is an Open Source spell checker.
2 Summary(pl):    Aspell jest kontrolerem pisowni.
3 Name:           aspell
4 Version:        .27.2
5 Release:        3
6 Serial:         1
7 License:        LGPL
8 Group:          Utilities/Text
9 Group(fr):      Utilitaires/Texte
10 Group(pl):      Narzêdzia/Tekst
11 Vendor:         Kevin Atkinson <kevinatk@home.com>
12 Source0:        http://metalab.unc.edu/kevina/aspell/%{name}-%{version}.tar.gz
13 URL:            http://metalab.unc.edu/kevina/aspell/
14 BuildRequires:  libstdc++-devel
15 Provides:       ispell
16 Obsoletes:      ispell
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Aspell is an Open Source spell checker designed to eventually replace
21 Ispell. Its main feature is that it does a much better job of coming
22 up with possible suggestions than Ispell does. In fact recent tests
23 shows that it even does better than Microsoft Word 97's spell checker
24 in some cases. In addition it has both compile time and run time
25 support for other non English languages. Aspell also doubles as a
26 powerful C++ library with C and Perl interfaces in the works.
27
28 %description -l pl
29 Aspell jest kontrolerem pisowni zaprojektowanym tak, by móc zast±piæ
30 ispell'a. Dodatkowo zawiera wsparcie dla innych jêzyków ni¿ angielski.
31 Interfejs aspella napisany zosta³ w C++, a interfejsy w Perlu i C s±
32 aktualnie rozwijane.
33
34 %package devel
35 Summary:        Libraries and header files for aspell development
36 Summary(pl):    Biblioteki i pliki nag³ówkowe dla developerów aspella
37 Group:          Development/Libraries
38 Group(fr):      Development/Librairies
39 Group(pl):      Programowanie/Biblioteki
40 Serial:         %{serial}
41 Requires:       %{name} = %{version}
42
43 %description devel
44 Aspell is an Open Source spell checker.
45
46 Libraries and header files for aspell development
47
48 %description -l pl devel
49 Aspell jest kontrolerem pisowni. Pakiet ten zawiera biblioteki i pliki
50 nag³ówkowe dla developerów aspella.
51
52 %package static
53 Summary:        Static Libraries for aspell development
54 Summary(pl):    Biblioteki statyczne dla developerów aspella
55 Group:          Development/Libraries
56 Group(fr):      Development/Librairies
57 Group(pl):      Programowanie/Biblioteki
58 Serial:         %{serial}
59 Requires:       %{name}-devel = %{version}
60
61 %description static
62 Aspell is an Open Source spell checker.
63
64 Static Libraries for aspell development
65
66 %description -l pl static
67 Aspell jest kontrolerem pisowni. Pakiet ten zawiera biblioteki
68 statyczne dla developerów aspella.
69
70 %prep
71 %setup -q
72
73 cp -p %{_includedir}/g++/stl_rope.h .
74 patch <misc/stl_rope-30.diff
75
76 %build
77 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
78 CXXFLAGS="$RPM_OPT_FLAGS" \
79 ./configure %{_target_platform} \
80 --prefix=%{_prefix} \
81         --libdir=%{_datadir} \
82         --enable-shared \
83         --enable-static
84 make 
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 make install \
90         DESTDIR=$RPM_BUILD_ROOT \
91         pkgdatadir=%{_datadir}/aspell \
92         libdir=%{_libdir}
93
94 #cp -pr $RPM_BUILD_ROOT%{_prefix}/doc/aspell .
95
96 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
97 strip $RPM_BUILD_ROOT%{_bindir}/* || :
98
99 ln -sf aspell $RPM_BUILD_ROOT%{_bindir}/ispell
100 rm -rf $RPM_BUILD_ROOT%{_prefix}/{bin/run-with-aspell,share/aspell/ispell}
101
102 gzip -9nf manual/manual2.lyx manual/man-text/*.txt
103
104 %post   -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %files
111 %defattr(644,root,root,755)
112 %doc README TODO manual/{*,man-text/*.txt}.gz
113 %attr(755,root,root) %{_bindir}/*
114 %{_datadir}/aspell
115 %{_libdir}/libaspell.so.*.*
116
117 %files  devel
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libaspell.so
120 %{_includedir}/aspell
121 %{_libdir}/libaspell.la
122
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/libaspell.a
126
127 %define date    %(LC_ALL="C" date +"%a %b %d %Y"`)
This page took 0.587676 seconds and 4 git commands to generate.