Adding Description and Summary

375 views
Skip to first unread message

Rahsaan Page

unread,
Apr 8, 2013, 4:14:59 PM4/8/13
to fpm-...@googlegroups.com
Hi All,

I am using FPM to create my RPM packages, i am trying to added description to my package. But when description details, it add the same info to the Summary line, is there another flag for summary?

fpm -s dir -t rpm -n "lampstack" -v 5.2.17 --description "This stack contains Apache 2.2.24 and PHP 5.2.17" --url http://www.domain.com --license "none" --vendor none --directories=/opt/apache2 --config-files=/etc/init.d/httpd --directories=/opt/php-5.2.17 --config-files=/etc/php.ini /opt/apache2 /etc/init.d/httpd /opt/php-5.2.17 /etc/php.ini
Created rpm {:path=>"lampstack-5.2.17-1.x86_64.rpm"}

[root@aoawslt00009 opt]# rpm -qip lampstack-5.2.17-1.x86_64.rpm 
Name        : nbc-lampstack                Relocations: / 
Version     : 5.2.17                            Vendor: none
Release     : 1                             Build Date: Mon 08 Apr 2013 01:04:24 PM PDT
Install Date: (not installed)               Build Host: 
Group       : default                       Source RPM: nbc-lampstack-5.2.17-1.src.rpm
Size        : 70917389                         License: none
Signature   : (none)
Packager    : <root@aoawslt00009>
URL         : http://www.domain.com
Summary     : This stack contains Apache 2.2.24 and PHP 5.2.17
Description :
This stack contains Apache 2.2.24 and PHP 5.2.17

Also what flag can i use to change Packager field? right now its using the server hostname i built the package

Jordan Sissel

unread,
Apr 8, 2013, 4:48:58 PM4/8/13
to fpm-...@googlegroups.com
On Mon, Apr 8, 2013 at 1:14 PM, Rahsaan Page <rahsaa...@gmail.com> wrote:
Hi All,

I am using FPM to create my RPM packages, i am trying to added description to my package. But when description details, it add the same info to the Summary line, is there another flag for summary?


Regarding description vs summary - One of fpm's goals is to simplify packaging. To that end, 'summary' and 'description' are often the same exact thing. I think the way the code works today is that the summary is verbatim copied from the *first line* of the description, if one is given. 

fpm -s dir -t rpm -n "lampstack" -v 5.2.17 --description "This stack contains Apache 2.2.24 and PHP 5.2.17" --url http://www.domain.com --license "none" --vendor none --directories=/opt/apache2 --config-files=/etc/init.d/httpd --directories=/opt/php-5.2.17 --config-files=/etc/php.ini /opt/apache2 /etc/init.d/httpd /opt/php-5.2.17 /etc/php.ini
Created rpm {:path=>"lampstack-5.2.17-1.x86_64.rpm"}

[root@aoawslt00009 opt]# rpm -qip lampstack-5.2.17-1.x86_64.rpm 
Name        : nbc-lampstack                Relocations: / 
Version     : 5.2.17                            Vendor: none
Release     : 1                             Build Date: Mon 08 Apr 2013 01:04:24 PM PDT
Install Date: (not installed)               Build Host: 
Group       : default                       Source RPM: nbc-lampstack-5.2.17-1.src.rpm
Size        : 70917389                         License: none
Signature   : (none)
Packager    : <root@aoawslt00009>
URL         : http://www.domain.com
Summary     : This stack contains Apache 2.2.24 and PHP 5.2.17
Description :
This stack contains Apache 2.2.24 and PHP 5.2.17

Also what flag can i use to change Packager field? right now its using the server hostname i built the package


The 'packager' field in debian is what fpm calls the 'maintainer'. Set the '-m' or '--maintainer' flag (both do the same thing)

-Jordan

Rahsaan Page

unread,
Apr 9, 2013, 11:07:33 AM4/9/13
to fpm-...@googlegroups.com
ok that makes sense.. How do you start a newline using description flag?

pranay...@gmail.com

unread,
Apr 11, 2013, 4:47:30 AM4/11/13
to fpm-...@googlegroups.com
Just add a '\n' for newline in the description.

-pk
Reply all
Reply to author
Forward
0 new messages