source: spec/trunk/SPECS/aspell.spec@ 1036

Last change on this file since 1036 was 537, checked in by Silvan Scherrer, 11 years ago

aspell spec added install-info as comment for now

File size: 4.0 KB
Line 
1Summary: A spelling checker
2Name: aspell
3Version: 0.60.6.1
4Release: 1%{?dist}
5License: LGPL
6Group: Applications/Text
7URL: http://aspell.net/
8#define svn_url e:/trees/aspell/trunk
9%define svn_url http://svn.netlabs.org/repos/ports/aspell/trunk
10%define svn_rev 1041
11
12Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
13
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16BuildRequires: gettext, ncurses-devel, pkgconfig
17#Requires(pre): /sbin/install-info
18#Requires(preun): /sbin/install-info
19Requires: aspell-en
20Provides: pspell < 0.13
21Obsoletes: pspell < 0.13
22
23
24%description
25GNU Aspell is a spell checker designed to eventually replace Ispell. It can
26either be used as a library or as an independent spell checker. Its main
27feature is that it does a much better job of coming up with possible
28suggestions than just about any other spell checker out there for the
29English language, including Ispell and Microsoft Word. It also has many
30other technical enhancements over Ispell such as using shared memory for
31dictionaries and intelligently handling personal dictionaries when more
32than one Aspell process is open at once.
33
34%package devel
35Summary: Static libraries and header files for Aspell development
36Group: Development/Libraries
37Requires: %{name} = %{version}-%{release}
38#Requires(pre): /sbin/install-info
39#Requires(preun): /sbin/install-info
40Requires: pkgconfig
41Provides: pspell-devel < 0.13
42Obsoletes: pspell-devel < 0.13
43
44%description devel
45Aspell is a spelling checker. The aspell-devel package includes the
46static libraries and header files needed for Aspell development.
47
48%package debug
49Summary: HLL debug data for exception handling support
50
51%description debug
52%{summary}.
53
54%prep
55%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{?!svn_rev):0}
56%setup -q
57%else
58%setup -n "%{name}-%{version}" -Tc
59svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
60rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
61(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
62%endif
63
64autoreconf -fi
65
66%build
67export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
68export LIBS="-ltinfo" ; \
69
70%configure --disable-static
71make %{?_smp_mflags}
72
73%install
74rm -rf $RPM_BUILD_ROOT
75%makeinstall
76
77mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60
78
79mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/ispell ${RPM_BUILD_ROOT}%{_bindir}
80mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/spell ${RPM_BUILD_ROOT}%{_bindir}
81
82rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
83rm -f ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/*.la
84chmod 644 ${RPM_BUILD_ROOT}%{_bindir}/aspell-import
85
86%find_lang %{name}
87
88#%post
89#/sbin/install-info %{_infodir}/aspell.info.gz %{_infodir}/dir --entry="* Aspell: (aspell). " || :
90
91#%post devel
92#/sbin/install-info %{_infodir}/aspell-dev.info.gz %{_infodir}/dir --entry="* Aspell-dev: (aspell-dev). " || :
93
94#%preun
95#if [ $1 = 0 ]; then
96# /sbin/install-info --delete %{_infodir}/aspell.info.gz %{_infodir}/dir
97#fi
98#exit 0
99
100#%preun devel
101#if [ $1 = 0 ]; then
102# /sbin/install-info --delete %{_infodir}/aspell-dev.info.gz %{_infodir}/dir
103#fi
104#exit 0
105
106#%postun
107
108%clean
109rm -rf $RPM_BUILD_ROOT
110
111%files -f %{name}.lang
112%defattr(-,root,root)
113%doc README TODO COPYING
114%dir %{_libdir}/aspell-0.60
115%{_bindir}/a*
116%{_bindir}/ispell
117%{_bindir}/pr*
118%exclude %{_bindir}/*.dbg
119%{_bindir}/run-with-aspell
120%{_bindir}/spell
121%{_bindir}/word-list-compress.exe
122%{_libdir}/*.dll
123%{_libdir}/aspell-0.60/*
124%{_datadir}/locale/*/LC_MESSAGES/aspell.mo
125%{_infodir}/aspell.*
126%{_mandir}/man1/aspell*
127%{_mandir}/man1/run-with-aspell.1*
128%{_mandir}/man1/word-list-compress.1*
129%{_mandir}/man1/prezip-bin.1*
130
131%files devel
132%defattr(-,root,root)
133%dir %{_includedir}/pspell
134%{_bindir}/pspell-config
135%{_includedir}/aspell.h
136%{_includedir}/pspell/pspell.h
137%{_libdir}/*.a
138%{_infodir}/aspell-dev.*
139%{_mandir}/man1/pspell-config.1*
140
141%files debug
142%defattr(-,root,root)
143%{_libdir}/*.dbg
144%{_bindir}/*.dbg
145
146%changelog
147* Thu Feb 12 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.60.6.1-1
148- first version
Note: See TracBrowser for help on using the repository browser.