Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I perfrom rpm -ba /usr/src/redhat/SPECS/my_spec.spec the output does not include the Wrote: /root/rpmbuild/SRPMS/test.sh-6.2-2.rpm

/usr/src/redhat/RPMS does not show the test.sh-6.2-2.rpm

 [root@linux /usr/src/redhat/SOURCES]#  rpm -ba   /usr/src/redhat/SPECS/my_spec.spec
 Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/test.sh
 Wrote: /root/rpmbuild/SRPMS/test.sh-6.2-2.src.rpm

Spec file

Summary: An example tool. To show a simple rpm build of the tool.
Name: test.sh
Version: 6.2
Release: 2
Source:/root/test.sh
Group: Development/Debuggers
BuildRoot:/var/tmp/test.sh
License: OtherLicense
%description
share|improve this question

1 Answer 1

rpmbuild will not create a RPM that contains no files. Did you forget the %files section?

share|improve this answer
    
please advice how to add this to the spec file , did I need also to add the test.sh file path , and how to the spec file? –  yael Apr 13 '11 at 4:06
    
If the tutorial you're using doesn't cover this then it's time to find a new tutorial. –  Ignacio Vazquez-Abrams Apr 13 '11 at 4:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.