File cockpit-file-sharing.spec of Package cockpit-file-sharing
#
# spec file for package cockpit-file-sharing
#
# 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-file-sharing
Version: 2.4.5
Release: 0
Summary: A Cockpit plugin for managing Samba and NFS shares
License: GPL-3.0
Group: System/Management
URL: https://github.com/45Drives/cockpit-file-sharing
Source0: https://github.com/45Drives/cockpit-file-sharing/archive/v%{version}/%{name}-%{version}.tar.gz
Patch1: %{name}-remove_branding.patch
BuildArch: noarch
# For newer version >= 3.0 if 45Drives nodemodul token problem was fixed
# Generate package-lock.json with: npm install --package-lock-only --legacy-peer-deps
#BuildRequires: make
#BuildRequires: local-npm-registry
#Source98: package-lock.json
#Source99: node_modules.spec.inc
#%%include %%{_sourcedir}/node_modules.spec.in
#Recommends: cockpit-identities
BuildRequires: appstream-glib
Requires: cockpit-bridge
Requires: nfs-utils
Requires: samba-client
Requires: samba-tool
Requires: samba-winbind
%description
A Cockpit plugin to easily manage samba and NFS file sharing.
%prep
%setup -q
%patch -P 1 -p1
find . -type f -name "*.py" -exec sed -i -e 's|\/usr\/bin\/env python3|\/usr\/bin\/python3|g' {} \;
# For newer version >= 3.0 if 45Drives nodemodul token problem was fixed
#rm -f package-lock.json
#local-npm-registry %%{_sourcedir} install --with=dev --legacy-peer-deps
%build
# Nothing to build
# For newer version >= 3.0 if 45Drives nodemodul token problem was fixed
#make OS_PACKAGE_RELEASE=el9
%install
%make_install
%files
%doc README.md
%license LICENSE
%{_datadir}/cockpit
#%%{_datadir}/metainfo/*
%changelog