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

Last change on this file since 1331 was 1280, checked in by Silvan Scherrer, 8 years ago

spec: aspell: Release version 0.60.6.1-2.

File size: 4.0 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: 2%{?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 master
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"
53export VENDOR="%{vendor}"
54
55%configure --disable-static
56make %{?_smp_mflags}
57cp scripts/aspell-import examples/aspell-import
58cp manual/aspell-import.1 examples/aspell-import.1
59
60
61%install
62rm -rf $RPM_BUILD_ROOT
63%makeinstall
64
65mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60
66
67mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/ispell ${RPM_BUILD_ROOT}%{_bindir}
68mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/spell ${RPM_BUILD_ROOT}%{_bindir}
69
70rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
71rm -f ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/*.la
72rm -f ${RPM_BUILD_ROOT}%{_bindir}/aspell-import
73rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/aspell-import.1
74rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
75
76%find_lang %{name}
77
78%post
79# /sbin/ldconfig
80if [ -f %{_infodir}/aspell.info.gz ]; then
81 %{_sbindir}/install-info %{_infodir}/aspell.info.gz %{_infodir}/dir --entry="* Aspell: (aspell). " || :
82fi
83
84%post devel
85if [ -f %{_infodir}/aspell-dev.info.gz ]; then
86 %{_sbindir}/install-info %{_infodir}/aspell-dev.info.gz %{_infodir}/dir --entry="* Aspell-dev: (aspell-dev). " || :
87fi
88
89%preun
90if [ $1 = 0 ]; then
91 if [ -f %{_infodir}/aspell.info.gz ]; then
92 %{_sbindir}/install-info --delete %{_infodir}/aspell.info.gz %{_infodir}/dir || :
93 fi
94fi
95
96%preun devel
97if [ $1 = 0 ]; then
98 if [ -f %{_infodir}/aspell-dev.info.gz ]; then
99 %{_sbindir}/install-info --delete %{_infodir}/aspell-dev.info.gz %{_infodir}/dir || :
100 fi
101fi
102
103#postun -p /sbin/ldconfig
104
105%files -f %{name}.lang
106%doc README TODO COPYING examples/aspell-import examples/aspell-import.1
107%dir %{_libdir}/aspell-0.60
108%{_bindir}/a*
109%{_bindir}/ispell
110%{_bindir}/pr*
111%exclude %{_bindir}/*.dbg
112%{_bindir}/run-with-aspell
113%{_bindir}/spell
114%{_bindir}/word-list-compress.exe
115%{_libdir}/*.dll
116%{_libdir}/aspell-0.60/*
117%exclude %{_libdir}/aspell-0.60/*.dbg
118%{_infodir}/aspell.*
119%{_mandir}/man1/aspell.1.*
120%{_mandir}/man1/run-with-aspell.1*
121%{_mandir}/man1/word-list-compress.1*
122%{_mandir}/man1/prezip-bin.1*
123
124%files devel
125%dir %{_includedir}/pspell
126%{_bindir}/pspell-config
127%{_includedir}/aspell.h
128%{_includedir}/pspell/pspell.h
129%{_libdir}/*.a
130%{_infodir}/aspell-dev.*
131%{_mandir}/man1/pspell-config.1*
132
133
134%changelog
135* Wed Dec 20 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.60.6.1-2
136- use new scm_ macros
137- fix loading of filters
138- add bldlevel to the dll
139- move source to github
140
141* Thu Feb 12 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.60.6.1-1
142- first version
Note: See TracBrowser for help on using the repository browser.