File delta_reporting.spec of Package delta_reporting
#
# spec file for package delta_reporting
#
# Copyright (c) 2014 SUSE LINUX Products 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: delta_reporting
Summary: Promise reporting portal using CFEngine
License: GPL-3.0
Group: System
Version: 3.5+git20170330.221d78670588
Release: 0
Url: https://github.com/evolvethinking/delta_reporting
Source: %{name}-%{version}.tar.xz
Source1: %{name}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# BuildArch: noarch
%if 0%{?suse_version} > 1010
BuildRequires: fdupes
%endif
Requires: perl(NET::DNS)
Requires: perl(DBI)
Requires: perl(DBI::Pg)
Requires: postgresql91
Requires: cfengine >= 3.5
%description
Delta Reporting provides centralized CFEngine class and promise reporting via a modern and responsive web application.
Features
- Report on class membership history.
- Report on low level promise compliance history.
- Inventory reporting.
- Centralize all your CFEngine servers to a single reporting database.
- IPV6 ready.
- Use you existing database infrastructure.
- Sort and filter your report results.
- Save your reports in multiple formats.
%package doc
License: GPL-3.0
Group: Documentation
Summary: Documentation for delta_reporting
%description doc
Documentation for delta_reporting.
%prep
%setup -q
%build
%install
%{__install} -d %{buildroot}/%{_bindir}
%{__install} bin/delta_reporting %{buildroot}/%{_bindir}
%{__install} bin/dhlogmaker %{buildroot}/%{_bindir}
%{__install} -d %{buildroot}/%{_datadir}/%{name}
cp -a app %{buildroot}/%{_datadir}/%{name}
cp -a perl5 %{buildroot}/%{_datadir}/%{name}
%{__install} -d %{buildroot}/var/cfengine/masterfiles
%{__install} masterfiles/* %{buildroot}/var/cfengine/masterfiles
%if 0%{?suse_version} > 1010
%fdupes %{buildroot}/%{_docdir}/%{name}
%endif
%files
%defattr(-,root,root)
%doc LICENSE README.md
%doc doc
%{_bindir}/delta_reporting
%{_bindir}/dhlogmaker
%dir /var/cfengine
%dir /var/cfengine/masterfiles
/var/cfengine/masterfiles/delta_reporting.cf
%dir %{_datadir}/%{name}
%dir %exclude %{_datadir}/%{name}/perl5/man
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/perl5/man
%files doc
%defattr(-,root,root)
%doc LICENSE README.md
%dir %{_datadir}/%{name}/perl5/man
%{_datadir}/%{name}/perl5/man
%changelog