File cockpit-navigator.spec of Package cockpit-navigator
#
# spec file for package cockpit-navigator
#
# Copyright (c) 2022 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: cockpit-navigator
Version: 0.5.10
Release: 0
Summary: A Featureful File Browser for Cockpit
License: GPL-3.0
Group: System/Management
URL: https://github.com/45Drives/cockpit-navigator
Source0: https://github.com/45Drives/cockpit-navigator/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: %{name}-remove_branding.patch
BuildArch: noarch
BuildRequires: appstream-glib
Requires: cockpit-bridge
Requires: python3
Requires: rsync
Requires: zip
%description
A Featureful File System Browser for Cockpit - remotely browse, manage, edit, upload, and download files on your server through your web browser.
%prep
%setup -q
%patch0 -p1
find . -type f -name "*.py3" -exec sed -i -e 's|\/usr\/bin\/env python3|\/usr\/bin\/python3|g' {} \;
%build
# Nothing to build
%install
#%%make_install
#appstream-util validate-relax --nonet %%{buildroot}/%%{_datadir}/metainfo/*
mkdir -p %{buildroot}%{_datadir}/cockpit/
cp -rpf navigator %{buildroot}%{_datadir}/cockpit/
echo "export let NAVIGATOR_VERSION = \"%{version}\";" > %{buildroot}%{_datadir}/cockpit/navigator/version.js
%files
%doc README.md
%license LICENSE
%{_datadir}/cockpit
#%%{_datadir}/metainfo/*
%changelog