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

Last change on this file since 1567 was 1567, checked in by Silvan Scherrer, 7 years ago

use the right tag in the spec

File size: 4.2 KB
Line 
1# spec source :http://pkgs.fedoraproject.org/cgit/rpms/aspell.git/tree/aspell.spec
2
3Summary: Spell checker
4Name: aspell
5Version: 0.60.6.1
6Release: 4%{?dist}
7License: LGPLv2+ and LGPLv2 and GPLv2+ and BSD
8Group: Applications/Text
9URL: http://aspell.net/
10
11Vendor: bww bitwise works GmbH
12%scm_source github https://github.com/bitwiseworks/%{name}-os2 %{version}-os2
13
14BuildRequires: gettext, ncurses-devel, pkgconfig
15Requires(pre): %{_sbindir}/install-info.exe
16Requires(preun): %{_sbindir}/install-info.exe
17Requires: aspell-en
18
19
20%description
21GNU Aspell is a spell checker designed to eventually replace Ispell. It can
22either be used as a library or as an independent spell checker. Its main
23feature is that it does a much better job of coming up with possible
24suggestions than just about any other spell checker out there for the
25English language, including Ispell and Microsoft Word. It also has many
26other technical enhancements over Ispell such as using shared memory for
27dictionaries and intelligently handling personal dictionaries when more
28than one Aspell process is open at once.
29
30%package devel
31Summary: Libraries and header files for Aspell development
32Group: Development/Libraries
33Requires: %{name} = %{version}-%{release}
34Requires(pre): %{_sbindir}/install-info.exe
35Requires(preun): %{_sbindir}/install-info.exe
36Requires: pkgconfig
37
38%description devel
39Aspell is a spelling checker. The aspell-devel package includes the
40static libraries and header files needed for Aspell development.
41
42
43%debug_package
44
45%prep
46%scm_setup
47
48autoreconf -fvi
49
50%build
51export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
52export LIBS="-ltinfo -lcx"
53#export LIBS="-ltinfo"
54export VENDOR="%{vendor}"
55
56%configure --disable-static
57make %{?_smp_mflags}
58cp scripts/aspell-import examples/aspell-import
59cp manual/aspell-import.1 examples/aspell-import.1
60
61
62%install
63rm -rf $RPM_BUILD_ROOT
64%makeinstall
65
66mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60
67
68mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/ispell ${RPM_BUILD_ROOT}%{_bindir}
69mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/spell ${RPM_BUILD_ROOT}%{_bindir}
70
71rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
72rm -f ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/*.la
73rm -f ${RPM_BUILD_ROOT}%{_bindir}/aspell-import
74rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/aspell-import.1
75rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
76
77%find_lang %{name}
78
79%post
80# /sbin/ldconfig
81if [ -f %{_infodir}/aspell.info.gz ]; then
82 %{_sbindir}/install-info %{_infodir}/aspell.info.gz %{_infodir}/dir --entry="* Aspell: (aspell). " || :
83fi
84
85%post devel
86if [ -f %{_infodir}/aspell-dev.info.gz ]; then
87 %{_sbindir}/install-info %{_infodir}/aspell-dev.info.gz %{_infodir}/dir --entry="* Aspell-dev: (aspell-dev). " || :
88fi
89
90%preun
91if [ $1 = 0 ]; then
92 if [ -f %{_infodir}/aspell.info.gz ]; then
93 %{_sbindir}/install-info --delete %{_infodir}/aspell.info.gz %{_infodir}/dir || :
94 fi
95fi
96
97%preun devel
98if [ $1 = 0 ]; then
99 if [ -f %{_infodir}/aspell-dev.info.gz ]; then
100 %{_sbindir}/install-info --delete %{_infodir}/aspell-dev.info.gz %{_infodir}/dir || :
101 fi
102fi
103
104#postun -p /sbin/ldconfig
105
106%files -f %{name}.lang
107%doc README TODO COPYING examples/aspell-import examples/aspell-import.1
108%dir %{_libdir}/aspell-0.60
109%{_bindir}/a*
110%{_bindir}/ispell
111%{_bindir}/pr*
112%exclude %{_bindir}/*.dbg
113%{_bindir}/run-with-aspell
114%{_bindir}/spell
115%{_bindir}/word-list-compress.exe
116%{_libdir}/*.dll
117%{_libdir}/aspell-0.60/*
118%exclude %{_libdir}/aspell-0.60/*.dbg
119%{_infodir}/aspell.*
120%{_mandir}/man1/aspell.1.*
121%{_mandir}/man1/run-with-aspell.1*
122%{_mandir}/man1/word-list-compress.1*
123%{_mandir}/man1/prezip-bin.1*
124
125%files devel
126%dir %{_includedir}/pspell
127%{_bindir}/pspell-config
128%{_includedir}/aspell.h
129%{_includedir}/pspell/pspell.h
130%{_libdir}/*.a
131%{_infodir}/aspell-dev.*
132%{_mandir}/man1/pspell-config.1*
133
134
135%changelog
136* Mon Jul 16 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.60.6.1-4
137- reenable -lcx
138
139* Wed May 23 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.60.6.1-3
140- don't use -lcx, as it crashes in mmap
141
142* Wed Dec 20 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.60.6.1-2
143- use new scm_ macros
144- fix loading of filters
145- add bldlevel to the dll
146- move source to github
147
148* Thu Feb 12 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.60.6.1-1
149- first version
Note: See TracBrowser for help on using the repository browser.