File lixbackups.spec of Package lixbackups
#
# spec file for package lixbackups
#
# Copyright (C) 2018-2024 Mark Grant <m.grant.prg@gmail.com>
#
#
# openSUSE Leap has a peculiar release field, this define is used in the release
# substitution provided by prep-spec-release.sh when building for Leap. (It will
# convert 150000 to 150 for Leap 15.0 and 150100 to 151 for Leap 15.1).
%if 0%{?is_opensuse} && 0%{?sle_version}
%define leap_version %( echo $(( \
$(( %{?sle_version} / 1000 )) \
+ $(( \
$(( %{?sle_version} \
- $(( \
$(( %{?sle_version} / 1000 )) \
* 1000 )) \
)) \
/100 )) \
)))
%endif
# Enter the Release numerics here.
%define pkg_release 0.0
Name: lixbackups
Version: 1.4.3
%if 0%{?suse_version}
Release: lp%{?leap_version}.%{?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
%changelog