Name: atom-bin Epoch: 1 Version: 1.55.0 Release: 1mamba Summary: A text editor that's modern, approachable, yet hackable to the core (upstream binary distribution) Group: Graphical Desktop/Applications/Utilities Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://atom.io/ # NOTE: unversioned upstream archive, manually renamed Source: https://github.com/atom/atom/releases/download/v%{version}/atom-amd64-%{version}.tar.gz Source1: atom-bin-autoupdate License: MIT ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END %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 (upstream binary distribution). %debug_package %prep %setup -q -n atom-%{version}-amd64 #sed -i -e "/exception-reporting/d" \ # -e "/metrics/d" package.json # #sed -e "s/<%= description %>/%{summary}/" \ # -e "s|<%= appName %>|Atom|"\ # -e "s|<%= installDir %>/share/<%= appFileName %>|%{_bindir}|"\ # -e "s|<%= iconPath %>|atom|"\ # resources/linux/atom.desktop.in > resources/linux/atom.desktop %define _use_internal_dependency_generator 0 %define __find_provides %{_builddir}/atom-%{version}-amd64/find_provides.sh cat > %{_builddir}/atom-%{version}-amd64/find_provides.sh <<_EOF #! /bin/sh grep -v %{buildroot}%{_datadir} | \ %{_prefix}/lib/rpm/find-provides %{buildroot} %{_target_cpu} _EOF chmod +x %{_builddir}/atom-%{version}-amd64/find_provides.sh %define __find_requires %{_builddir}/atom-%{version}-amd64/find_requires.sh cat > %{_builddir}/atom-%{version}-amd64/find_requires.sh <<_EOF #! /bin/sh %{_prefix}/lib/rpm/find-requires %{buildroot} %{_target_cpu} 2>/dev/null | while read line; do [ ! -f %{buildroot}%{_datadir}/atom-x86_64/\${line/\(*} ] && echo "\$line" done _EOF chmod +x %{_builddir}/atom-%{version}-amd64/find_requires.sh %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d -m0755 %{buildroot}%{_datadir}/atom-x86_64 cp -a * %{buildroot}%{_datadir}/atom-x86_64/ install -d -m0755 %{buildroot}%{_bindir} ln -s %{_datadir}/atom-x86_64/atom %{buildroot}%{_bindir}/atom-x86_64 install -d -m0755 %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/atom-bin.desktop << _EOF [Desktop Entry] Name=Atom (upstream binary distribution) GenericName=Text Editor Exec=/usr/bin/atom-x86_64 %F Icon=atom-bin Type=Application StartupNotify=true Categories=GNOME;GTK;Utility;TextEditor;Development; MimeType=text/plain; _EOF install -D -m0644 atom.png %{buildroot}%{_datadir}/pixmaps/atom-bin.png %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/atom-x86_64 %dir %{_datadir}/atom-x86_64 %{_datadir}/atom-x86_64/* %{_datadir}/applications/atom-bin.desktop %{_datadir}/pixmaps/atom-bin.png %doc LICENSE %changelog * Tue Mar 09 2021 Automatic Build System 1.55.0-1mamba - automatic version update by autodist * Sun Feb 28 2021 Silvan Calarco 1.54.0-1mamba - update to 1.54.0 * Tue Aug 18 2020 Silvan Calarco 1.50.0-1mamba - update to 1.50.0 * Tue May 21 2019 Silvan Calarco 1.37.0-1mamba - update to 1.37.0 * Wed Mar 06 2019 Silvan Calarco 1.34.0-1mamba - update to 1.34.0 * Sun Sep 03 2017 Silvan Calarco 1.18.0-1mamba - update to 1.18.0 * Sat Sep 02 2017 Silvan Calarco 1.19.5-1mamba - update to 1.19.5 * Wed Aug 30 2017 Silvan Calarco 1.19.4-2mamba - added desktop entry and icon * Tue Aug 29 2017 Silvan Calarco 1.19.4-1mamba - package upstream binary distribution for x86_64 since there are problems building it from source