<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Rpm packaging on Suse Linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/rpm-packaging-on-suse-linux/m-p/4752405#M81245</link>
    <description>I've written a small script that converts a tarball to a RPM:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.mindtwist.de/main/linux/3-linux-tipps/32-how-to-convert-tar-gz-archive-to-rpm-.html" target="_blank"&gt;http://www.mindtwist.de/main/linux/3-linux-tipps/32-how-to-convert-tar-gz-archive-to-rpm-.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Depending on your expectations on the resulting RPM, this may be a suitable and easy way - or at least a good starting point to enhance your spec file.</description>
    <pubDate>Fri, 11 Mar 2011 19:01:41 GMT</pubDate>
    <dc:creator>Reiner  Rottmann</dc:creator>
    <dc:date>2011-03-11T19:01:41Z</dc:date>
    <item>
      <title>Rpm packaging on Suse Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-packaging-on-suse-linux/m-p/4752401#M81241</link>
      <description>Hi All,&lt;BR /&gt;I am new to linux. Still I am asked to package a war file as an RPM package. That is an unusual RPM packaging(To me). If you guys could guide me, on how to do that, will be great. I have a war file inside a folder, that folder is inside a tar file as a SOURCE for RPM package. The structure is like below.&lt;BR /&gt;&lt;BR /&gt;--RPMS&lt;BR /&gt;--SOURCES&lt;BR /&gt;--tasmportlets-1.tar.gz(its a tar file)&lt;BR /&gt;--tasmportlets-1(its a folder)&lt;BR /&gt;--tasmportlets.war&lt;BR /&gt;--BUILD&lt;BR /&gt;--SPECS&lt;BR /&gt;--mySpecs.spec&lt;BR /&gt;--SRPMS&lt;BR /&gt;&lt;BR /&gt;I simply want that the war file from sources is transferred to the web app of my tomcat server through RPM. I try to package it as an RPM, but its always giving me errors in %build stage. When I try to remove %build from stage from the spec file, then it says command missing.&lt;BR /&gt;&lt;BR /&gt;Can anyone please help me here Or point me in the right direction? An example will be great.&lt;BR /&gt;&lt;BR /&gt;My system details are:&lt;BR /&gt;SUSE Linux Enterprise Server 10 (x86_64)&lt;BR /&gt;VERSION = 10&lt;BR /&gt;PATCHLEVEL = 1&lt;BR /&gt;LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64"&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Mon, 14 Feb 2011 10:08:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-packaging-on-suse-linux/m-p/4752401#M81241</guid>
      <dc:creator>dirshah</dc:creator>
      <dc:date>2011-02-14T10:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rpm packaging on Suse Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-packaging-on-suse-linux/m-p/4752402#M81242</link>
      <description>What's in your mySpecs.spec file?&lt;BR /&gt;&lt;BR /&gt;What's the command you're trying to use to create the RPM? (If you're trying to run a command that specifically runs the %build stage and the %build stage does not exist in your package, it's no wonder you get an error message.)&lt;BR /&gt;&lt;BR /&gt;If it turns out you absolutely have to to put something into your %build section, then put in a command that does nothing (successfully): /bin/true.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.rpm.org" target="_blank"&gt;www.rpm.org&lt;/A&gt; has links to some books and other documentation about RPMs, You might want to read the section named "Packager documentation", if you already haven't done so.&lt;BR /&gt;&lt;BR /&gt;And of course, you might find a SuSE source RPM that does something similar, and read its .spec file to see how it builds its binary RPM.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 15 Feb 2011 08:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-packaging-on-suse-linux/m-p/4752402#M81242</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-02-15T08:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rpm packaging on Suse Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-packaging-on-suse-linux/m-p/4752403#M81243</link>
      <description>Hi Guys,&lt;BR /&gt;          Finally I did it. I skipped the %build stage bu just writing echo "1" in the stage.&lt;BR /&gt;&lt;BR /&gt;HTH someone else.</description>
      <pubDate>Thu, 17 Feb 2011 09:40:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-packaging-on-suse-linux/m-p/4752403#M81243</guid>
      <dc:creator>dirshah</dc:creator>
      <dc:date>2011-02-17T09:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rpm packaging on Suse Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-packaging-on-suse-linux/m-p/4752404#M81244</link>
      <description>I think that %build is a predefined RPM macro whose definition on an RHEL system can be found in /usr/lib/rpm/macros.&lt;BR /&gt;&lt;BR /&gt;Maybe if you tried &lt;BR /&gt;&lt;BR /&gt;rpm --eval %build&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;rpm --showrc | less&lt;BR /&gt;&lt;BR /&gt;you would find an answer?&lt;BR /&gt;But I'm not sure with SUSE.&lt;BR /&gt;&lt;BR /&gt;It's been a while since I last packaged an RPM and thus needed to create a spec file.&lt;BR /&gt;The documentation that helped me a tremendously then was "Maximum RPM" which I e.g. found here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.rpm.org/max-rpm-snapshot/s1-rpm-inside-macros.html" target="_blank"&gt;http://www.rpm.org/max-rpm-snapshot/s1-rpm-inside-macros.html&lt;/A&gt;</description>
      <pubDate>Thu, 17 Feb 2011 11:21:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-packaging-on-suse-linux/m-p/4752404#M81244</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2011-02-17T11:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rpm packaging on Suse Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-packaging-on-suse-linux/m-p/4752405#M81245</link>
      <description>I've written a small script that converts a tarball to a RPM:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.mindtwist.de/main/linux/3-linux-tipps/32-how-to-convert-tar-gz-archive-to-rpm-.html" target="_blank"&gt;http://www.mindtwist.de/main/linux/3-linux-tipps/32-how-to-convert-tar-gz-archive-to-rpm-.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Depending on your expectations on the resulting RPM, this may be a suitable and easy way - or at least a good starting point to enhance your spec file.</description>
      <pubDate>Fri, 11 Mar 2011 19:01:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-packaging-on-suse-linux/m-p/4752405#M81245</guid>
      <dc:creator>Reiner  Rottmann</dc:creator>
      <dc:date>2011-03-11T19:01:41Z</dc:date>
    </item>
  </channel>
</rss>

