File postgresqltuner.spec of Package postgresqltuner
#
# spec file for package postgresqltuner
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2019 LISA GmbH, Bingen, 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 https://bugs.opensuse.org/
#
%define scriptfile postgresqltuner.pl
Name: postgresqltuner
Version: 1.0.1
Release: 0
Summary: Analyse your PostgreSQL database
License: GPL-3.0-or-later
Group: Productivity/Databases/Tools
URL: https://github.com/jfcoz/postgresqltuner
Source: postgresqltuner-%{version}.tar.gz
Requires: perl
Requires: perl(Config)
Requires: perl(DBD::Pg)
BuildArch: noarch
%description
postgresqltuner.pl is a simple script to analyse your PostgreSQL database.
It is inspired by mysqltuner.pl
%prep
%setup -q
sed -i 's,#!%{_bindir}/env perl,#!%{_bindir}/perl,' %scriptfile
%build
# nothing
%install
install -D -m 0755 %{scriptfile} %{buildroot}%{_bindir}/%{scriptfile}
%files
%license LICENSE.txt
%doc README.* documentation
%{_bindir}/%{scriptfile}
%changelog