I've just tried and failed to get the github release
(https://github.com/SchedMD/slurm/releases) of 16.05.10-2 to build
using the 'rpmbuild -ta tarball' trick - it's failing on line 88 of
the spec
ie
> Name: see META file
> Version: see META file
> Release: see META file
however the tarball from the schedmd website has them hard coded
aelwell@badger:~/compile$ diff -ur slurm-slurm-16-05-10-2/ slurm-16.05.10-2/
diff -ur slurm-slurm-16-05-10-2/META slurm-16.05.10-2/META
--- slurm-slurm-16-05-10-2/META 2017-03-03 08:42:11.000000000 +0800
+++ slurm-16.05.10-2/META 2017-03-03 08:52:56.000000000 +0800
@@ -1,36 +1,11 @@
-##
-# Metadata for RPM/TAR makefile targets
-##
-# See src/api/Makefile.am for guidance on setting API_ values
-##
- Meta: 1
- Name: slurm
- Major: 16
- Minor: 05
- Micro: 10
- Version: 16.05.10
- Release: 2
-# Include leading zero for all pre-releases
-
-##
-# When making a new Major/Minor version update
-# src/common/slurm_protocol_common.h
-# with a new SLURM_PROTOCOL_VERSION signifing the old one and the version
-# it was so the slurmdbd can continue to send the old protocol version.
-# In src/common/slurm_protocol_util.c check_header_version()
-# need to be updated also when changes are added also.
-# In src/plugins/slurmctld/nonstop/msg.c needs to have version_string updated.
-# The META of libsmd needs to reflect this version and API_CURRENT as well.
-#
-# NOTE: The API version can not be the same as the Slurm version above. The
-# version in the code is referenced as a uint16_t which if 1403 was the
-# API_CURRENT it would go over the limit. So keep is a relatively
-# small number.
-#
-# NOTE: The values below are used to set up environment variables in
-# the config.h file that may be used throughout Slurm, so don't remove
-# them.
-##
- API_CURRENT: 30
- API_AGE: 0
- API_REVISION: 0
+ Api_age: 0
+ Api_current: 30
+ Api_revision: 0
+ Major: 16
+ Meta: 1
+ Micro: 10
+ Minor: 05
+ Name: slurm
+ Release: 2
+ Release_tags: dist
+ Version: 16.05.10
diff -ur slurm-slurm-16-05-10-2/slurm.spec slurm-16.05.10-2/slurm.spec
--- slurm-slurm-16-05-10-2/slurm.spec 2017-03-03 08:42:11.000000000 +0800
+++ slurm-16.05.10-2/slurm.spec 2017-03-03 08:52:54.000000000 +0800
@@ -85,15 +85,15 @@
%slurm_with_opt sgijob
%endif
-Name: see META file
-Version: see META file
-Release: see META file
+Name: slurm
+Version: 16.05.10
+Release: 2%{?dist}
Summary: Slurm Workload Manager
License: GPL
Group: System Environment/Base
-Source: %{name}-%{version}-%{release}.tgz
+Source: slurm-16.05.10-2.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
URL: http://slurm.schedmd.com/
@@ -431,7 +431,7 @@
#############################################################################
%prep
-%setup -n %{name}-%{version}-%{release}
+%setup -n slurm-16.05.10-2
%build
%configure \
@@ -648,8 +648,8 @@
Cflags: -I\${includedir}
Libs: -L\${libdir} -lslurm
Description: Slurm API
-Name: %{name}
-Version: %{version}
+Name: slurm
+Version: 16.05.10
EOF
%if %{slurm_with bluegene}
Is there a magic script that sets these?
Andrew