Re: What's the best way to learn RPM packaging?

2015-08-13 Thread Jean-Michel Barbet

On 08/13/2015 06:53 AM, Joseph Areeda wrote:

Hi,

I'm finding myself in the situation where it would be nice to be able to
package our apps or backport newer versions of some apps to work with
modules on SL6.

I've found lots of things on the web that are either too single minded
or incomprehensible.

If you remember how you learned to create RPMs, I'd appreciate some
advice on how to get going.  Good books, tutorials or websites.  The
reference documentation is NOT a good place to start, necessary, but not
a good cover to cover read, at least not yet.


Hi Joe,

I do not know if the following falls in the no good category but I
used it a lot to learn how to build my own packages :

http://www.rpm.org/max-rpm/

JM

--

Jean-michel BARBET| Tel: +33 (0)2 51 85 84 86
Laboratoire SUBATECH Nantes France| Fax: +33 (0)2 51 85 84 79
CNRS-IN2P3/Ecole des Mines/Universite | E-Mail: bar...@subatech.in2p3.fr



Re: What's the best way to learn RPM packaging?

2015-08-13 Thread Phil Wyett
On Thu, 2015-08-13 at 08:21 +0200, Jean-Michel Barbet wrote:
 On 08/13/2015 06:53 AM, Joseph Areeda wrote:
  Hi,
 
  I'm finding myself in the situation where it would be nice to be able to
  package our apps or backport newer versions of some apps to work with
  modules on SL6.
 
  I've found lots of things on the web that are either too single minded
  or incomprehensible.
 
  If you remember how you learned to create RPMs, I'd appreciate some
  advice on how to get going.  Good books, tutorials or websites.  The
  reference documentation is NOT a good place to start, necessary, but not
  a good cover to cover read, at least not yet.
 
 Hi Joe,
 
 I do not know if the following falls in the no good category but I
 used it a lot to learn how to build my own packages :
 
 http://www.rpm.org/max-rpm/
 
 JM
 

Hi,

A decent reference is:

https://fedoraproject.org/wiki/How_to_create_an_RPM_package

Regards

Phil

-- 
Twitter: @philwyett
Jappix (xmpp chat): philwy...@jappix.com


signature.asc
Description: This is a digitally signed message part


Re: What's the best way to learn RPM packaging?

2015-08-13 Thread Mark Whidby
On Wed, 2015-08-12 at 21:53 -0700, Joseph Areeda wrote:
 Hi,
 
 I'm finding myself in the situation where it would be nice to be able to 
 package our apps or backport newer versions of some apps to work with 
 modules on SL6.
 
 I've found lots of things on the web that are either too single minded 
 or incomprehensible.
 
 If you remember how you learned to create RPMs, I'd appreciate some 
 advice on how to get going.  Good books, tutorials or websites.  The 
 reference documentation is NOT a good place to start, necessary, but not 
 a good cover to cover read, at least not yet.
 
 We have people in the collaboration that can do it but they are so 
 overwhelmed only critical things get done.  It would be nice if I could 
 do things that are important to me.
 
 Thanks,
 Joe

I found this useful when I started learning quite a few years ago:

https://www.gurulabs.com/downloads/GURULABS-RPM-LAB/GURULABS-RPM-GUIDE-v1.0.PDF

And as someone else mentioned, the information on the Fedora
project page is also extremely useful.

-- 
Mark Whidby
System Administrator/Operations
IT Services


Re: What's the best way to learn RPM packaging?

2015-08-13 Thread Stephen John Smoogen
On 13 August 2015 at 01:35, Phil Wyett philwyett.vende...@gmail.com wrote:

 Hi Joe,

 I do not know if the following falls in the no good category but I
 used it a lot to learn how to build my own packages :

 http://www.rpm.org/max-rpm/

 JM


 Hi,

 A decent reference is:

 https://fedoraproject.org/wiki/How_to_create_an_RPM_package

 Regards

 Phil

 --
 Twitter: @philwyett
 Jappix (xmpp chat): philwy...@jappix.com

Two other tools which are useful:

1) Look through existing RPMs that match what you are doing. If you
have a bunch of perl or python or ruby looking at existing packages
can help you figure out why the guidelines and what you are trying
aren't working [because packaging is like cooking and sometimes you
need a LOT MORE SALT.. or none at all.]

2) Worse comes to worse.. there is easy-rpm. This is the I give up
and I need something by the end of the day. solution. It is not
pretty, won't win friends, and will probably not work 2 times the same
way in a row.. but if you need it and it migth give you an idea on how
to do it. https://www.npmjs.com/package/grunt-easy-rpm



-- 
Stephen J Smoogen.


RE: What's the best way to learn RPM packaging?

2015-08-13 Thread Tim Kanuka
To all:
Thank you for the links to grunt and the gurulabs presentation - I have not 
come across those before. Here's another toolset that I have just started 
exploring:
https://github.com/marquiz/git-buildpackage-rpm/
http://marquiz.github.io/git-buildpackage-rpm/gbp-rpm.html 

The idea is to build rpms from within your own git repo - a very handy thing 
indeed. Besides constructing custom rpms for third-party packages, or 
re-packaging others' srpms, I would like ultimately make it easy enough for 
developers to create rpms as a normal part of their build cycle for their own 
software. Of course, one needs to implement the local yum repo thing previously 
mentioned.

Tim

-Original Message-
From: owner-scientific-linux-us...@listserv.fnal.gov 
[mailto:owner-scientific-linux-us...@listserv.fnal.gov] On Behalf Of Stephen 
John Smoogen
Sent: August 13, 2015 08:05
To: owner-scientific-linux-us...@listserv.fnal.gov
Cc: scientific-linux-users@fnal.gov
Subject: Re: What's the best way to learn RPM packaging?

On 13 August 2015 at 01:35, Phil Wyett philwyett.vende...@gmail.com wrote:

 Hi Joe,

 I do not know if the following falls in the no good category but I 
 used it a lot to learn how to build my own packages :

 http://www.rpm.org/max-rpm/

 JM


 Hi,

 A decent reference is:

 https://fedoraproject.org/wiki/How_to_create_an_RPM_package

 Regards

 Phil

 --
 Twitter: @philwyett
 Jappix (xmpp chat): philwy...@jappix.com

Two other tools which are useful:

1) Look through existing RPMs that match what you are doing. If you have a 
bunch of perl or python or ruby looking at existing packages can help you 
figure out why the guidelines and what you are trying aren't working [because 
packaging is like cooking and sometimes you need a LOT MORE SALT.. or none at 
all.]

2) Worse comes to worse.. there is easy-rpm. This is the I give up and I need 
something by the end of the day. solution. It is not pretty, won't win 
friends, and will probably not work 2 times the same way in a row.. but if you 
need it and it migth give you an idea on how to do it. 
https://www.npmjs.com/package/grunt-easy-rpm



--
Stephen J Smoogen.


NOTICE: python-six has been removed from EPEL as it is in EL6.7

2015-08-13 Thread Stephen John Smoogen
The package python-six is used as a shim for apps needing python3
command in python2 or python2 command in python3. The recent release
of Red Hat Enterprise Linux 6.7 brought the package into the 'base'
repositories which caused a conflict between the package inside of
EPEL and RHEL. When the CentOS-6 current release channels caught up
with the 6.7 packages, the package owner removed python-six from EPEL.

The problem is that people who are using other EL rebuilds or are
'using' an older release for various reasons no longer have access to
the package.

For people in this situation needing python-six still, the following
recommendations are possible:

0) If you are Red Hat Enterprise Linux customer, you should be able to
get the latest version from access.redhat.com.

1) Get the last koji build for EPEL in koji.
http://koji.fedoraproject.org/koji/buildinfo?buildID=549423

2) Get the CentOS package from a mirror (example:
http://mirrors.kernel.org/centos/6/os/x86_64/Packages/python-six-1.9.0-2.el6.noarch.rpm

3) Use your EL rebuilds various fast-track channels for access.

Then mirror this as a local repository for your users to have a yum repo for.

-- 
Stephen J Smoogen.