mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-04 01:32:04 +00:00
This adds the fenced scripts so that we have a place to track these and get updates out to users. This latest version of scripts has the checks to validate that power off succeeded and not just assume based on power command return status. Signed-off-by: Ben McClelland <ben.mcclelland@versity.com>
84 lines
2.8 KiB
RPMSpec
84 lines
2.8 KiB
RPMSpec
%define pkg_version @@VERSION@@
|
|
%define pkg_git_hash @@GITHASH@@
|
|
%define pkg_date %(date +%%Y%%m%%d)
|
|
|
|
%{!?_release: %global _release 0.%{pkg_date}git%{pkg_git_hash}}
|
|
|
|
Name: scoutfs-utils
|
|
Summary: scoutfs user space utilities
|
|
Version: %{pkg_version}
|
|
Release: %{_release}%{?dist}
|
|
License: GPLv2
|
|
Group: System Environment/Base
|
|
URL: http://scoutfs.org/
|
|
|
|
BuildRequires: git
|
|
BuildRequires: gzip
|
|
BuildRequires: libuuid-devel
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: libblkid-devel
|
|
|
|
#Requires: kmod-scoutfs = %{version}
|
|
|
|
Source: scoutfs-utils-%{pkg_version}.tar
|
|
|
|
# Disable the building of the debug package(s).
|
|
%define debug_package %{nil}
|
|
|
|
%description
|
|
scoutfs - user space utilities
|
|
|
|
%package -n scoutfs-devel
|
|
Summary: scoutfs devel headers
|
|
Version: %{pkg_version}
|
|
Release: %{_release}%{?dist}
|
|
License: GPLv2
|
|
Group: Development/Libraries
|
|
URL: http://scoutfs.org/
|
|
|
|
%description -n scoutfs-devel
|
|
scoutfs - development headers
|
|
|
|
%prep
|
|
%setup -q -n scoutfs-utils-%{pkg_version}
|
|
|
|
%build
|
|
make
|
|
gzip man/*.?
|
|
|
|
%install
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{5,7,8}
|
|
cp man/*.5.gz $RPM_BUILD_ROOT%{_mandir}/man5/.
|
|
cp man/*.7.gz $RPM_BUILD_ROOT%{_mandir}/man7/.
|
|
cp man/*.8.gz $RPM_BUILD_ROOT%{_mandir}/man8/.
|
|
install -m 755 -D src/scoutfs $RPM_BUILD_ROOT%{_sbindir}/scoutfs
|
|
install -m 644 -D src/ioctl.h $RPM_BUILD_ROOT%{_includedir}/scoutfs/ioctl.h
|
|
install -m 644 -D src/format.h $RPM_BUILD_ROOT%{_includedir}/scoutfs/format.h
|
|
install -m 755 -D fenced/scoutfs-fenced $RPM_BUILD_ROOT%{_libexecdir}/scoutfs-fenced/scoutfs-fenced
|
|
install -m 755 -D fenced/local-force-unmount $RPM_BUILD_ROOT%{_libexecdir}/scoutfs-fenced/run/local-force-unmount
|
|
install -m 755 -D fenced/ipmi-remote-host $RPM_BUILD_ROOT%{_libexecdir}/scoutfs-fenced/run/ipmi-remote-host
|
|
install -m 755 -D fenced/powerman-remote-host $RPM_BUILD_ROOT%{_libexecdir}/scoutfs-fenced/run/powerman-remote-host
|
|
install -m 644 -D fenced/scoutfs-fenced.service $RPM_BUILD_ROOT%{_unitdir}/scoutfs-fenced.service
|
|
install -m 644 -D fenced/scoutfs-fenced.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/scoutfs/scoutfs-fenced.conf.example
|
|
install -m 644 -D fenced/scoutfs-ipmi.conf $RPM_BUILD_ROOT%{_sysconfdir}/scoutfs/scoutfs-ipmi.conf
|
|
install -m 644 -D fenced/scoutfs-ipmi-hosts.conf $RPM_BUILD_ROOT%{_sysconfdir}/scoutfs/scoutfs-ipmi-hosts.conf
|
|
install -m 644 -D fenced/scoutfs-pm.conf $RPM_BUILD_ROOT%{_sysconfdir}/scoutfs/scoutfs-pm.conf
|
|
install -m 644 -D fenced/scoutfs-pm-hosts.conf $RPM_BUILD_ROOT%{_sysconfdir}/scoutfs/scoutfs-pm-hosts.conf
|
|
|
|
%files
|
|
%defattr(644,root,root,755)
|
|
%{_mandir}/man*/scoutfs*.gz
|
|
%{_unitdir}/scoutfs-fenced.service
|
|
%config(noreplace) %{_sysconfdir}/scoutfs
|
|
%defattr(755,root,root,755)
|
|
%{_sbindir}/scoutfs
|
|
%{_libexecdir}/scoutfs-fenced
|
|
|
|
%files -n scoutfs-devel
|
|
%defattr(644,root,root,755)
|
|
%{_includedir}/scoutfs
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|