dump/dump.spec

116 lines
3.1 KiB
RPMSpec

%define build_static 0
Name: dump
Version: 0.4b48
Release: 1mamba
Summary: Programs for backing up and restoring ext2/ext3 filesystems
Group: Applications/Archiving
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: https://dump.sourceforge.io/
Source: https://downloads.sourceforge.net/sourceforge/dump/dump-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libblkid-devel
BuildRequires: libbzip2-devel
BuildRequires: libe2fs-devel
BuildRequires: liblzo-devel
BuildRequires: libncurses-devel
BuildRequires: libopenssl-devel
BuildRequires: libreadline-devel
BuildRequires: libselinux-devel
BuildRequires: libsqlite-devel
BuildRequires: libuuid-devel
BuildRequires: libz-devel
BuildRequires: setup
## AUTOBUILDREQ-END
%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
* Wed Oct 23 2024 Automatic Build System <autodist@openmamba.org> 0.4b48-1mamba
- automatic version update by autodist
* Fri Feb 05 2021 Automatic Build System <autodist@mambasoft.it> 0.4b47-1mamba
- automatic version update by autodist
* Fri Aug 05 2011 Automatic Build System <autodist@mambasoft.it> 0.4b44-1mamba
- automatic version update by autodist
* Wed Feb 23 2011 Automatic Build System <autodist@mambasoft.it> 0.4b43-1mamba
- automatic update by autodist
* Wed Dec 12 2007 Aleph0 <aleph0@openmamba.org> 0.4b41-2mamba
- updated distribution and vendor tags
* Wed Feb 07 2007 Aleph0 <aleph0@openmamba.org> 0.4b41-1qilnx
- package created by autospec