File lixbackups.spec of Package lixbackups
#
# spec file for package lixbackups
#
# Copyright (C) 2018-2025 Mark Grant <m.grant.prg@gmail.com>
#
#
# openSUSE Leap has a peculiar release field and inconsistent versioning macros.
# Prior to 16.0 sle_version must be used to provide the version, it has the
# format 150600. For 16.0 and subsequent releases, suse_version must be used,
# it has the format 1600. N.B. This is all true of osc builds, OBS seems to work
# probably because it overrides the spec file Release field.
%if 0%{?is_opensuse}
%if 0%{?suse_version} >= 1600
%define major %(version=%{?suse_version}; echo ${version::2})
%define minor %(version=%{?suse_version}; echo ${version:(-1)})
%else
%define major %(version=%{?sle_version}; echo ${version::2})
%define minor %(version=%{?sle_version}; echo ${version:(-3):1})
%endif
%endif
# Enter the Release numerics here.
%define pkg_release 0.0
Name: lixbackups
Version: 1.5.0
%if 0%{?is_opensuse}
Release: lp%{?major}%{?minor}.%{?pkg_release}
%else
Release: %{?pkg_release}
%endif
License: GPL-3.0
Summary: Linux backup scripts
Url: https://github.com/m-grant-prg/%{name}/wiki
Group: System/Management
Source0: https://github.com/m-grant-prg/%{name}/release/%{name}-%{version}.tar.gz
BuildRequires: autoconf, automake, make
BuildRequires: bash, tar
BuildRequires: txt2manwrap
Requires: bash, tar
Requires: gawk, mailx, lsof, util-linux, findutils, coreutils
%{?suse_version:Requires: shadow, util-linux-systemd}
%{?fedora:Requires: passwd}
Recommends: logrotate
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A set of scripts which enable ad hoc, weekly incremental and weekly differential
backups. These backups can be to NFS or CIFS shares (including NAS).
%prep
%setup -q -n %{name}-%{version}
%build
autoreconf -if
%configure docdir=%{_docdir}/%{name}
make %{?jobs:-j%jobs}
%install
%make_install
%files
%defattr(-,root,root,-)
%license COPYING
%doc %{_docdir}/%{name}
#doc README.md
%config %{_sysconfdir}/%{name}
%config %{_sysconfdir}/logrotate.d/%{name}
%{_mandir}/man5/backups.conf.5.gz
%{_mandir}/man5/bckdaily.exclude.5.gz
%{_mandir}/man5/bckseldaily.exclude.5.gz
%{_mandir}/man5/bckseldaily.files.5.gz
%{_mandir}/man5/bcksystem.exclude.5.gz
%{_mandir}/man5/bckweekly.exclude.5.gz
%{_mandir}/man8/attbckshare.8.gz
%{_mandir}/man8/chkbckshare.8.gz
%{_mandir}/man8/detbckshare.8.gz
%{_mandir}/man8/netbckup.8.gz
%{_libexecdir}/%{name}
%{_sbindir}/attbckshare
%{_sbindir}/chkbckshare
%{_sbindir}/detbckshare
%{_sbindir}/netbckup
%{_datadir}/bash-completion/completions/attbckshare
%{_datadir}/bash-completion/completions/chkbckshare
%{_datadir}/bash-completion/completions/detbckshare
%{_datadir}/bash-completion/completions/netbckup
%changelog