File rsnapgraph.spec of Package rsnapgraph

#
# spec file for package rsnapgraph
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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:           rsnapgraph
Version:        0.6
Release:        0
Summary:        Graph Tool for rsnapshot Backups
License:        GPL-2.0
Group:          Productivity/Archiving/Backup
Url:            http://denism.homeip.net/software/rsnapgraph.html
Source:         http://denism.homeip.net/software/rsnapgraph/rsnapgraph-%{version}.tar.gz
Patch1:         rsnapgraph-config.patch
BuildRequires:  perl-macros
Requires:       gnuplot >= 4.0.0
Requires:       rsnapshot
BuildArch:      noarch
%{perl_requires}

%description
rsnapgraph is a utility that will analyze the snapshot backups created by
rsnapshot (http://www.rsnapshot.org), and produce two graphs showing file and
disk space changes over time.
* The rsnapshot-files.png graph shows the number of files created and deleted
  between each snapshot, as well as a running graph showing the total number
  of files in each snapshot.
* The rsnapshot-size graph shows the amount of disk space being freed or used
  by each snapshot, as well as a running graph showing the total amount of
  disk space used by each snapshot.

It's useful to know whether the snapshots are very volatile, and if so, which
directories are changing. If disk space is tight, then this can help identify
directories within each snapshot which can be removed from the snapshot to
save space. Plus the graphs are pretty.

%prep
%setup -q
%patch1

%build

%install
install -Dp -m 0755 rsnapgraph \
  %{buildroot}%{_bindir}/rsnapgraph
install -Dp -m 0644 rsnapgraph.conf \
  %{buildroot}%{_sysconfdir}/rsnapgraph.conf
install -d -m 0755 %{buildroot}%{_localstatedir}/cache/rsnapgraph
install -d %{buildroot}/srv/www/htdocs/rsnapgraph

%files
%doc CHANGES LICENSE README TODO
%config(noreplace) %{_sysconfdir}/rsnapgraph.conf
%{_bindir}/rsnapgraph
%{_localstatedir}/cache/rsnapgraph
/srv/www/htdocs/rsnapgraph

%changelog
openSUSE Build Service is sponsored by