<div dir="ltr">Hello.<div><br></div><div>1: this is "dumb" type of package. push tgz to your git or upload it to obs manually. also you can push unpackaed contents to -mirror git and submodule it</div><div>2: add tag and push it to your git</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-26 10:24 GMT+03:00 rinigus <span dir="ltr"><<a href="mailto:rinigus.git@gmail.com" target="_blank">rinigus.git@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I am working on getting ported packages to OBS and facing few problems, as probably most of the beginners do. Maybe someone here can help me out?</div><div><br></div><div>Problem 1: I have a bunch of packages that have external source and rpm spec written in a small separate project. Let's take rrdtool as an example with my github repo <a href="https://github.com/rinigus/pkg-rrdtool" target="_blank">https://github.com/<wbr>rinigus/pkg-rrdtool</a> . Its spec contains source as a full URL. Now, I would like to download it from that URL by OBS either during building or as a part of its _service. Unfortunately, unlike in several other CI servers, network seems to be disabled. So, the snippet in RPM as </div><div><br></div><div><div><font face="monospace, monospace">%setup -q -n %{name}-%{version}</font></div><div><span style="font-family:monospace,monospace">curl -O %{REMSOURCE0}</span><br></div><div><font face="monospace, monospace">tar zxvf rrdtool-1.5.6.tar.gz --strip-components=1</font></div></div><div><br></div><div>doesn't work (ifconfig returns only loopback device). We also don't have <font face="monospace, monospace">download_files</font> among allowed _service APIs, as returned by <font face="monospace, monospace">osc api /service</font>. Maybe this can be enabled on OBS? As far as I understand, it should download all sources specified in the spec file. Personally, I find it rather disturbing putting .tar.gz into github project and would prefer getting the upstream package from the upstream source.</div><div><br></div><div>Problem 2: When creating package from github source (like for proj.4 in my case), I get as a version of packaged RPM the version that I specified together with (what looks like) git's latest commit signature together with the corresponding branch name leading to package names like proj-4.9.3+sailfish.<wbr>20170726042718.6.ge9a0f09-10.<wbr>20.1.jolla.armv7hl.rpm . How can I make it shorter to proj-4.9.3.armv7hl.rpm ?</div><div><br></div><div>Best wishes,</div><div><br></div><div>Rinigus</div></div>
<br>______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.<wbr>sailfishos.org</a><br></blockquote></div><br></div>