%define build_static 0 Name: dump Version: 0.4b47 Release: 1mamba Summary: Programs for backing up and restoring ext2/ext3 filesystems Group: Applications/Archiving Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: https://dump.sourceforge.net/ Source: https://downloads.sourceforge.net/sourceforge/dump/dump-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libbzip2-devel BuildRequires: libe2fs-devel BuildRequires: libncurses-devel BuildRequires: libreadline-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Dump examines files in a filesystem, determines which ones need to be backed up, and copies those files to a specified disk, tape or other storage medium. The restore command performs the inverse function of dump %debug_package %prep %setup -q -a0 %build %configure \ --disable-rmt --disable-kerberos %make %if "%{build_static}" != "0" cd %{name}-%{version} %configure --enable-static \ --disable-rmt --disable-kerberos %make %endif %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d %{buildroot}/sbin install -d %{buildroot}%{_mandir}/man8 %makeinstall \ SBINDIR=%{buildroot}/sbin \ MANDIR=%{buildroot}%{_mandir}/man8 \ BINOWNER=$(id -un) \ BINGRP=$(id -gn) \ MANOWNER=$(id -un) \ MANGRP=$(id -gn) %if "%{build_static}" != "0" install %{name}-%{version}/dump/dump %{buildroot}/sbin/dump.static install %{name}-%{version}/restore/restore %{buildroot}/sbin/restore.static ln -sf dump.static %{buildroot}/sbin/rdump.static ln -sf restore.static %{buildroot}/sbin/rrestore.static %endif install -d %{buildroot}%{_sysconfdir} > %{buildroot}%{_sysconfdir}/dumpdates %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_sbindir}/dump %{_sbindir}/rdump %{_sbindir}/restore %{_sbindir}/rrestore %if "%{build_static}" != "0" %{_sbindir}/dump.static %{_sbindir}/rdump.static %{_sbindir}/restore.static %{_sbindir}/rrestore.static %endif %attr(0664,root,disk) %config(noreplace) %{_sysconfdir}/dumpdates %{_mandir}/man8/dump.* %{_mandir}/man8/rdump.* %{_mandir}/man8/restore.* %{_mandir}/man8/rrestore.* %doc AUTHORS COPYING %changelog * Fri Feb 05 2021 Automatic Build System 0.4b47-1mamba - automatic version update by autodist * Fri Aug 05 2011 Automatic Build System 0.4b44-1mamba - automatic version update by autodist * Wed Feb 23 2011 Automatic Build System 0.4b43-1mamba - automatic update by autodist * Wed Dec 12 2007 Aleph0 0.4b41-2mamba - updated distribution and vendor tags * Wed Feb 07 2007 Aleph0 0.4b41-1qilnx - package created by autospec