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:
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