Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35

Thread: Atom spec file is not building an RPM or SRPM; why?

  1. #21
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,670
    Blog Entries
    15

    Default Re: Atom spec file is not building an RPM or SRPM; why?

    Hi
    Since your wanting a lot of detail, better to create the atom.desktop file manually, add as a source file and install manually and overwrite the existing one.

    So add as;

    Code:
    Source1:    atom.desktop
    
    Then in the install section before the suse_update_desktop_file macro;
    
    install -Dm0644 %(S:1} %{buildroot}%_datadir}/applications/atom.desktop
    Else look in the rpmbuild BUILD directory and check the Category line in the produced desktop file and post back the output (Should be Categories=GNOME;GTK;Utility;TextEditor;Development;). You could use the macro to fix, but IMHO create your own....
    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!

  2. Default Re: Atom spec file is not building an RPM or SRPM; why?

    Thanks, I suppose that would make things simpler. Although, I suspect you may have made a typo in:
    Code:
    install -Dm0644 %(S:1} %{buildroot}%_datadir}/applications/atom.desktop
    per chance is it meant to be:
    Code:
    install -Dm0644 %{S:1} %{buildroot}%{_datadir}/applications/atom.desktop
    I ask as it had a few broken macro brackets and one broken standard bracket (.
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Seven favourite distros
    : Arch, Fedora, Gentoo, openSUSE Tumbleweed and Void.

  3. #23
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,670
    Blog Entries
    15

    Default Re: Atom spec file is not building an RPM or SRPM; why?

    Quote Originally Posted by fusion809 View Post
    Thanks, I suppose that would make things simpler. Although, I suspect you may have made a typo in:


    per chance is it meant to be:
    Code:
    install -Dm0644 %{S:1} %{buildroot}%{_datadir}/applications/atom.desktop
    I ask as it had a few broken macro brackets and one broken standard bracket (.
    Hi
    Yup, your correct (It was a test not really, my typing sucks...)
    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!

  4. Default Re: Atom spec file is not building an RPM or SRPM; why?

    Still getting this error:
    Code:
    WARNING: '/usr/lib/rpm/brp-desktop.data/suse-screensavers.menu' does not exist
    WARNING: '/usr/lib/rpm/brp-desktop.data/applications-kmenuedit.menu' does not exist
    WARNING: '/usr/lib/rpm/brp-desktop.data/custom.menu' does not exist
    ERROR: No sufficient Category definition: /home/makerpm/rpmbuild/BUILDROOT/atom-1.5.1-0.x86_64//usr/share/applications/atom.desktop 
    Errors in installed desktop file detected. Please refer to http://en.opensuse.org/SUSE_Package_Conventions/RPM_Macros
    error: Bad exit status from /var/tmp/rpm-tmp.PkBOaz (%install)
    
    
    
    
    RPM build errors:
        Bad exit status from /var/tmp/rpm-tmp.PkBOaz (%install)
    from this spec file:
    Code:
    Name:           atom
    Version:        1.5.1
    Release:        0
    Summary:        A hackable text editor for the 21st century
    License:        MIT
    Group:          Productivity/Publishing/Other
    Url:            https://atom.io/
    Source0:        v%{version}.tar.gz
    Source1:        atom.desktop
    BuildRequires:  git-core
    BuildRequires:  hicolor-icon-theme
    BuildRequires:  npm
    BuildRequires:  nodejs-packaging
    BuildRequires:  libgnome-keyring-devel
    BuildRequires:  python-setuptools
    BuildRequires:  update-desktop-files
    # MANUAL BEGIN
    Requires:       nodejs
    Requires:       python-http-parser
    # MANUAL END
    BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    
    
    %description
    Atom is a text editor that's modern, approachable, yet hackable to the core
    - a tool you can customize to do anything but also use productively without
    ever touching a config file.
    
    
    %prep
    %setup -q
    
    
    %build
    # Hardened package
    export CFLAGS="%{optflags} -fPIC -pie"
    export CXXFLAGS="%{optflags} -fPIC -pie"
    until ./script/build 2>&1; do :; done
    
    
    %install
    script/grunt install --install-dir "%{buildroot}%{_prefix}"
    # copy over icons in sizes that most desktop environments like
    for i in 1024 512 256 128 64 48 32 24 16; do
        install -Dm 0644 /tmp/atom-build/icons/${i}.png \
          %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
    done
    install -Dm0644 %{S:1} %{buildroot}%{_datadir}/applications/atom.desktop
    %suse_update_desktop_file %{name}
    
    
    %post
    %desktop_database_post
    %icon_theme_cache_post
    
    
    %postun
    %desktop_database_postun
    %icon_theme_cache_postun
    
    
    %files
    %defattr(-,root,root,-)
    %doc README.md docs/
    %{license} LICENSE.md
    %{_bindir}/atom
    %{_bindir}/apm
    %dir %{_datadir}/atom
    %{_datadir}/atom/*
    %{_datadir}/applications/atom.desktop
    %{_datadir}/icons/hicolor/*/apps/%{name}.png
    %exclude %{_datadir}/%{name}/libgcrypt.so.*
    %exclude %{_datadir}/%{name}/libnotify.so.*
    
    
    %changelog
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Seven favourite distros
    : Arch, Fedora, Gentoo, openSUSE Tumbleweed and Void.

  5. #25
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,670
    Blog Entries
    15

    Default Re: Atom spec file is not building an RPM or SRPM; why?

    Hi
    Drop Development; and see if that helps.
    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!

  6. Default Re: Atom spec file is not building an RPM or SRPM; why?

    If you mean dropping Development; in my atom.desktop which was:
    Code:
    [Desktop Entry]
    Name=Atom
    Comment=Atom is a text editor that's modern, approachable, yet hackable to the core- a tool you can customize to do anything but also use productively without ever touching a config file.
    GenericName=Text Editor
    Exec=/usr/bin/atom %U
    Icon=atom
    Type=Application
    StartupNotify=true
    Categories=GNOME;GTK;Utility;TextEditor;Development;
    MimeType=application/javascript;application/json;application/postscript;application/x-csh;application/x-desktop;application/x-httpd-eruby;application/x-httpd-php;application/x-httpd-php3;application/x-httpd-php4;application/x-httpd-php5;application/x-latex;application/x-msdos-program;application/x-ruby;application/x-sh;application/x-shellscript;application/x-sql;application/x-tcl;application/x-tex;application/xhtml+xml;application/xml;application/xml-dtd;application/xslt+xml;text/css;text/csv;text/html;text/plain;text/xml;text/xml-dtd;text/x-asm;text/x-bibtex;text/x-boo;text/x-c++;text/x-c++hdr;text/x-c++src;text/x-c;text/x-chdr;text/x-csh;text/x-csrc;text/x-dsrc;text/x-diff;text/x-eiffel;text/x-fortran;text/x-go;text/x-haskell;text/x-java;text/x-java-source;text/x-lua;text/x-makefile;text/x-markdown;text/x-objc;text/x-pascal;text/x-perl;text/x-php;text/x-python;text/x-ruby;text/x-scala;text/x-scheme;text/x-sh;text/x-tcl;text/x-tex;text/x-vala;text/yaml;
    well I just tried that and it made no difference. I removed the mimetypes, leaving just the default one text/plain; and I rebuild getting a slightly different error:
    Code:
    ERROR: link target doesn't exist (neither in build root nor in installed system):
      /usr/share/doc/packages/atom/docs/contributing.md -> /usr/share/doc/packages/atom/CONTRIBUTING.md
    Add the package providing the target to BuildRequires and Requires
    error: Bad exit status from /var/tmp/rpm-tmp.NH8Tcf (%install)
    
    
    
    
    RPM build errors:
        Bad exit status from /var/tmp/rpm-tmp.NH8Tcf (%install)
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Seven favourite distros
    : Arch, Fedora, Gentoo, openSUSE Tumbleweed and Void.

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

    Default Re: Atom spec file is not building an RPM or SRPM; why?

    Hi
    Hmmm, something changed in the %files section? Add CONTRIBUTING.md to the %doc macro line in %files.
    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. #28
    Join Date
    Sep 2012
    Posts
    5,029

    Default Re: Atom spec file is not building an RPM or SRPM; why?

    Quote Originally Posted by fusion809 View Post
    Code:
    ERROR: link target doesn't exist (neither in build root nor in installed system):
      /usr/share/doc/packages/atom/docs/contributing.md -> /usr/share/doc/packages/atom/CONTRIBUTING.md
    Apparently docs/contributing.md is a link which points to file that itself is not installed. You need to add target to file list.

  9. Default Re: Atom spec file is not building an RPM or SRPM; why?

    It's fixed now thanks to both of ya. ps FYI I have written a post on my blog, The Hornery about how I transitioned to openSUSE Tumbleweed from Arch Linux, and I mentioned how helpful you's were in this thread. The Facebook status announcing it has gained quite a few likes, shares and views (https://www.facebook.com/groups/open...4576170179488/).
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Seven favourite distros
    : Arch, Fedora, Gentoo, openSUSE Tumbleweed and Void.

  10. #30
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,670
    Blog Entries
    15

    Default Re: Atom spec file is not building an RPM or SRPM; why?

    On Thu 11 Feb 2016 04:46:01 AM CST, fusion809 wrote:

    It's fixed now thanks to both of ya. ps FYI I have written a post on my
    blog, -The Hornery- about how I transitioned to openSUSE Tumbleweed from
    Arch Linux, and about how helpful you were in this thread.

    Hi
    No problem Interesting read of your blog, with respect to DVD size,
    go check out https://susestidio.com you can roll your own openSUSE,
    then add locally built rpm's (eg atom) as well as link to any
    repository on OBS (including your own built rpms) all sorts of medium
    USB, vm's etc...

    I prefer KVM for virtualization no need to build any modules and also
    playing with docker (that's how I built the atom rpm).

    --
    Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.51-60.25-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


Page 3 of 4 FirstFirst 1234 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
  •