openSUSE / obs-scm-bridge

GNU General Public License v2.0
3 stars 7 forks source link

rpm macro #4

Closed mslacken closed 1 year ago

mslacken commented 2 years ago

The

Source0: FOO.tar.gz

makes trouble as for the scm bridge, the sources are already unpacked. So it would be useful to have something like


%if ! %{?obs_scm:0}
Source0: FOO.tar.gz
%endif
mslacken commented 2 years ago

Perhaps the first command was misleading, I meant something more like


%if 0%{?obs_scm}
Source:  https://github.com/baar/foo/releases/download/v%{version}/foo-%{version}.tar.gz 
%else
Source: foo-%{version}.tar,gz
%endif
adrianschroeter commented 2 years ago

Why is using an asset not option here?

!RemoteAssetUrl: git+https://github.com/atomgomba/orangebox#v0.2.0

Source: orangebox-%{version}.tar.gz

mlschroe commented 2 years ago

Do you mean:

#!RemoteAsset
Source:  https://github.com/baar/foo/releases/download/v%{version}/foo-%{version}.tar.gz 

What exactly does not work?

mslacken commented 2 years ago

I did not know of the #! RemoteAsset flag. With it this flag the build fails at the srpm creation as the tar ball is missing.

mcepl commented 1 year ago

What is the status of this ticket? Yes, Source tag should probably be not included at all, but shouldn’ŧ this be closed?

adrianschroeter commented 1 year ago

Yes, it is not really a bridge topic, more a research project how to package from git using rpm spec files..