My project doesn't compile on obs

hi there and thx or reading and answering this post if you can.

I recently created home:skylendar and created a skylendar project with 2 files:

skylendar-5.0.1nn.tar.bz2
skylendar.spec

so far so good but nothing happens. No compilation. No rpm.

What can I do ? I watched the video tutorial, but the interface displayed in the video is not the same as the one which is used today by the build service.

Thx again

Post the URL to your project?

Have you defined your Distribution target:

@skylendar Hi and welcome to the Forum :smile:

You don’t have any build targets as in Leap 15.5 or Tumbleweed etc? You need to set those up at the top level and then enable on the packages as required.

But aside from that you need to build the package, not distribute pre-built binary blobs…

If you extract the source locally you will see there is a spec file included which should be useable.

How can i define the distro target on obs ? I Haven’t seen anything for that

I have added the i586 and x86_64 targets, but no compilation yet

@skylendar no %build in the spec file…

https://en.opensuse.org/openSUSE:Build_Service_Tutorial#Step_Three_–_Choose_build_targets

the skylendar.spec was produced by cpack -G RPM though…

found how to choose the wanted distro. It wasn’t obvious…!

@skylendar extract the tarball file and look at using that spec file…

Also check the patch author name :wink: that I’m guessing have been upstreamed…

The author is…me

@skylendar yes, but if you look at the spec file, there are patches I provided way back for it to build…

cpack doesn’t seem to work fine anymore. The old .spec I got from cpack contained a %build section, not the one produced by the recent cpack version !

@skylendar again, the Build Service is not for distributing binary blobs or packaging of that nature, build from source…

I’m happy to start patching again to build if you want me too…

I had issues with the standard cmake shipped with opensuse leap 15.5. Even the latest version of cmake doesn’t generate a complete .spec file with cpack !

Ok, I tried a hand modified .spec, obs tried to build but failed. It says:
mv: cannot stat ‘/home/abuild/rpmbuild/BUILDROOT/skylendar-5.0-lp155.5.1.x86_64’: No such file or directory

re-modified, and I got:

suse_update_desktop_file: invalid option – ‘j’
[ 28s] error: Unknown option j in suse_update_desktop_file(cinrud:D:N:C:G:)

but %suse_update_desktop_file has been commented out in the .spec file

RPM still expands macros in comments.

Do you have an idea of where is the glitch in my .spec file ?

As arvidjaar tried to explain, you need to remove following lines completely:

#%suse_update_desktop_file -n skylendar
#%suse_update_desktop_file -n skydmin %{?_smp_mflags}