OSC local built - sources are not downloaded?

That is my spec file:


Name:       BonsoleRTA-GUI-client
Version:    0.0.1
Release:    0.0.1
Summary:    BonsoleRTA-GUI-client is a GUI client for Rich Text Applications
License:      GPLv3+
BuildRequires: cmake webkit2gtk3-devel gtk3-devel dbus-1-devel
Requires: webkit2gtk3 webkit2gtk3 libgtk-3-0 dbus-1 
URL:        https://sourceforge.net/projects/Bonsole
Source:    https://bonsole.sourceforge.io//Bonsole-%{version}.tar.gz

%description
BonsoleRTA-GUI-client is a WebKit-Gtk+ client for Rich Text applications, which aims to provide as many ussage possiblities as possible. In opposite to Libgreattao, BonsoleRTA give programmers power to create UI by using special xml application and xslt documents.

%prep
%setup -q

%build
mkdir build
cd build
cmake ../../CMakeList.txt
make BonsoleClient

%install

mkdir -p %{buildroot}/%{_bindir}

install -m 0644 build/Bonsole %{buildroot}/%{_bindir}

%files
%dir %{_bindir}
%{_bindir}/Bonsole

%changelog
# let's skip this for now



I try command:


osc build openSUSE_Tumbleweed x86_64 ./rpm-spec/BonsoleRTAClient.spec

And receive:


   14s] -----------------------------------------------------------------
   14s] I have the following modifications for BonsoleRTAClient.spec:
   14s] 7c7
   14s] < Requires: webkit2gtk3 webkit2gtk3 libgtk-3-0 dbus-1 
   14s] ---
   14s] > Requires: webkit2gtk3 libgtk-3-0 dbus-1
   14s] -----------------------------------------------------------------
   14s] ----- building BonsoleRTAClient.spec (user abuild)
   14s] -----------------------------------------------------------------
   14s] -----------------------------------------------------------------
   14s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature /home/abuild/rpmbuild/SOURCES/BonsoleRTAClient.spec
   14s] error: Bad source: /home/abuild/rpmbuild/SOURCES/Bonsole-0.0.1.tar.gz: No such file or directory
   14s] 
   14s] localhost.localdomain failed "build BonsoleRTAClient.spec" at Sat Apr 17 10:47:32 UTC 2021.
   14s] 


Hi
Your process is flawed, you need to have the sources present… osc is NOT rpmbuild with a different name

You check out your OBS project to a directory, then use osc direct in that directory, no pointing at spec files etc…


osc co <your-project> <your_package>
cd <your-project>/<your_package>
osc build --clean

It doesn’t download the source files unless you run a service.


osc build --clean 
Missing argument: build description (for example a spec, dsc or kiwi file)

Hi
You need to stop being so obtuse with your commands…

Show the full output of what you are doing and where…

Please show the output from checking out your package etc from the above commands :wink:

(I’m setting up a new system so may be slow to reply…)


>osc co home\:Lachu\:BonsoleRTA BonsoleRTA-normal
A    home:Lachu:BonsoleRTA
A    home:Lachu:BonsoleRTA/BonsoleRTA-normal
A    home:Lachu:BonsoleRTA/BonsoleRTA-normal/rpm-spec.obscpio
At revision 4.
> cd home\:Lachu\:BonsoleRTA/BonsoleRTA-normal/
>osc build 
Missing argument: build description (for example a spec, dsc or kiwi file)

Hi
So there is no spec file just rpm-spec.obscpio, it won’t work with just that… you need someprog.spec someprog.tar.xz (or however you compress) at a minimum.

I hope this is last question in the topic. I do not create new topic, because it is simple question. I will create package for shared library and need to perform ldconfig. Could I put ldconfig command into install section?

Hi
No, post and post uninstall…


%post
/sbin/ldconfig

%postun
/sbin/ldconfig

See: openSUSE:Packaging scriptlet snippets - openSUSE Wiki