please advice why I get the error "error: License field must be present in package: (main package)"
I need to create rpm file ,
I only have the spec file under SPECS
and the test.sh script under SOURCES
what’s wrong here?
[root@linux /usr/src/redhat]# ls BUILD RPMS SOURCES SPECS SRPMS
the 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 %description # rpm -ba my_spec.spec error: License field must be present in package: (main package) # ls ../SOURCES/ test.sh