How does one process .spec.in file to .spec?

648 views
Skip to first unread message

Pariksheet Nanda

unread,
May 25, 2017, 2:19:18 PM5/25/17
to n...@lbl.gov
Hello,

How does one process the spec.in template file in the NHC repository root to .spec?

Yes, I'm excited that you have release files available for various major versions of RHEL, but I'm trying to rebuild an older version, NHC 1.4.1.  When I fetch the 1.4.1 tagged git repo[1] and running autogen.sh, it bootstraps the typical autotools files but leaves the spec.in file unchanged.  My websearch-fu and man page reading is failing to find how one processes rpm spec.in template files into .spec

Thank you for any insights!

---
Pariksheet Nanda
PhD Candidate in Genetics and Genomics
System Administrator, Storrs HPC Cluster
University of Connecticut

Michael Jennings

unread,
May 25, 2017, 3:03:57 PM5/25/17
to LBNL Node Health Check
Hi Pariksheet,

As with *.in files in general, at least with projects that use GNU Autotools, the "lbnl-nhc.spec" file is generated from lbnl-nhc.spec.in by the ./configure script.  Same for warewulf-nhc.spec in 1.4.1.  You can see this here:  https://github.com/mej/nhc/blob/1.4.1/configure.in#L48

And the ./configure script is generated by running ./autogen.sh.  By default, running ./autogen.sh will run ./configure for you, as seen here:  https://github.com/mej/nhc/blob/1.4.1/autogen.sh#L14

May I ask why you're building an obsolete version?  Version 1.4.1 is quite old by now (2014), and version 1.4.3 is coming Real Soon Now(tm).  :-)

Michael


--
You received this message because you are subscribed to the Google Groups "LBNL Node Health Check" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhc+uns...@lbl.gov.
To post to this group, send email to n...@lbl.gov.
Visit this group at https://groups.google.com/a/lbl.gov/group/nhc/.



--
Michael Jennings (KainX)   https://medium.com/@mej0/    <m...@eterm.org>
Linux/HPC Systems Engineer, LANL.gov      Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "The trouble with doing something right the first time is that nobody
  appreciates how difficult it was."                      -- Walt West

Reply all
Reply to author
Forward
0 new messages