Github user paul-guo- commented on the issue:

    https://github.com/apache/incubator-hawq/pull/1177
  
    If I understand correctly, we seem to make things a bit complicated. Why 
not generate a src.rpm and rpm based on source tarball + one spec file directly?
    
    Below is an example from my repo:
    https://github.com/paul-guo-/moxi
    
    srpm: $(TARBALL) $(SPEC_FILE)
        rpmbuild --define '_sourcedir $(SRCDIR)' --define '_srcrpmdir 
$(DESTDIR)' -bs $(SPEC_FILE)
    
    $(TARBALL): moxi-1.8.0_8_g52a5fa8
        tar zcf $@ $^
    
    build: srpm
        rpmbuild --rebuild moxi-*.src.rpm



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to