LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


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

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


Hello,

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:

Code:
Name: syslog-clients-config
Version: 0.9
Release: 1
License: GPL
Group: DES/EDS
BuildArch: noarch
Packager: someone@somewhere.com
Requires: syslog-ng

%description
whatever

%post
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
jvhiii
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-4.4.2.2. So like:

%description
whatever

%files

%post
cp blah blah


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

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:01 AM.

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