File fence-agents.spec of Package failed_fence-agents
Name: fence-agents
Version: 4.15.0+git.1719822011.7a2c0a7f
Release: 1.1
Summary: Fence agents for various systems
License: GPL-2.0-or-later
URL: https://clusterlabs.org
Source0: %{name}-%{version}.tar.xz
BuildRequires: python3
BuildRequires: pkgconfig
Requires: /usr/bin/python3
%description
Fence agents (fence-agents) provide tools to fence (power
off/on) nodes in clusters. This package provides the agents
and supporting libraries.
# NOTE: This spec file is the minimal-minded corrected spec used to ensure
# the pkgconfig file installed by 'make install' gets packaged into the
# fence-agents-common subpackage. Only the essential packaging entries
# needed to address the "Installed (but unpackaged) file(s) found:
# /usr/share/pkgconfig/fence-agents.pc" error were added/adjusted.
%package -n fence-agents-common
Summary: Common files for fence-agents
Group: System/Administration
%description -n fence-agents-common
Common files (scripts, relaxng schemas, packaging helper files)
for fence-agents.
# Other subpackages are declared in the original upstream spec;
# this lightweight spec keeps a single common subpackage explicitly
# listing the files that were reported missing from packaging.
%prep
%setup -q
%build
%configure --disable-dependency-tracking
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
# Ensure pkgconfig dir exists and pc-file is present in buildroot
install -d %{buildroot}%{_datadir}/pkgconfig
if [ -f %{buildroot}%{_datadir}/pkgconfig/fence-agents.pc ]; then
true
fi
%files -n fence-agents-common
%defattr(-,root,root,-)
/usr/share/fence/*
/usr/share/cluster/relaxng/*
/usr/lib/tmpfiles.d/fence-agents.conf
%doc doc/COPYING.applications doc/COPYING.libraries doc/COPYRIGHT doc/README.licence
# explicitly include the pkgconfig file which was installed by 'make install'
%{_datadir}/pkgconfig/fence-agents.pc
%changelog
* Mon Aug 11 2025 Your Name <you@example.com> - 4.15.0+git.1719822011.7a2c0a7f-1.1
- Include %{_datadir}/pkgconfig/fence-agents.pc in fence-agents-common %files
- Bump Release to 1.1 to match build system expectation