## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global nagiospluginsdir %{_libdir}/nagios/plugins Name: nagios-plugins-ssl_cert Version: 2.49.0 Release: %autorelease Summary: Nagios Plugin to check SSL certificates License: GPL-3.0-or-later URL: https://exchange.nagios.org/directory/Plugins/Network-Protocols/HTTP/check_ssl_cert Source: https://github.com/matteocorti/check_ssl_cert/archive/v%{version}/%{name}-%{version}.tar.gz Requires: /usr/bin/bash Requires: /usr/bin/bc Requires: /usr/bin/curl Requires: /usr/bin/date Requires: /usr/bin/openssl Requires: nagios-plugins Requires: perl(Date::Parse) Recommends: /usr/bin/dig Recommends: /usr/bin/expand Recommends: /usr/bin/timeout Recommends: /usr/sbin/ip BuildRequires: make Provides: nagios-plugins-check_ssl_cert = %{version}-%{release} Obsoletes: nagios-plugins-check_ssl_cert < 2.49.0-2 # The package does not contain any architecture-dependent things, but installs # into an arch-dependent directory. Thus, it cannot be noarch, but it does not # provide any debuginfo. %global debug_package %{nil} %description A POSIX shell script (that can be used as a Nagios/Icinga plugin) to check an SSL/TLS connection and certificate. %prep %autosetup -p1 -n check_ssl_cert-%{version} %build # Nothing to do here. %install %make_install DESTDIR=%{buildroot}/%{nagiospluginsdir} MANDIR=%{buildroot}/%{_mandir} %files %doc NEWS.md %doc README.md %doc SECURITY.md %license COPYING.md %{_mandir}/man1/check_ssl_cert.1* %{nagiospluginsdir}/* %changelog * Fri Nov 11 2022 Till Hofmann 2.49.0-2 - Uncommitted changes * Sun Nov 06 2022 Till Hofmann 2.49.0-1 - Rename package to nagios-plugins-ssl_cert