From 2b2c0fcbe60e1342baaffc293dbe567b29b0eac1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:36:58 +0100 Subject: [PATCH] anotther fix for auto prov and req [release 1.5.3-3mamba;Tue Mar 01 2016] --- README.md | 2 + atom.spec | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 128 insertions(+) create mode 100644 atom.spec diff --git a/README.md b/README.md index 1da5c45..f87fc5f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # atom +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. + diff --git a/atom.spec b/atom.spec new file mode 100644 index 0000000..4f7e7b1 --- /dev/null +++ b/atom.spec @@ -0,0 +1,126 @@ +Name: atom +Version: 1.5.3 +Release: 3mamba +Summary: A text editor that's modern, approachable, yet hackable to the core +Group: Graphical Desktop/Applications/Utilities +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://atom.io/ +## GITSOURCE https://github.com/atom/atom.git v1.5.3 +Source: https://github.com/atom/atom.git/v%{version}/atom-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libGConf-devel +BuildRequires: libX11-devel +BuildRequires: libXcomposite-devel +BuildRequires: libXcursor-devel +BuildRequires: libXdamage-devel +BuildRequires: libXext-devel +BuildRequires: libXfixes-devel +BuildRequires: libXi-devel +BuildRequires: libXrandr-devel +BuildRequires: libXrender-devel +BuildRequires: libXtst-devel +BuildRequires: libalsa-devel +BuildRequires: libatk-devel +BuildRequires: libcairo-devel +BuildRequires: libcups-devel +BuildRequires: libdbus-devel +BuildRequires: libexpat-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcc +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libglib-devel +BuildRequires: libgnome-keyring-devel +BuildRequires: libgtk2-devel +BuildRequires: libnspr-devel +BuildRequires: libnss-devel +BuildRequires: libpango-devel +BuildRequires: libperl +BuildRequires: libstdc++6-devel +BuildRequires: perl-devel +## AUTOBUILDREQ-END +BuildRequires: nodejs +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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. + +%debug_package + +%prep +%setup -q + +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}/%{name}-%{version}/find_provides.sh +cat > %{_builddir}/%{name}-%{version}/find_provides.sh <<_EOF +#! /bin/sh +grep -v %{buildroot}%{_datadir} | \ +%{_prefix}/lib/rpm/find-provides %{buildroot} %{_target_cpu} +_EOF +chmod +x %{_builddir}/%{name}-%{version}/find_provides.sh + +%define __find_requires %{_builddir}/%{name}-%{version}/find_requires.sh +cat > %{_builddir}/%{name}-%{version}/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/\${line/\(*} ] && echo "\$line" +done +_EOF +chmod +x %{_builddir}/%{name}-%{version}/find_requires.sh + +%build +script/build --build-dir=`pwd`/atom-build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +script/grunt install --build-dir "`pwd`/atom-build" --install-dir "%{buildroot}%{_prefix}" + +install -D -m0644 resources/linux/atom.desktop %{buildroot}%{_datadir}/applications/atom.desktop +install -D -m0644 resources/app-icons/stable/png/1024.png %{buildroot}%{_datadir}/pixmaps/atom.png + +# Remove 64-bit binary in node subtree +rm -f +%ifnarch x86_64 +rm -f %{buildroot}%{_datadir}/atom/resources/app.asar.unpacked/node_modules/symbols-view/vendor/ctags-linux +%endif + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/apm +%{_bindir}/atom +%dir %{_datadir}/atom +%{_datadir}/atom/* +%{_datadir}/applications/atom.desktop +%{_datadir}/pixmaps/atom.png +%doc LICENSE.md + +%changelog +* Tue Mar 01 2016 Silvan Calarco 1.5.3-3mamba +- anotther fix for auto prov and req + +* Mon Feb 29 2016 Silvan Calarco 1.5.3-2mamba +- remove automatic provides for node internal binaries +- i586: don't package a node internal 64-bit binary + +* Fri Feb 19 2016 Silvan Calarco 1.5.3-1mamba +- package created using the webbuild interface