Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 08-05-2009, 01:35 PM   #1
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Rep: Reputation: 20
rpmbuild doesn't generate rpm package


I'm trying to do a rpm package that only changes some config files of other installed package. I don't need source and buildroot. Just use the post directive to run some shell script. When I rpmbuild -ba the SPEC file only the src.rpm is generated and the noarch.rpm does not.

Here's my SPEC file:

Name: syslog-clients-config
Version: 0.9
Release: 1
License: GPL
Group: DES/EDS
BuildArch: noarch
Requires: syslog-ng


cp /etc/syslog-ng/syslog-ng.conf /etc/syslog-ng/syslog-ng.conf.`date +"%Y%m%d%H%M%S"`
cat /dev/null >/etc/syslog-ng/syslog-ng.conf
service syslog-ng reload
Any help?
Old 08-06-2009, 04:27 PM   #2
LQ Newbie
Registered: Aug 2007
Posts: 7

Rep: Reputation: 1
Add %files

Try adding %files. I tried this with your example, and even with nothing in the %files section it wrote a noarch.rpm. I'm using rpm- So like:



cp blah blah

Old 08-07-2009, 10:36 AM   #3
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Original Poster
Rep: Reputation: 20
It worked, thanks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I generate / build and RPM from *.src.rpm file sreekumartg Red Hat 3 02-23-2007 05:23 PM
RPM vs. rpmbuild davidirasmith Linux - Software 1 10-10-2005 06:06 PM
which package provides rpmbuild? stefaandk Fedora 1 06-29-2005 12:16 PM
rpmbuild for src.rpm PennyroyalFrog Linux - Newbie 3 04-10-2004 01:33 AM
Where do I get rpmbuild.rpm for rh9??? serat Linux - Software 7 04-07-2004 11:24 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration