File rdup.spec of Package rdup

#
# spec file for package rdup
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           rdup
Version:        1.1.15
Release:        0
Summary:        Tool to Generate an incremental Backup File List
License:        GPL-3.0+
Group:          Productivity/Archiving/Backup
Url:            https://github.com/miekg/rdup
Source:         https://github.com/miekg/rdup/archive/%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libnettle-devel
BuildRequires:  pkg-config
BuildRequires:  perl(GMP)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(libarchive)
BuildRequires:  pkgconfig(libpcre)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
rdup is a utility inspired by rsync and the Plan9 way of doing backups.

rdup itself does not backup anything; it only prints a list of the names of
files that have changed since the last backup. It also handles files that are
removed, allowing for correct incremental backups.

Auxilary scripts are needed to act on this list and implement the backup
strategy. This way rdup can be kept lean and mean.

%prep
%setup -q

%build
autoreconf -fiv
%configure
make %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%doc LICENSE AUTHORS ChangeLog README todo
%{_bindir}/rdup
%{_bindir}/rdup-simple
%{_bindir}/rdup-tr
%{_bindir}/rdup-up
%{_mandir}/man1/rdup.1%{ext_man}
%{_mandir}/man1/rdup-tr.1%{ext_man}
%{_mandir}/man1/rdup-up.1%{ext_man}
%{_mandir}/man7/rdup-backups.7%{ext_man}
%{_mandir}/man1/rdup-simple.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by