commit ee5470ec08f458fd1717df77e9fddb94662f3f85 Author: zhuchunyi Date: Wed Nov 6 19:56:15 2019 +0800 update code diff --git a/xfsdump-3.1.8.tar.xz b/xfsdump-3.1.8.tar.xz new file mode 100644 index 0000000..45df804 Binary files /dev/null and b/xfsdump-3.1.8.tar.xz differ diff --git a/xfsdump.spec b/xfsdump.spec new file mode 100644 index 0000000..257116a --- /dev/null +++ b/xfsdump.spec @@ -0,0 +1,54 @@ +Name: xfsdump +Version: 3.1.8 +Release: 5 +Summary: Tools create and restore for the XFS filesystem +License: GPLv2 +URL: http://xfs.org +Source0: http://kernel.org/pub/linux/utils/fs/xfs/%{name}/%{name}-%{version}.tar.xz + +BuildRequires: libtool, gettext, gawk, git +BuildRequires: xfsprogs-devel, ncurses-devel, libuuid-devel, libattr-devel +Requires: xfsprogs, attr + +%description +xfsdump tools create and restore backups of directory trees on XFS filesystems. + +%package help +Summary: Including man files for xfsdump +Requires: man + +%description help +This contains man files for the using of xfsdump. + +%prep +%autosetup -n %{name}-%{version} -p1 -S git + +%build +%configure + +%make_build + +%install +make DIST_ROOT=$RPM_BUILD_ROOT install + +rm %{buildroot}/%{_sbindir}/xfsdump +rm %{buildroot}/%{_sbindir}/xfsrestore +mv %{buildroot}/sbin/{xfsdump,xfsrestore} %{buildroot}/%{_sbindir}/ +mkdir -p %{buildroot}/%{_sharedstatedir}/xfsdump/inventory + +%find_lang %{name} + +%files -f %{name}.lang +%license doc/COPYING +%doc README doc/CHANGES doc/README.xfsdump +%exclude %{_datadir}/doc/xfsdump/ +%{_sbindir}/* +%{_sharedstatedir}/xfsdump/inventory + +%files help +%{_mandir}/man*/* + + +%changelog +* Thu Oct 17 2019 openEuler Buildteam - 3.1.8-5 +- Package init