Results 1 to 8 of 8

Thread: OSC local built - sources are not downloaded?

  1. #1

    Default OSC local built - sources are not downloaded?

    That is my spec file:
    Code:
    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:
    Code:
    osc build openSUSE_Tumbleweed x86_64 ./rpm-spec/BonsoleRTAClient.spec
    And receive:
    Code:
    [   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]

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,076
    Blog Entries
    15

    Default Re: OSC local built - sources are not downloaded?

    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...

    Code:
    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.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Question Re: OSC local built - sources are not downloaded?

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

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,076
    Blog Entries
    15

    Default Re: OSC local built - sources are not downloaded?

    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

    (I'm setting up a new system so may be slow to reply...)
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5

    Default Re: OSC local built - sources are not downloaded?

    Code:
    >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)

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,076
    Blog Entries
    15

    Default Re: OSC local built - sources are not downloaded?

    Quote Originally Posted by Lachu View Post
    Code:
    >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.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7

    Default Re: OSC local built - sources are not downloaded?

    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?

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    31,076
    Blog Entries
    15

    Default Re: OSC local built - sources are not downloaded?

    Quote Originally Posted by Lachu View Post
    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.......

    Code:
    %post
    /sbin/ldconfig
    
    %postun
    /sbin/ldconfig
    See: https://en.opensuse.org/openSUSE:Pac...ptlet_snippets
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •