Package rpm-build-systemd: Specfile

%define oname systemd

Name: rpm-build-%oname
Version: 5
Release: alt0.3.p9

Summary: RPM helper macros to build packages with systemd support
License: LGPL-2.1-or-later
Group: Development/Other
BuildArch: noarch
Source1: systemd.macros
Requires: rpm-macros-%oname >= %EVR
Requires: libsystemd-devel

%description
%summary.

%package -n rpm-macros-%oname
Group: Development/Other
BuildArch: noarch
Summary: Macros that define paths and scriptlets related to systemd

%description -n rpm-macros-%oname
%summary.

%prep

%build
%install
mkdir -p %buildroot%_rpmmacrosdir
install -D -m644 %SOURCE1 -p %buildroot%_rpmmacrosdir/%oname

%files
%files -n rpm-macros-%oname
%_rpmmacrosdir/*

%changelog
* Fri Jan 21 2022 Alexey Shabalin <shaba@altlinux.org> 5-alt0.3.p9
- Backport to p9.

* Mon Oct 18 2021 Alexey Shabalin <shaba@altlinux.org> 5-alt0.3.p10
- Fixed typo in bash script.

* Mon Oct 18 2021 Alexey Shabalin <shaba@altlinux.org> 5-alt0.2.p10
- Drop requires on systemd from package with macros.

* Wed Oct 13 2021 Alexey Shabalin <shaba@altlinux.org> 5-alt0.1.p10
- Add macros from rpm-build-4.0.4-alt176.
- Backport to p10.

* Mon Oct 11 2021 Alexey Shabalin <shaba@altlinux.org> 5-alt1
- Rename macros post_systemd_restart_later to post_systemd_postponed

* Sun Sep 05 2021 Alexey Shabalin <shaba@altlinux.org> 4-alt1
- Fixed %%post_systemd_restart_later macros.

* Thu Sep 02 2021 Alexey Shabalin <shaba@altlinux.org> 3-alt1
- Used systemd-update-helper in macroses.

* Fri Aug 27 2021 Alexey Shabalin <shaba@altlinux.org> 2-alt2
- Fixed rpm changelog for 2-alt1.

* Thu Aug 26 2021 Alexey Shabalin <shaba@altlinux.org> 2-alt1
- Added macroses:
  %%post_systemd, %%preun_systemd, %%post_systemd_restart_later

* Mon Aug 23 2021 Alexey Shabalin <shaba@altlinux.org> 1-alt1
- Initial build.