6

I want to build a rpm of my project automated. So when I push a new tag to my git repo, it should build a rpm from this tag revision. My problem is, how can I prep the sources and specify it in the RPM Spec file?

Is it possible to specify the git repo directly? Like: Source0: git://myserver/mygit.git

But what when I want to have the git repo available via https?

Any hints are appreciated! :)

Cheers, Thilo

Thilo Cestonaro
  • 182
  • 1
  • 16

1 Answers1

6

No. The URL in SourceX is being completely ignored by rpmbuild. Rpmbuild just take the basename and expect it to be present in %{_topdir}/SOURCES/

If you want to create RPM from your git archive easily then please check mock-scm or Tito.

msuchy
  • 5,162
  • 1
  • 14
  • 26