aspell/aspell.spec

135 lines
4.0 KiB
RPMSpec
Raw Normal View History

2019-11-29 15:21:36 +08:00
Name: aspell
Version: 0.60.6.1
2022-07-29 15:22:06 +08:00
Release: 30
2019-11-29 15:21:36 +08:00
Summary: Spell checker
Epoch: 12
License: LGPLv2+ and LGPLv2 and GPLv2+ and BSD
URL: http://aspell.net/
2020-12-24 15:31:27 +08:00
Source: http://mirrors.ustc.edu.cn/gnu/aspell/aspell-%{version}.tar.gz
2019-11-29 15:21:36 +08:00
Patch0000: aspell-0.60.3-install_info.patch
Patch0001: aspell-0.60.5-fileconflict.patch
Patch0002: aspell-0.60.5-pspell_conf.patch
Patch0003: aspell-0.60.6-zero.patch
Patch0004: aspell-0.60.6-mp.patch
Patch0005: aspell-0.60.6.1-dump-personal-abort.patch
Patch0006: aspell-0.60.6.1-aarch64.patch
Patch0007: aspell-0.60.6.1-gcc7-fixes.patch
Patch0008: aspell-0.60.6.1-fix-back-on-empty-vector.patch
2021-07-27 11:13:20 +08:00
Patch0009: CVE-2019-17544.patch
2021-09-23 19:45:31 +08:00
Patch0010: CVE-2019-25051.patch
2021-09-28 17:40:31 +08:00
Patch0011: CVE-2019-20433-1.patch
Patch0012: CVE-2019-20433-2.patch
2022-07-29 15:22:06 +08:00
Patch0013: aspell-0.60.6.1-sw.patch
2019-11-29 15:21:36 +08:00
BuildRequires: chrpath gettext ncurses-devel pkgconfig perl-interpreter gcc-c++
%description
GNU Aspell is a spell checker intended to replace Ispell.
It can be used as a library and spell checker. Its main
feature is that it provides much better suggestions than
other inspectors, including Ispell and Microsoft Word.
It also has many other technical enhancements to Ispell,
such as the use of shared memory to store dictionaries,
and intelligent processing of personal dictionaries when
multiple Aspell processes are opened at one time.
%package devel
Summary: Libraries and header files for Aspell development
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: pkgconfig
%description devel
The aspell-devel package includes libraries
and header files needed for Aspell development.
%package help
Summary: Introduce how to use aspell
%description help
User's Manual for aspell
%prep
%autosetup -n %{name}-%{version} -p1
iconv -f iso-8859-2 -t utf-8 < manual/aspell.info > manual/aspell.info.aux
mv manual/aspell.info.aux manual/aspell.info
%build
%configure --disable-rpath
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%make_build
cp scripts/aspell-import examples/aspell-import
chmod 644 examples/aspell-import
cp manual/aspell-import.1 examples/aspell-import.1
%install
%makeinstall
install -d ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60
mv ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/{ispell,spell} ${RPM_BUILD_ROOT}%{_bindir}
for path in nroff-filter.so sgml-filter.so context-filter.so email-filter.so tex-filter.so texinfo-filter.so;
do
chrpath --delete ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60//$path;
done
chrpath --delete ${RPM_BUILD_ROOT}%{_bindir}/aspell
chrpath --delete ${RPM_BUILD_ROOT}%{_libdir}/libpspell.so.*
rm -rf ${RPM_BUILD_ROOT}%{_mandir}/man1/aspell-import.1
%find_lang %{name}
%files -f %{name}.lang
%doc COPYING examples/aspell-import examples/aspell-import.1
%dir %{_libdir}/aspell-0.60
%{_bindir}/a*
%{_bindir}/ispell
%{_bindir}/pr*
%{_bindir}/run-with-aspell
%{_bindir}/spell
%{_bindir}/word-list-compress
%{_libdir}/lib*.so.*
%{_libdir}/aspell-0.60/*
%{_infodir}/aspell.*
%exclude %{_libdir}/libaspell.la
%exclude %{_libdir}/libpspell.la
%exclude %{_libdir}/aspell-0.60/*-filter.la
%exclude %{_bindir}/aspell-import
%files devel
%dir %{_includedir}/pspell
%{_bindir}/pspell-config
%{_includedir}/aspell.h
%{_includedir}/pspell/pspell.h
%{_libdir}/lib*spell.so
%{_libdir}/pkgconfig/*
%{_infodir}/aspell-dev.*
%files help
%doc README TODO
%{_mandir}/man1/aspell.1.*
%{_mandir}/man1/run-with-aspell.1*
%{_mandir}/man1/word-list-compress.1*
%{_mandir}/man1/prezip-bin.1.*
%{_mandir}/man1/pspell-config.1*
%changelog
2022-07-29 15:22:06 +08:00
* Thu Jul 28 2022 wuzx<wuzx1226@qq.com> - 12:0.60.6.1-30
- add sw64 patch
2021-09-28 17:40:31 +08:00
* Tue Sep 28 2021 yaoxin<yaoxin30@huawei.com> - 12:0.60.6.1-29
- fix CVE-2019-20433
2021-09-23 19:45:31 +08:00
* Thu Sep 23 2021 liwu<liwu13@huawei.com> - 12:0.60.6.1-28
- fix CVE-2019-25051
2021-07-27 11:13:20 +08:00
* Thu Jul 27 2021 houyingchao<houyingchao@huawei.com> - 12:0.60.6.1-27
- fix CVE-2019-17544
2020-12-24 15:31:27 +08:00
* Thu Dec 24 2020 Ge Wang<wangge20@huawei.com> - 12:0.60.6.1-26
- Modify Source0 url
2019-11-29 15:21:36 +08:00
* Wed Nov 27 2019 yangjian<yangjian79@huawei.com> - 12:0.60.6.1-25
- Package init