#----------------------------------------------------------------------------bh- # This RPM .spec file is part of the OpenHPC project. # # It may have been modified from the default version supplied by the underlying # release package (if available) in order to apply patches, perform customized # build/install configurations, and supply additional files to support # desired integration conventions. # #----------------------------------------------------------------------------eh- %{!?_rel:%{expand:%%global _rel 0.r%(test "1686" != "0000" && echo "1686" || svnversion | sed 's/[^0-9].*$//' | grep '^[0-9][0-9]*$' || git svn find-rev `git show -s --pretty=format:%h` || echo 0000)}} %include %{_sourcedir}/OHPC_macros %define pname warewulf-vnfs %define dname vnfs Summary: Warewulf VNFS Module Name: %{pname}%{PROJ_DELIM} Version: 3.8.1 Release: %{_rel}%{?dist} License: US Dept. of Energy (BSD-like) Group: %{PROJ_NAME}/provisioning URL: http://warewulf.lbl.gov/ Source0: https://github.com/warewulf/warewulf3/archive/3.8.1.tar.gz#/warewulf3-%{version}.tar.gz Source3: rhel-7.tmpl ExclusiveOS: linux Requires: warewulf-common%{PROJ_DELIM} Requires: pigz BuildRequires: autoconf BuildRequires: automake BuildRequires: warewulf-common%{PROJ_DELIM} Conflicts: warewulf < 3 %if 0%{!?sles_version} && 0%{!?suse_version} BuildArch: noarch %endif # Previous version had an architecture in its release. This is necessary for # YUM to properly update a package of a different BuildArch... Obsoletes: warewulf-vnfs < 3.2-0 %description Warewulf >= 3 is a set of utilities designed to better enable utilization and maintenance of clusters or groups of computers. This is the VNFS module which supports the creation and management of Virtual Node FileSystem objects. %prep %setup -n warewulf3-%{version} %build cd %{dname} if [ ! -f configure ]; then ./autogen.sh fi %configure %{__make} %{?mflags} %install cd %{dname} %{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install} %{__mkdir} -p $RPM_BUILD_ROOT/%{_docdir} install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/%{_libexecdir}/warewulf/* %files %{OHPC_PUB} %doc %{dname}/AUTHORS %{dname}/COPYING %{dname}/ChangeLog %{dname}/INSTALL %{dname}/NEWS %{dname}/README %{dname}/TODO %{dname}/LICENSE %config(noreplace) %{_sysconfdir}/warewulf/vnfs.conf %config(noreplace) %{_sysconfdir}/warewulf/bootstrap.conf %{_libexecdir}/warewulf/* %{_bindir}/* %{_mandir}/*