Пакет proxmox-mini-journalreader: Specfile

%define _unpackaged_files_terminate_build 1

Name: proxmox-mini-journalreader
Summary: Minimal systemd Journal Reader
Version: 1.3.1
Release: alt1
License: AGPL-3.0+
Group: System/Servers
Url: https://www.proxmox.com
Vcs: git://git.proxmox.com/git/proxmox-mini-journalreader.git
Source: %name-%version.tar
Patch: %name-%version.patch

Provides: pve-mini-journalreader = %EVR
Obsoletes: pve-mini-journalreader < %EVR

BuildRequires: libsystemd-devel

%description
A minimal application to read the last X lines of the systemd journal or the
last X lines before a cursor.

%prep
%setup
%patch -p1
# Already have _FORTIFY_SOURCE=3
sed -i 's/-D_FORTIFY_SOURCE=2//' src/Makefile

%build
%make_build -C src

%install
%makeinstall_std -C src

%files
%doc debian/copyright
%_bindir/*

%changelog
* Thu May 25 2023 Andrew A. Vasilyev <andy@altlinux.org> 1.3.1-alt1
- add copyright file

* Fri Apr 28 2023 Andrew A. Vasilyev <andy@altlinux.org> 1.3-alt2
- FTBS: fix for _FORTIFY_SOURCE.

* Mon Jan 24 2022 Alexey Shabalin <shaba@altlinux.org> 1.3-alt1
- Initial build as separate package.