From 96a6e471d866b6b130a02f9b9a0a7d203ecde857 Mon Sep 17 00:00:00 2001 From: yuanhui Date: Mon, 16 Jan 2023 16:33:17 +0800 Subject: [PATCH] Add doc package and abi files Signed-off-by: yuanhui --- automake.spec | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/automake.spec b/automake.spec index 8667c13..4dca3c5 100644 --- a/automake.spec +++ b/automake.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 # perform 'make check' by default %bcond_without check @@ -37,8 +37,6 @@ BuildRequires: java-devel BuildRequires: libtool BuildRequires: ncompress BuildRequires: sharutils -BuildRequires: texlive-dvips -BuildRequires: texinfo-tex BuildRequires: vala %endif @@ -53,13 +51,21 @@ Requires: perl(threads) %description -Automake is a tool for automatically generating `Makefile.in' files +Automake is a tool for automatically generating `Makefile.in` files compliant with the GNU Coding Standards. You should install Automake if you are developing software and would like to use its ability to automatically generate GNU standard Makefiles. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %autosetup -p1 %if %{with check} @@ -75,27 +81,37 @@ cp contrib/multilib/README README.multilib %check %if %{with check} -make -k %{?_smp_mflags} check || ( cat ./test-suite.log ; false ) +make -k %{?_smp_mflags} check || ( cat ./test-suite.log ; false ) %endif %install make install DESTDIR=%{buildroot} +%generate_compatibility_deps + %files %license COPYING -%doc AUTHORS README THANKS NEWS README.aclocal README.multilib +%dir %{abidir} %doc %{_pkgdocdir}/amhello-1.0.tar.gz %exclude %{_infodir}/dir %exclude %{_datadir}/aclocal %{_bindir}/* +%{abidir}/%{name}*-option.list %{_infodir}/*.info* %{_mandir}/man1/* %{_datadir}/automake-* %{_datadir}/aclocal-* +%{abidir}/aclocal*-option.list + +%files doc +%doc AUTHORS README THANKS NEWS README.aclocal README.multilib %changelog +* Mon Jan 16 2023 yuanhui - 1.16.5-3 +- add doc package and abi files + * Thu Jul 28 2022 happy_orange - 1.16.5-2 - Add requires because requirements not detected automatically * Fri May 20 2022 Su Lifan - 1.16.5-1 -- Initial packaging for Anolis OS 23 +- Initial packaging for Anolis OS 23 \ No newline at end of file -- Gitee