From a34837d10e45c5610a9534bdec651bc7377f6bdc Mon Sep 17 00:00:00 2001 From: Jing Zhang Date: Mon, 9 Jan 2023 21:15:23 +0800 Subject: [PATCH] Optimize spec Signed-off-by: Jing Zhang --- dump.spec | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/dump.spec b/dump.spec index ae322ef..957bc9c 100644 --- a/dump.spec +++ b/dump.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %define PREVER b47 %define DUMP_VERSION 0.4%{PREVER} @@ -11,7 +11,7 @@ Version: 0.4 Release: %{anolis_release}%{dist} License: BSD URL: https://sourceforge.net/projects/dump/ -Source: http://downloads.sourceforge.net/dump/dump-%{DUMP_VERSION}.tar.gz +Source: http://downloads.sourceforge.net/%{name}/%{name}-%{DUMP_VERSION}.tar.gz BuildRequires: e2fsprogs-devel >= 1.18, readline-devel >= 4.2 BuildRequires: zlib-devel, bzip2-devel, automake, make BuildRequires: device-mapper-devel, libselinux-devel @@ -34,8 +34,16 @@ directory subtrees may also be restored from full or partial backups. Install dump if you need a system for both backing up filesystems and restoring filesystems after backups. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{epoch}:%{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep -%setup -q -n dump-%{DUMP_VERSION} +%setup -q -n %{name}-%{DUMP_VERSION} %build autoreconf -fiv @@ -79,7 +87,7 @@ pushd %{buildroot} popd %files -%doc AUTHORS COPYING INSTALL KNOWNBUGS MAINTAINERS NEWS README REPORTING-BUGS TODO +%license COPYING %doc dump.lsm %attr(0664,root,disk) %config(noreplace) %{_sysconfdir}/dumpdates %{_sbindir}/dump @@ -92,6 +100,12 @@ popd %{_mandir}/man8/restore.8* %{_mandir}/man8/rrestore.8* -%changelog +%files doc +%doc AUTHORS ChangeLog NEWS README REPORTING-BUGS TODO KNOWNBUGS MAINTAINERS + +%changelog +* Mon Jan 9 2023 Jing Zhang 0.4-2 +- Optimize spec. + * Tue Apr 12 2022 Zhongling He 0.4-1 - Init package from upstream v0.4b47 -- Gitee