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

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

aspell spec

File size: 3.4 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
17Requires: aspell-en
18Provides: pspell < 0.13
19Obsoletes: pspell < 0.13
20
21
22%description
23GNU Aspell is a spell checker designed to eventually replace Ispell. It can
24either be used as a library or as an independent spell checker. Its main
25feature is that it does a much better job of coming up with possible
26suggestions than just about any other spell checker out there for the
27English language, including Ispell and Microsoft Word. It also has many
28other technical enhancements over Ispell such as using shared memory for
29dictionaries and intelligently handling personal dictionaries when more
30than one Aspell process is open at once.
31
32%package devel
33Summary: Static libraries and header files for Aspell development
34Group: Development/Libraries
35Requires: %{name} = %{version}-%{release}
36Requires: pkgconfig
37Provides: pspell-devel < 0.13
38Obsoletes: pspell-devel < 0.13
39
40%description devel
41Aspell is a spelling checker. The aspell-devel package includes the
42static libraries and header files needed for Aspell development.
43
44%package debug
45Summary: HLL debug data for exception handling support
46
47%description debug
48%{summary}.
49
50%prep
51%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}
52%setup -q
53%else
54%setup -n "%{name}-%{version}" -Tc
55svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
56rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
57(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
58%endif
59
60autoreconf -fi
61
62%build
63export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
64export LIBS="-ltinfo" ; \
65
66%configure --disable-static
67make %{?_smp_mflags}
68
69%install
70rm -rf $RPM_BUILD_ROOT
71%makeinstall
72
73mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60
74
75mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/ispell ${RPM_BUILD_ROOT}%{_bindir}
76mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/spell ${RPM_BUILD_ROOT}%{_bindir}
77
78rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
79rm -f ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/*.la
80chmod 644 ${RPM_BUILD_ROOT}%{_bindir}/aspell-import
81
82#find_lang %{name}
83
84
85%files
86# -f %{name}.lang
87%defattr(-,root,root)
88%doc README TODO COPYING
89%dir %{_libdir}/aspell-0.60
90%{_bindir}/a*
91%{_bindir}/ispell
92%{_bindir}/pr*
93%exclude %{_bindir}/*.dbg
94%{_bindir}/run-with-aspell
95%{_bindir}/spell
96%{_bindir}/word-list-compress.exe
97%{_libdir}/*.dll
98%{_libdir}/aspell-0.60/*
99%{_datadir}/locale/*/LC_MESSAGES/aspell.mo
100%{_infodir}/aspell.*
101%{_mandir}/man1/aspell*
102%{_mandir}/man1/run-with-aspell.1*
103%{_mandir}/man1/word-list-compress.1*
104%{_mandir}/man1/prezip-bin.1*
105
106%files devel
107%defattr(-,root,root)
108%dir %{_includedir}/pspell
109%{_bindir}/pspell-config
110%{_includedir}/aspell.h
111%{_includedir}/pspell/pspell.h
112%{_libdir}/*.a
113%{_infodir}/aspell-dev.*
114%{_mandir}/man1/pspell-config.1*
115
116%files debug
117%defattr(-,root,root)
118%{_libdir}/*.dbg
119%{_bindir}/*.dbg
120
121%changelog
122* Thu Feb 12 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.60.6.1-1
123- first version
Note: See TracBrowser for help on using the repository browser.