From dd25b1933d56fb8bae538d7d7e56677a3f5f5fad Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Wed, 27 Sep 2023 22:35:27 +0800 Subject: [PATCH] Cleanup spec for loongarch --- aspell.spec | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/aspell.spec b/aspell.spec index 4add662..b7d8c73 100644 --- a/aspell.spec +++ b/aspell.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 Summary: Spell checker Name: aspell Version: 0.60.8 @@ -35,8 +35,7 @@ dictionaries when more than one Aspell process is open at once. %package devel Summary: Libraries and header files for Aspell development -Requires: %{name} = %{epoch}:%{version}-%{release} -Requires: pkgconfig +Requires: %{name} = %{EVR} %description devel The aspell-devel package includes libraries @@ -44,7 +43,7 @@ and header files needed for Aspell development. %package doc Summary: Documentation files for %{name} -Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: %{name} = %{EVR} BuildArch: noarch %description doc @@ -57,7 +56,6 @@ 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 @@ -81,18 +79,15 @@ chrpath --delete ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60//markdown-filter.so chrpath --delete ${RPM_BUILD_ROOT}%{_bindir}/aspell chrpath --delete ${RPM_BUILD_ROOT}%{_libdir}/libpspell.so.* -rm -f ${RPM_BUILD_ROOT}%{_libdir}/libaspell.la -rm -f ${RPM_BUILD_ROOT}%{_libdir}/libpspell.la -rm -f ${RPM_BUILD_ROOT}%{_libdir}/aspell-0.60/*-filter.la rm -f ${RPM_BUILD_ROOT}%{_bindir}/aspell-import rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/aspell-import.1 -rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir %find_lang %{name} %generate_compatibility_deps %files -f %{name}.lang +%license COPYING %doc examples/aspell-import examples/aspell-import.1 %dir %{_libdir}/aspell-0.60 %dir %{abidir} @@ -118,19 +113,16 @@ rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir %{abidir}/texinfo-filter.dump %{abidir}/tex-filter.dump %{abidir}/sgml-filter.dump -%{abidir}/precat-option.list -%{abidir}/preunzip-option.list -%{abidir}/prezip-option.list -%{abidir}/pspell-config-option.list -%{abidir}/spell-option.list -%{abidir}/aspell-option.list +%{abidir}/*-option.list +%exclude %{abidir}/pspell-config-option.list %files doc -%doc README TODO COPYING +%doc README TODO %files devel %dir %{_includedir}/pspell %{_bindir}/pspell-config +%{abidir}/pspell-config-option.list %{_includedir}/aspell.h %{_includedir}/pspell/pspell.h %{_libdir}/lib*spell.so @@ -139,6 +131,9 @@ rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir %{_mandir}/man1/pspell-config.1* %changelog +* Wed Sep 27 2023 Funda Wang - 0.60.9-3 +- Cleanup spec for loongarch + * Mon Jan 09 2023 Kaihao Bai - 0.60.8-2 - add doc package and update spec -- Gitee