On Mon, Apr 26, 2010 at 08:59:08AM -0400, Travis Camechis wrote:
> the main thing I am trying to figure out is the procedure to build
> individual rpms if need be for development. ( for instance the
> spacewalk-postgresql.rpm )

For spacewalk-postgresql,

        cd spacewalk/package
        make test-rpm

should work. In theory,

        tito build --test --rpm

should work as well but I'm getting

$ tito build --test --rpm
WARNING: rpmbuild directory already exists, removing...
Building package [spacewalk-1.1.2-1]
Wrote: /tmp/tito/spacewalk-git-767efe68eee887df9bf2c73cf0ffda56c226f69e.tar.gz

########## ERROR ############
Error running command: test-setup-specfile.pl 
/tmp/tito/rpmbuild-spacewalk-767efe68eee887df9bf2c73cf0ffda56c226f69e/SOURCES/spacewalk-git-767efe68eee887df9bf2c73cf0ffda56c226f69e/spacewalk.spec
 767efe68eee887df9bf2c73cf0ffda56c226f69e 
spacewalk-git-767efe68eee887df9bf2c73cf0ffda56c226f69e 
spacewalk-git-767efe68eee887df9bf2c73cf0ffda56c226f69e.tar.gz
Status code: 65280
Command output: The specfile 
[/tmp/tito/rpmbuild-spacewalk-767efe68eee887df9bf2c73cf0ffda56c226f69e/SOURCES/spacewalk-git-767efe68eee887df9bf2c73cf0ffda56c226f69e/spacewalk.spec]
 does not seem to have Source: line we could use
Traceback (most recent call last):
  File "/usr/bin/tito", line 23, in <module>
    CLI().main()
  File "/usr/lib/python2.6/site-packages/tito/cli.py", line 127, in main
    module.main()
  File "/usr/lib/python2.6/site-packages/tito/cli.py", line 391, in main
    builder.run(self.options)
  File "/usr/lib/python2.6/site-packages/tito/builder.py", line 139, in run
    self._rpm()
  File "/usr/lib/python2.6/site-packages/tito/builder.py", line 201, in _rpm
    self._setup_test_specfile()
  File "/usr/lib/python2.6/site-packages/tito/builder.py", line 594, in 
_setup_test_specfile
    run_command(cmd)
  File "/usr/lib/python2.6/site-packages/tito/common.py", line 75, in 
run_command
    raise Exception("Error running command")
Exception: Error running command

Anybody knows how I achieve the equivalent of

        NO_TAR_GZ = 1

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat

_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to