Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MartinVonReichenberg:Network
Termius
Termius.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Termius.spec of Package Termius
# # spec file for package Termius # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: Termius Version: 8.12.7 Release: 4%{?dist} Summary: SSH remote access terminal for sysadmins and network engineers License: NonFree URL: https://termius.com Source0: https://autoupdate.termius.com/linux/%{name}.deb Source1: CHANGELOG.pdf Source2: CHANGELOG.html Source3: CHANGELOG.desktop BuildRequires: bsdtar BuildRequires: desktop-file-utils BuildRequires: fdupes BuildRequires: hicolor-icon-theme BuildRequires: shared-mime-info Requires: alsa Requires: alsa-oss Requires: dbus-1 Requires: dbus-1-x11 Requires: expat Requires: glibc Requires: Mesa Requires: mozilla-nspr Requires: openssl Requires: systemd %if 0%{?fedora} Requires: zlib-ng # REQUIRES: libcbor.so.0.8 instead of libcbor.so.0.10 (It is bundled) # Requires: libcbor Requires: libgcrypt Requires: libfido2 Requires: openssl # REQUIRES: libssh2.so.1 (It Requires the bundled one) # Requires: libssh2 %if 0%{?mageia} Requires: lib64zlib1 # REQUIRES: libcbor.so.0.8 instead of libcbor.so.0.10 (It is bundled) # Requires: lib64cbor0 Requires: lib64cryptopp8 Requires: python3-fido2 Requires: lib64joedog0 Requires: lib64openssl3 # REQUIRES: libssh2.so.1 (It Requires the bundled one) # Requires: lib64ssh2_1 %if 0%{?sle_version} <= 150600 && 0%{?is_opensuse} %requires_ge libz1 # REQUIRES: libcbor.so.0.8 instead of libcbor.so.0.10 (It is bundled) # %requires_ge libcbor0_10 %requires_ge libcrypt1 %requires_ge libfido2-1 %requires_ge libopenssl1_1 # REQUIRES: libssh2.so.1 (It Requires the bundled one) # %requires_ge libssh2-1 %endif %endif %endif ExclusiveArch: x86_64 %define debug_package %{nil} %define __strip "/bin/true" %description Termius is described as more than a mere SSH client – It is a complete command-line solution that’s redefining remote access for sysadmins and network engineers. %prep cp -a %{_sourcedir}/* -t %{_builddir} mkdir -p "%{_builddir}/%{name}-%{version}/" bsdtar -xf "%{_sourcedir}/%{name}.deb" -C %{_builddir} bsdtar -xf "%{_builddir}/data.tar.xz" -C "%{_builddir}/%{name}-%{version}/" echo " -> Removing unnecessary file properties/libraries from the pre-built DEB binary package:" rm -vfdr \ "%{_builddir}/%{name}-%{version}/etc/" rm -vf \ "%{_builddir}/%{name}-%{version}/opt/%{name}/resources/app.asar.unpacked/node_modules/@termius/libfido2/linux-x64/libz.so.1" \ "%{_builddir}/%{name}-%{version}/opt/%{name}/resources/app.asar.unpacked/node_modules/@termius/libfido2/linux-x64/libcrypto.so.1.1" \ "%{_builddir}/%{name}-%{version}/opt/%{name}/resources/app.asar.unpacked/node_modules/@termius/libfido2/linux-x64/libfido2.so.1" \ "%{_builddir}/%{name}-%{version}/opt/%{name}/resources/app.asar.unpacked/node_modules/@termius/libfido2/linux-x64/libssl.so.1.1" \ %build %install export NO_BRP_CHECK_RPATH='true' echo " -> Installing the actual files . . ." mkdir -p "%{buildroot}/%{_libdir}/" mkdir -p "%{buildroot}/%{_bindir}/" cp -a "%{_builddir}/%{name}-%{version}/%{_datadir}/" "%{buildroot}/%{_datadir}/" cp -a "%{_builddir}/%{name}-%{version}/opt/%{name}/" "%{buildroot}/%{_libdir}/" mkdir -p "%{buildroot}/%{_datadir}/licenses/%{name}/" mkdir -p "%{buildroot}/%{_datadir}/doc/packages/%{name}/" cp -a "%{_builddir}/%{name}-%{version}/%{_datadir}/doc/termius-app/changelog.gz" \ -t "%{buildroot}/%{_datadir}/doc/packages/%{name}/" cp -a "%{_builddir}/%{name}-%{version}/opt/%{name}/LICENSE.electron.txt" \ -t "%{buildroot}/%{_datadir}/licenses/%{name}/" cp -a "%{_builddir}/%{name}-%{version}/opt/%{name}/LICENSES.chromium.html" \ -t "%{buildroot}/%{_datadir}/licenses/%{name}/" install -Dm644 "%{SOURCE1}" -t "%{buildroot}/%{_datadir}/doc/packages/%{name}/" install -Dm644 "%{SOURCE2}" -t "%{buildroot}/%{_datadir}/doc/packages/%{name}/" install -Dm644 "%{SOURCE3}" -t "%{buildroot}/%{_datadir}/doc/packages/%{name}/" sed -i -e "s|Exec=/opt/Termius/termius-app %U|Exec=/usr/lib64/Termius/termius-app %U|g" \ -i -e "/Name=/a\Path=/usr/lib64/Termius/" \ -i -e "/Exec=/i\TryExec=termius" \ "%{buildroot}/%{_datadir}/applications/termius-app.desktop" echo " -> Linking binaries from SOURCE to the system:" ln -sf "%{_libdir}/%{name}/termius-app" "%{buildroot}/%{_bindir}/termius" %if 0%{?sle_version} > 150600 && 0%{?is_opensuse} || 0%{?suse_version} > 1600 echo " -> Imposing sandboxing by modifying SUID properties for Electron 5+:" chmod -v -f 04755 "%{buildroot}/%{_libdir}/%{name}/chrome-sandbox" || true %endif echo " -> Removing redundant file - changelog.gz:" rm -vfdr "%{buildroot}/%{_datadir}/doc/termius-app/" %check desktop-file-validate "%{buildroot}/%{_datadir}/applications/termius-app.desktop" %fdupes -s %{buildroot} %post update-mime-database '/usr/share/mime' || true update-desktop-database '/usr/share/applications' || true %files %dir "%{_libdir}/%{name}/" %dir "%{_datadir}/doc/packages/%{name}/" %dir "%{_datadir}/licenses/%{name}/" # REQUIRED by SUSE Leap 15.5: %dir "%{_datadir}/icons/hicolor/1024x1024" %dir "%{_datadir}/icons/hicolor/1024x1024/apps" # "%{_datadir}/applications/termius-app.desktop" %{_datadir}/icons/hicolor/*/apps/termius-app.png %{_libdir}/%{name}/* "%{_bindir}/termius" # REQUIRED by FEDORA: "%{_datadir}/doc/packages/%{name}/changelog.gz" "%{_datadir}/doc/packages/%{name}/CHANGELOG.pdf" "%{_datadir}/doc/packages/%{name}/CHANGELOG.html" "%{_datadir}/doc/packages/%{name}/CHANGELOG.desktop" # "%{_datadir}/licenses/%{name}/LICENSE.electron.txt" "%{_datadir}/licenses/%{name}/LICENSES.chromium.html" %doc CHANGELOG.pdf CHANGELOG.html CHANGELOG.desktop %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor