| 1 | Summary: A spelling checker
|
|---|
| 2 | Name: aspell
|
|---|
| 3 | Version: 0.60.6.1
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | License: LGPL
|
|---|
| 6 | Group: Applications/Text
|
|---|
| 7 | URL: 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 |
|
|---|
| 12 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
|---|
| 13 |
|
|---|
| 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
|
|---|
| 15 |
|
|---|
| 16 | BuildRequires: gettext, ncurses-devel, pkgconfig
|
|---|
| 17 | #Requires(pre): /sbin/install-info
|
|---|
| 18 | #Requires(preun): /sbin/install-info
|
|---|
| 19 | Requires: aspell-en
|
|---|
| 20 | Provides: pspell < 0.13
|
|---|
| 21 | Obsoletes: pspell < 0.13
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 | %description
|
|---|
| 25 | GNU Aspell is a spell checker designed to eventually replace Ispell. It can
|
|---|
| 26 | either be used as a library or as an independent spell checker. Its main
|
|---|
| 27 | feature is that it does a much better job of coming up with possible
|
|---|
| 28 | suggestions than just about any other spell checker out there for the
|
|---|
| 29 | English language, including Ispell and Microsoft Word. It also has many
|
|---|
| 30 | other technical enhancements over Ispell such as using shared memory for
|
|---|
| 31 | dictionaries and intelligently handling personal dictionaries when more
|
|---|
| 32 | than one Aspell process is open at once.
|
|---|
| 33 |
|
|---|
| 34 | %package devel
|
|---|
| 35 | Summary: Static libraries and header files for Aspell development
|
|---|
| 36 | Group: Development/Libraries
|
|---|
| 37 | Requires: %{name} = %{version}-%{release}
|
|---|
| 38 | #Requires(pre): /sbin/install-info
|
|---|
| 39 | #Requires(preun): /sbin/install-info
|
|---|
| 40 | Requires: pkgconfig
|
|---|
| 41 | Provides: pspell-devel < 0.13
|
|---|
| 42 | Obsoletes: pspell-devel < 0.13
|
|---|
| 43 |
|
|---|
| 44 | %description devel
|
|---|
| 45 | Aspell is a spelling checker. The aspell-devel package includes the
|
|---|
| 46 | static libraries and header files needed for Aspell development.
|
|---|
| 47 |
|
|---|
| 48 | %package debug
|
|---|
| 49 | Summary: 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
|
|---|
| 59 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
|---|
| 60 | rm -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 |
|
|---|
| 64 | autoreconf -fi
|
|---|
| 65 |
|
|---|
| 66 | %build
|
|---|
| 67 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
|
|---|
| 68 | export LIBS="-ltinfo" ; \
|
|---|
| 69 |
|
|---|
| 70 | %configure --disable-static
|
|---|
| 71 | make %{?_smp_mflags}
|
|---|
| 72 |
|
|---|
| 73 | %install
|
|---|
| 74 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 75 | %makeinstall
|
|---|
| 76 |
|
|---|
| 77 | mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60
|
|---|
| 78 |
|
|---|
| 79 | mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/ispell ${RPM_BUILD_ROOT}%{_bindir}
|
|---|
| 80 | mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/spell ${RPM_BUILD_ROOT}%{_bindir}
|
|---|
| 81 |
|
|---|
| 82 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
|
|---|
| 83 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/*.la
|
|---|
| 84 | chmod 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
|
|---|
| 109 | rm -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
|
|---|