2020-08-31 17:35:00 +02:00
|
|
|
#
|
|
|
|
# spec file for package cockpit-podman
|
|
|
|
#
|
2021-01-22 15:21:54 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2020-08-31 17:35:00 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-10-02 18:07:36 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-08-31 17:35:00 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: cockpit-podman
|
2021-02-25 14:24:29 +01:00
|
|
|
Version: 28.1
|
2020-08-31 17:35:00 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Cockpit component for Podman containers
|
|
|
|
License: LGPL-2.1-or-later
|
2020-10-02 18:07:36 +02:00
|
|
|
URL: https://github.com/cockpit-project/cockpit-podman
|
2021-02-25 14:24:29 +01:00
|
|
|
Source: https://github.com/cockpit-project/cockpit-podman/archive/%{version}.tar.gz#/cockpit-podman-%{version}.tar.gz
|
|
|
|
Source10: package-lock.json
|
|
|
|
Source11: node_modules.spec.inc
|
|
|
|
%include %_sourcedir/node_modules.spec.inc
|
|
|
|
Patch1: fix_dependencies.patch
|
2020-08-31 17:35:00 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: appstream-glib
|
|
|
|
Requires: cockpit-bridge >= 138
|
|
|
|
Requires: cockpit-shell >= 138
|
|
|
|
Requires: podman >= 2.0.4
|
|
|
|
#
|
2021-02-25 14:24:29 +01:00
|
|
|
BuildRequires: cockpit-devel >= 237
|
|
|
|
BuildRequires: local-npm-registry
|
|
|
|
BuildRequires: sassc
|
2020-10-02 18:07:36 +02:00
|
|
|
BuildRequires: translate-toolkit
|
|
|
|
|
2020-08-31 17:35:00 +02:00
|
|
|
%description
|
2020-08-31 17:38:15 +02:00
|
|
|
Cockpit component for managing Podman containers
|
2020-08-31 17:35:00 +02:00
|
|
|
|
|
|
|
%prep
|
2021-02-25 14:24:29 +01:00
|
|
|
%autosetup -p1
|
|
|
|
local-npm-registry %{_sourcedir} install --with=dev
|
2020-08-31 17:35:00 +02:00
|
|
|
|
|
|
|
%build
|
2021-02-25 14:24:29 +01:00
|
|
|
cp -r %{_datadir}/cockpit/devel/lib src/lib
|
|
|
|
|
|
|
|
npm run build
|
2020-08-31 17:35:00 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{_datadir}/cockpit
|
|
|
|
%{_datadir}/metainfo/*
|
|
|
|
|
|
|
|
%changelog
|