2024-01-05 20:36:58 +01:00
|
|
|
Name: atom
|
2024-01-05 20:36:58 +01:00
|
|
|
Version: 1.10.0
|
2024-01-05 20:36:58 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 20:36:58 +01:00
|
|
|
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 <silvan.calarco@mambasoft.it>
|
|
|
|
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
|
2024-01-05 20:36:58 +01:00
|
|
|
* Thu Sep 01 2016 Automatic Build System <autodist@mambasoft.it> 1.10.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:36:58 +01:00
|
|
|
* Fri Aug 19 2016 Automatic Build System <autodist@mambasoft.it> 1.9.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:36:58 +01:00
|
|
|
* Thu Aug 11 2016 Automatic Build System <autodist@mambasoft.it> 1.9.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:36:58 +01:00
|
|
|
* Tue Mar 01 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.3-3mamba
|
|
|
|
- anotther fix for auto prov and req
|
|
|
|
|
|
|
|
* Mon Feb 29 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 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 <silvan.calarco@mambasoft.it> 1.5.3-1mamba
|
|
|
|
- package created using the webbuild interface
|