Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: RPM build from binary files

  1. #1

    Unhappy RPM build from binary files

    Hi,

    I try to create an RPM following many online post but without result.

    In the SOURCES folder I have inserted zombiedriver-1.0.tar.gz (with the binary of the <zombiedriver-1.0> app)
    In the SPECS folder I have inserted zombiedriver.spec.



    The apllication file is a compiled binary from Lazarus.

    But, when I run
    rpmbuild -ba zombiedriver.spec
    I've an error.

    Help me! I'm new in linux world.

  2. #2

    Default Re: RPM build from binary files

    make sure you are running the last command in the right directory

  3. #3
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,979

    Default AW: RPM build from binary files

    run
    Code:
    rpmbuild -ba --noclean xxx.spec
    you can see in the BUILD- folder the name of the unzipped tar.gz.......
    Compare it with your %setup -line.

    and if the built is complete in the BUILDROOT-folder are the files and location after the rpm is working

    --noclean does not clean up the directories after successful build, so I prefer it automatically.

    And please use Code Tags for your Terminal Output, its the Line here in the Editor, the # is Code-Tags, use copy/paste for all such things as Kate or Terminal.
    Last edited by Sauerland; 08-May-2019 at 21:57.

  4. #4

    Default Re: RPM build from binary files

    Thanks, I've edit my spec file in this way and work, but How can I make a link (.desktop) of this app file in the traditional menu?

    Code:
    Name:           zombiedriverVersion:        1.0
    Release:        0
    Summary:        Descrizione sommaria
    License:        GPL-2
    Group:          Applications/Engineering
    URL:            http://www.sito.it/%{name}.php
    Source0:        %{name}-%{version}.tar.gz 
    
    
    %description
    Descrizione lunga.
    
    
    %prep
    %setup -q %{name}-%{version}
    
    
    %install
    mkdir -p %{buildroot}/usr/local/bin/%{name}-%{version}
    cp -ar * %{buildroot}/usr/local/bin/%{name}-%{version}/
    
    
    %files
    %defattr(-,root,root,-)
    /usr/local/bin/%{name}-%{version}
    
    
    %changelog
    * Sat May 09 2019 Cognome Nome <email@host.it> 1.0-0
    - Initial package for openSUSE

  5. #5
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,979

  6. #6

    Default Re: RPM build from binary files

    I've try to insert "Categories=Science;Engineering" in spec file, but I've error to compile. Where I can insert this line?

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,832
    Blog Entries
    15

    Default Re: RPM build from binary files

    Quote Originally Posted by systemgvp View Post
    I've try to insert "Categories=Science;Engineering" in spec file, but I've error to compile. Where I can insert this line?
    Hi
    You need to add some build requires...

    update-desktop-files

    Then use the macro to create your desktop file in the %install section

    %suse_update_desktop_file -c .......


    In your %files section you would then have;

    %{_datadir}/applications/%{name}.desktop

    You also need an icon, so if that's available, it would be in %{_datadir}/pixmaps/some_icon.png else if using a stock on, would need to look at adding hicolor-icon-theme as well to your build requires.

    See the links user Sauerland posted as well as;

    https://en.opensuse.org/openSUSE:Pac...e_desktop_file
    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!

  8. #8

    Default Re: RPM build from binary files

    I've tried to add %suse_update_desktop_file in spec file, I've tried two examples, but I've see same error

    + %suse_update_desktop_file zombiedriver Science Engineering
    /var/tmp/rpm-tmp.B0cjXf: line 30: fg: no job control
    errore: Stato d'uscita errato da /var/tmp/rpm-tmp.B0cjXf (%install)


    Errori di compilazione RPM:
    data non valida in %changelog: Sat May 16 2019 Cognome Nome <email@host.it> 1.0-0
    Stato d'uscita errato da /var/tmp/rpm-tmp.B0cjXf (%install)
    Code:
    Name:           zombiedriverVersion:        1.0
    Release:        0
    Summary:        Descrizione sommaria
    License:        GPL-2
    Group:          Applications/Engineering
    URL:            http://www.sito.it/%{name}.php
    Source0:        %{name}-%{version}.tar.gz 
    
    
    %description
    Descrizione lunga.
    
    
    %prep
    %setup -q %{name}-%{version}
    
    
    %install
    mkdir -p %{buildroot}/usr/local/bin/%{name}-%{version}
    cp -ar * %{buildroot}/usr/local/bin/%{name}-%{version}/
    %suse_update_desktop_file %{name} Science Engineering
    
    
    %files
    %defattr(-,root,root,-)
    /usr/local/bin/%{name}-%{version}
    /usr/share/applications/%{name}-%{version}.desktop
    
    
    %changelog
    * Sat May 16 2019 Cognome Nome <email@host.it> 1.0-0
    - Initial package for openSUSE
    Code:
    %suse_update_desktop_file -c %{name}-%{version} %{name} "Descrizione sommaria" %{name}-%{version} "" Science Engineering
    I follow the link https://en.opensuse.org/openSUSE:Pac...e_desktop_file but I see "fg: no job control"

    I've tried to add

    Code:
    URL:            http://www.sito.it/%{name}.phpSource0:        %{name}-%{version}.tar.gz
    BuildRequires:  update-desktop-files
    but I see

    errore: Dipendenze di build fallite:
    update-desktop-files necessario a zombiedriver-1.0-0.x86_64

  9. #9
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,979

    Default AW: RPM build from binary files

    Errori di compilazione RPM:
    data non valida in %changelog: Sat May 16 2019 Cognome Nome <email@host.it> 1.0-0
    See in another changelog for the right one:
    f.E
    Sat May 11 2019 - user@host

    Sat May 16 2019 was a Thursday......

  10. #10

    Default Re: AW: RPM build from binary files

    Quote Originally Posted by Sauerland View Post
    See in another changelog for the right one:
    f.E
    Sat May 11 2019 - user@host

    Sat May 16 2019 was a Thursday......
    Yes, I have solved the date, but not solve "fg: no job control"

Page 1 of 2 12 LastLast

Posting Permissions

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