atom-bin/atom-bin.spec

178 lines
5.9 KiB
RPMSpec

Name: atom-bin
Epoch: 1
Version: 1.59.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 <silvan.calarco@mambasoft.it>
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
#libcrypto.so.1.0.0()(64bit): library not reported by ldconfig; run `ldconfig' and try again
#libcrypto.so.1.0.0(OPENSSL_1.0.0)(64bit): library not reported by ldconfig; run `ldconfig' and try again
#libssl.so.1.0.0()(64bit): library not reported by ldconfig; run `ldconfig' and try again
#libssl.so.1.0.0(OPENSSL_1.0.0)(64bit): library not reported by ldconfig; run `ldconfig' and try again
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libXScrnSaver-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: libat-spi2-atk-devel
BuildRequires: libat-spi2-core-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libcups-devel
BuildRequires: libcurl-devel
BuildRequires: libdbus-devel
BuildRequires: libdrm-devel
BuildRequires: libexpat-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk3-devel
BuildRequires: libmesa-devel
BuildRequires: libnspr-devel
BuildRequires: libnss-devel
BuildRequires: libpango-devel
BuildRequires: libperl
BuildRequires: libsecret-devel
BuildRequires: libstdc++6-devel
BuildRequires: libxcb-devel
BuildRequires: libz-devel
BuildRequires: perl(Git)
BuildRequires: perl(Git::I18N)
BuildRequires: perl(Git::LoadCPAN)
BuildRequires: perl(Git::LoadCPAN::Error)
BuildRequires: perl(Git::LoadCPAN::Mail::Address)
BuildRequires: perl(Git::SVN)
BuildRequires: perl(Git::SVN::Utils)
BuildRequires: perl-CGI
BuildRequires: perl-DBI
BuildRequires: perl-YAML
BuildRequires: perl-devel
BuildRequires: perl-subversion
## 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
* Wed Feb 09 2022 Automatic Build System <autodist@mambasoft.it> 1.59.0-1mamba
- automatic version update by autodist
* Tue Dec 07 2021 Automatic Build System <autodist@mambasoft.it> 1.58.0-1mamba
- automatic version update by autodist
* Tue Mar 09 2021 Automatic Build System <autodist@mambasoft.it> 1.55.0-1mamba
- automatic version update by autodist
* Sun Feb 28 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.54.0-1mamba
- update to 1.54.0
* Tue Aug 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.50.0-1mamba
- update to 1.50.0
* Tue May 21 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.37.0-1mamba
- update to 1.37.0
* Wed Mar 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.34.0-1mamba
- update to 1.34.0
* Sun Sep 03 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.18.0-1mamba
- update to 1.18.0
* Sat Sep 02 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.19.5-1mamba
- update to 1.19.5
* Wed Aug 30 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.19.4-2mamba
- added desktop entry and icon
* Tue Aug 29 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.19.4-1mamba
- package upstream binary distribution for x86_64 since there are problems building it from source