<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=GenerateRPMFromATagInGithub</id>
	<title>GenerateRPMFromATagInGithub - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=GenerateRPMFromATagInGithub"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=GenerateRPMFromATagInGithub&amp;action=history"/>
	<updated>2026-05-16T10:05:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=GenerateRPMFromATagInGithub&amp;diff=102&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; === Description of the initial problem === It might happen that a ncm-component has been patched in Github, but that the RPM have not been re-created in the yum.quattor.org ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=GenerateRPMFromATagInGithub&amp;diff=102&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === Description of the initial problem === It might happen that a ncm-component has been patched in Github, but that the RPM have not been re-created in the yum.quattor.org ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=== Description of the initial problem ===&lt;br /&gt;
It might happen that a ncm-component has been patched in Github, but that the RPM have not been re-created in the yum.quattor.org repository. The solution is then to create your own &amp;quot;homebrew&amp;quot; RPM from the correct code and to put this RPM in a local repo, and to bring the necessary changes in the PAN templates to install the homebrew RPM from the local repo.&lt;br /&gt;
=== Git clone of a tag ===&lt;br /&gt;
The general procedure is the following :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone &amp;lt;repo-address&amp;gt;&lt;br /&gt;
git tag -l&lt;br /&gt;
git checkout &amp;lt;tag-name&amp;gt;&lt;br /&gt;
git branch -D master&lt;br /&gt;
git checkout -b master&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=== Use of maven to build an RPM ===&lt;br /&gt;
*First set up your environment :&lt;br /&gt;
**Your must first make sure that Java from Oracle is installed and is the default.&lt;br /&gt;
**Let&amp;#039;s say that maven 3.1.1 has been installed in /root/maven/apache-maven-3.1.1 (the installation is explained here : http://maven.apache.org/download.cgi#Installation).&lt;br /&gt;
**Set your env. var. to the correct values :&lt;br /&gt;
  &amp;lt;pre&amp;gt;&lt;br /&gt;
  export M2_HOME=/root/maven/apache-maven-3.1.1&lt;br /&gt;
  export M2=$M2_HOME/bin&lt;br /&gt;
  export PATH=$M2:$PATH&lt;br /&gt;
  export JAVA_HOME=/usr/java/jdk1.6.0_04&lt;br /&gt;
  export PATH=$JAVA_HOME:$PATH&lt;br /&gt;
  &amp;lt;/pre&amp;gt;&lt;br /&gt;
*Go into the directory of your component and edit the pom.xml file. Modify the value of the version tag. For example, if the version is 13.1.1, then append &amp;#039;-iihe&amp;#039; to it, this way the name of your homebrew RPM will be slightly different from the one that is in the official repo.&lt;br /&gt;
*Run the maven command :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mvn rpm:rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>