Mailinglist Archive: opensuse-buildservice (89 mails)

< Previous Next >
[SOLVED] Re: [opensuse-buildservice] OBS source_service usage with upstream git sources -- syntax for .spec file's dynamic Source:/Version:/Release: values?
For interest,

Stumbled on

Removing params to allow defaults, as defined in link above

- <param name="versionformat">-git.%h</param>
- <param name="revision">remotes/origin/master</param>

Changing basename to git repo basename, not pkg-name basename

- <param name="basename">pgnd-cryptodev</param>
+ <param name="basename">cryptodev-linux</param>

With resulting

edit _service
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="exclude">.git</param>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">gz</param>
<service name="set_version" mode="disabled">
<param name="basename">cryptodev-linux</param>

service exec

osc service dr

now returns

Cloning into '/tmp/tmpdJndCH/tmp4paj9s/cryptodev-linux'...
HEAD is now at da73010 tests/Makefile: fix arg passing to CC in
implicit rule
Cleaning: /tmp/tmpdJndCH/tmp4paj9s
Compressed cryptodev-linux-1428749261.da73010.tar to

The package tree locally now contains

ls -al
total 76K
drwxrwxr-x+ 3 root root 4.0K Apr 24 17:15 ./
drwxrwxr-x+ 4 root root 4.0K Apr 24 15:04 ../
-rw-r--r--+ 1 root root 54K Apr 24 17:15
drwxrwxr-x+ 2 root root 4.0K Apr 24 16:46 .osc/
-rw-r--r--+ 1 root root 696 Apr 24 17:15 pgnd-cryptodev.spec
-rw-rw-r--+ 1 root root 485 Apr 24 17:12 _service
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups