| 1 | # spec source :http://pkgs.fedoraproject.org/cgit/rpms/aspell.git/tree/aspell.spec
|
|---|
| 2 |
|
|---|
| 3 | Summary: Spell checker
|
|---|
| 4 | Name: aspell
|
|---|
| 5 | Version: 0.60.6.1
|
|---|
| 6 | Release: 4%{?dist}
|
|---|
| 7 | License: LGPLv2+ and LGPLv2 and GPLv2+ and BSD
|
|---|
| 8 | Group: Applications/Text
|
|---|
| 9 | URL: http://aspell.net/
|
|---|
| 10 |
|
|---|
| 11 | Vendor: bww bitwise works GmbH
|
|---|
| 12 | %scm_source github https://github.com/bitwiseworks/%{name}-os2 master
|
|---|
| 13 |
|
|---|
| 14 | BuildRequires: gettext, ncurses-devel, pkgconfig
|
|---|
| 15 | Requires(pre): %{_sbindir}/install-info.exe
|
|---|
| 16 | Requires(preun): %{_sbindir}/install-info.exe
|
|---|
| 17 | Requires: aspell-en
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 | %description
|
|---|
| 21 | GNU Aspell is a spell checker designed to eventually replace Ispell. It can
|
|---|
| 22 | either be used as a library or as an independent spell checker. Its main
|
|---|
| 23 | feature is that it does a much better job of coming up with possible
|
|---|
| 24 | suggestions than just about any other spell checker out there for the
|
|---|
| 25 | English language, including Ispell and Microsoft Word. It also has many
|
|---|
| 26 | other technical enhancements over Ispell such as using shared memory for
|
|---|
| 27 | dictionaries and intelligently handling personal dictionaries when more
|
|---|
| 28 | than one Aspell process is open at once.
|
|---|
| 29 |
|
|---|
| 30 | %package devel
|
|---|
| 31 | Summary: Libraries and header files for Aspell development
|
|---|
| 32 | Group: Development/Libraries
|
|---|
| 33 | Requires: %{name} = %{version}-%{release}
|
|---|
| 34 | Requires(pre): %{_sbindir}/install-info.exe
|
|---|
| 35 | Requires(preun): %{_sbindir}/install-info.exe
|
|---|
| 36 | Requires: pkgconfig
|
|---|
| 37 |
|
|---|
| 38 | %description devel
|
|---|
| 39 | Aspell is a spelling checker. The aspell-devel package includes the
|
|---|
| 40 | static libraries and header files needed for Aspell development.
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 | %debug_package
|
|---|
| 44 |
|
|---|
| 45 | %prep
|
|---|
| 46 | %scm_setup
|
|---|
| 47 |
|
|---|
| 48 | autoreconf -fvi
|
|---|
| 49 |
|
|---|
| 50 | %build
|
|---|
| 51 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 52 | export LIBS="-ltinfo -lcx"
|
|---|
| 53 | #export LIBS="-ltinfo"
|
|---|
| 54 | export VENDOR="%{vendor}"
|
|---|
| 55 |
|
|---|
| 56 | %configure --disable-static
|
|---|
| 57 | make %{?_smp_mflags}
|
|---|
| 58 | cp scripts/aspell-import examples/aspell-import
|
|---|
| 59 | cp manual/aspell-import.1 examples/aspell-import.1
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 | %install
|
|---|
| 63 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 64 | %makeinstall
|
|---|
| 65 |
|
|---|
| 66 | mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60
|
|---|
| 67 |
|
|---|
| 68 | mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/ispell ${RPM_BUILD_ROOT}%{_bindir}
|
|---|
| 69 | mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/spell ${RPM_BUILD_ROOT}%{_bindir}
|
|---|
| 70 |
|
|---|
| 71 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
|
|---|
| 72 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/*.la
|
|---|
| 73 | rm -f ${RPM_BUILD_ROOT}%{_bindir}/aspell-import
|
|---|
| 74 | rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/aspell-import.1
|
|---|
| 75 | rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
|
|---|
| 76 |
|
|---|
| 77 | %find_lang %{name}
|
|---|
| 78 |
|
|---|
| 79 | %post
|
|---|
| 80 | # /sbin/ldconfig
|
|---|
| 81 | if [ -f %{_infodir}/aspell.info.gz ]; then
|
|---|
| 82 | %{_sbindir}/install-info %{_infodir}/aspell.info.gz %{_infodir}/dir --entry="* Aspell: (aspell). " || :
|
|---|
| 83 | fi
|
|---|
| 84 |
|
|---|
| 85 | %post devel
|
|---|
| 86 | if [ -f %{_infodir}/aspell-dev.info.gz ]; then
|
|---|
| 87 | %{_sbindir}/install-info %{_infodir}/aspell-dev.info.gz %{_infodir}/dir --entry="* Aspell-dev: (aspell-dev). " || :
|
|---|
| 88 | fi
|
|---|
| 89 |
|
|---|
| 90 | %preun
|
|---|
| 91 | if [ $1 = 0 ]; then
|
|---|
| 92 | if [ -f %{_infodir}/aspell.info.gz ]; then
|
|---|
| 93 | %{_sbindir}/install-info --delete %{_infodir}/aspell.info.gz %{_infodir}/dir || :
|
|---|
| 94 | fi
|
|---|
| 95 | fi
|
|---|
| 96 |
|
|---|
| 97 | %preun devel
|
|---|
| 98 | if [ $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
|
|---|
| 102 | fi
|
|---|
| 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
|
|---|