%global debug_package %{nil} Name: fx700-bmc Version: 0.0.17 Release: 1%{?dist} Summary: Support for FX700 BMC License: GPLv2 URL: https://rqcd.ur.de:8443/hpc63824/fx700-bmc Source0: %{name}-%{version}.tar.bz2 BuildRequires: systemd-rpm-macros BuildRequires: gcc Requires: OpenIPMI Requires: %{name}-dkms %description Provides FX700 BMC relevant drivers. %package dkms Summary: FX700 BMC kernel module (dkms) BuildArch: noarch Requires: dkms %description dkms FX700 BMC kernel module (dkms). %prep %autosetup %build %make_build -C src %install %make_install -C src install -D -m 0644 driver/* -t %{buildroot}/usr/src/%{name}-%{version} install -D -m 0644 packaging/bmc-log-tmpfiles.conf %{buildroot}/%{_tmpfilesdir}/bmc-log-tmpfiles.conf install -D -m 0644 packaging/bmc.service %{buildroot}/%{_unitdir}/bmc.service sed -e "s#@sbindir@#%{_sbindir}#g" \ packaging/bmc-report.service.in > %{buildroot}/%{_unitdir}/bmc-report.service %files %{_sbindir}/bmcreport %{_tmpfilesdir}/bmc-log-tmpfiles.conf %{_unitdir}/bmc.service %{_unitdir}/bmc-report.service %files dkms %{_prefix}/src/%{name}-%{version} %post dkms for POSTINST in /usr/lib/dkms/common.postinst do if [ -f $POSTINST ] then $POSTINST %{name} %{version} exit $? fi echo "WARNING: $POSINST does not exist." done echo -e "ERROR: DKMS version is too old and %{name} was not" echo -e "built with legacy DKMS support." echo -e "You must either rebuild %{name} with legacy postinst" echo -e "support or upgrade DKMS to a more current version." exit 1 %post %systemd_post bmc-report.service %preun %systemd_preun bmc-report.service %postun %systemd_postun_with_restart bmc-report.service %preun dkms dkms remove -m %{name} -v %{version} --all --rpm_safe_upgrade exit 0 %changelog * Wed Apr 17 2024 Peter Georg - 0.0.17-1 - Update to 0.0.17 * Tue Oct 31 2023 Peter Georg - 0.0.16-3 - Add: BuildRequires: systemd-rpm-macros - Remove: %%{?systemd_requires} - Disable debug packages * Sat Jan 29 2022 Peter Georg - 0.0.16 - Update to upstream release 0.0.16 * Mon Sep 20 2021 Peter Georg - 0.0.12 - Update to upstream release 0.0.12 * Fri Jan 08 2021 Peter Georg - 0.0.10 - Update to upstream release 0.0.10 * Wed Aug 12 2020 Peter Georg - 0.0.8 - Update to upstream release 0.0.8 * Thu Apr 30 2020 Peter Georg - 0.0.7 - Upstream release 0.0.7