Import upstream release 3.1
Resolves: jira#RHEL-43251
This commit is contained in:
parent
b044475904
commit
1a7291943c
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -0,0 +1,4 @@
|
|||||||
|
/cockpit-files-1.tar.xz
|
||||||
|
/cockpit-files-2.tar.xz
|
||||||
|
/cockpit-files-3.tar.xz
|
||||||
|
/cockpit-files-3.1.tar.xz
|
3
README.packit
Normal file
3
README.packit
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
This repository is maintained by packit.
|
||||||
|
https://packit.dev/
|
||||||
|
The file was generated using packit 0.98.0.
|
84
cockpit-files.spec
Normal file
84
cockpit-files.spec
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
Name: cockpit-files
|
||||||
|
Version: 3.1
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: A filesystem browser for Cockpit
|
||||||
|
License: LGPL-2.1-or-later
|
||||||
|
|
||||||
|
Source0: https://github.com/cockpit-project/cockpit-files/releases/download/%{version}/%{name}-%{version}.tar.xz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs
|
||||||
|
BuildRequires: make
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
# Suse's package has a different name
|
||||||
|
BuildRequires: appstream-glib
|
||||||
|
%else
|
||||||
|
BuildRequires: libappstream-glib
|
||||||
|
%endif
|
||||||
|
BuildRequires: gettext
|
||||||
|
|
||||||
|
Requires: cockpit-bridge >= 318
|
||||||
|
|
||||||
|
Provides: bundled(npm(@patternfly/patternfly)) = 5.3.1
|
||||||
|
Provides: bundled(npm(@patternfly/react-core)) = 5.3.3
|
||||||
|
Provides: bundled(npm(@patternfly/react-icons)) = 5.3.2
|
||||||
|
Provides: bundled(npm(@patternfly/react-styles)) = 5.3.1
|
||||||
|
Provides: bundled(npm(@patternfly/react-table)) = 5.3.3
|
||||||
|
Provides: bundled(npm(@patternfly/react-tokens)) = 5.3.1
|
||||||
|
Provides: bundled(npm(attr-accept)) = 2.2.2
|
||||||
|
Provides: bundled(npm(dequal)) = 2.0.3
|
||||||
|
Provides: bundled(npm(file-selector)) = 0.6.0
|
||||||
|
Provides: bundled(npm(focus-trap)) = 7.5.2
|
||||||
|
Provides: bundled(npm(js-tokens)) = 4.0.0
|
||||||
|
Provides: bundled(npm(lodash)) = 4.17.21
|
||||||
|
Provides: bundled(npm(loose-envify)) = 1.4.0
|
||||||
|
Provides: bundled(npm(object-assign)) = 4.1.1
|
||||||
|
Provides: bundled(npm(prop-types)) = 15.8.1
|
||||||
|
Provides: bundled(npm(react-dom)) = 18.3.1
|
||||||
|
Provides: bundled(npm(react-dropzone)) = 14.2.3
|
||||||
|
Provides: bundled(npm(react-is)) = 16.13.1
|
||||||
|
Provides: bundled(npm(react)) = 18.3.1
|
||||||
|
Provides: bundled(npm(scheduler)) = 0.23.2
|
||||||
|
Provides: bundled(npm(tabbable)) = 6.2.0
|
||||||
|
Provides: bundled(npm(throttle-debounce)) = 5.0.0
|
||||||
|
Provides: bundled(npm(tslib)) = 2.6.3
|
||||||
|
|
||||||
|
%description
|
||||||
|
A filesystem browser for Cockpit
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Nothing to build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install PREFIX=/usr
|
||||||
|
|
||||||
|
# drop source maps, they are large and just for debugging
|
||||||
|
find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs --no-run-if-empty rm --verbose
|
||||||
|
|
||||||
|
%check
|
||||||
|
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
|
||||||
|
|
||||||
|
# this can't be meaningfully tested during package build; tests happen through
|
||||||
|
# FMF (see plans/all.fmf) during package gating
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE dist/index.js.LEGAL.txt dist/index.css.LEGAL.txt
|
||||||
|
%{_datadir}/cockpit/*
|
||||||
|
%{_datadir}/metainfo/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Jul 11 2024 Packit <hello@packit.dev> - 3.1-1
|
||||||
|
- Allow breadcrumbs to wrap, fixes failing gating test
|
||||||
|
|
||||||
|
* Wed Jul 10 2024 Packit <hello@packit.dev> - 3-1
|
||||||
|
- Bug fixes and performance improvements
|
||||||
|
|
||||||
|
* Wed Jun 26 2024 Packit <hello@packit.dev> - 2-1
|
||||||
|
- Bookmark support
|
||||||
|
|
||||||
|
* Fri Jun 7 2024 Jelle van der Waa <jvanderwaa@redhat.com> - 1-1
|
||||||
|
- Update to upstream 1 release
|
14
gating.yaml
Normal file
14
gating.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- fedora-*
|
||||||
|
decision_context: bodhi_update_push_stable
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||||
|
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-9
|
||||||
|
- rhel-10
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
85
packit.yaml
Normal file
85
packit.yaml
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
# Enable RPM builds and running integration tests in PRs through https://packit.dev/
|
||||||
|
# To use this, enable Packit-as-a-service in GitHub: https://packit.dev/docs/packit-as-a-service/
|
||||||
|
# See https://packit.dev/docs/configuration/ for the format of this file
|
||||||
|
|
||||||
|
specfile_path: cockpit-files.spec
|
||||||
|
# use the nicely formatted release description from our upstream release, instead of git shortlog
|
||||||
|
copy_upstream_release_description: true
|
||||||
|
|
||||||
|
srpm_build_deps:
|
||||||
|
- make
|
||||||
|
- nodejs-npm
|
||||||
|
|
||||||
|
actions:
|
||||||
|
post-upstream-clone:
|
||||||
|
- make cockpit-files.spec
|
||||||
|
# replace Source1 manually, as create-archive: can't handle multiple tarballs
|
||||||
|
- make node-cache
|
||||||
|
- sh -c 'sed -i "/^Source1:/ s/https:.*/$(ls *-node*.tar.xz)/" cockpit-*.spec'
|
||||||
|
create-archive: make dist
|
||||||
|
# files.git has no release tags; your project can drop this once you have a release
|
||||||
|
get-current-version: make print-version
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- job: copr_build
|
||||||
|
trigger: pull_request
|
||||||
|
targets:
|
||||||
|
- fedora-development
|
||||||
|
- fedora-latest-stable
|
||||||
|
- fedora-latest-stable-aarch64
|
||||||
|
- centos-stream-9-x86_64
|
||||||
|
- centos-stream-10
|
||||||
|
|
||||||
|
- job: tests
|
||||||
|
trigger: pull_request
|
||||||
|
targets:
|
||||||
|
- fedora-development
|
||||||
|
- fedora-latest-stable
|
||||||
|
- fedora-latest-stable-aarch64
|
||||||
|
- centos-stream-9-x86_64
|
||||||
|
- centos-stream-10
|
||||||
|
|
||||||
|
- job: copr_build
|
||||||
|
trigger: commit
|
||||||
|
branch: "^main$"
|
||||||
|
owner: "@cockpit"
|
||||||
|
project: "main-builds"
|
||||||
|
preserve_project: True
|
||||||
|
|
||||||
|
- job: copr_build
|
||||||
|
trigger: release
|
||||||
|
owner: "@cockpit"
|
||||||
|
project: "cockpit-preview"
|
||||||
|
preserve_project: True
|
||||||
|
actions:
|
||||||
|
post-upstream-clone: make cockpit-files.spec
|
||||||
|
# HACK: tarball for releases (copr_build, koji, etc.), copying spec's Source0; this
|
||||||
|
# really should be the default, see https://github.com/packit/packit-service/issues/1505
|
||||||
|
create-archive:
|
||||||
|
- sh -exc "curl -L -O https://github.com/cockpit-project/cockpit-files/releases/download/${PACKIT_PROJECT_VERSION}/${PACKIT_PROJECT_NAME_VERSION}.tar.xz"
|
||||||
|
- sh -exc "ls ${PACKIT_PROJECT_NAME_VERSION}.tar.xz"
|
||||||
|
|
||||||
|
- job: copr_build
|
||||||
|
trigger: commit
|
||||||
|
branch: "^main$"
|
||||||
|
owner: "@cockpit"
|
||||||
|
project: "main-builds"
|
||||||
|
preserve_project: True
|
||||||
|
|
||||||
|
- job: propose_downstream
|
||||||
|
trigger: release
|
||||||
|
dist_git_branches:
|
||||||
|
- fedora-development
|
||||||
|
- fedora-40
|
||||||
|
|
||||||
|
- job: koji_build
|
||||||
|
trigger: commit
|
||||||
|
dist_git_branches:
|
||||||
|
- fedora-development
|
||||||
|
- fedora-40
|
||||||
|
|
||||||
|
- job: bodhi_update
|
||||||
|
trigger: commit
|
||||||
|
dist_git_branches:
|
||||||
|
# rawhide updates are created automatically
|
||||||
|
- fedora-40
|
9
plans/upstream.fmf
Normal file
9
plans/upstream.fmf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
dist-git-source: true
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
|
||||||
|
# Let's handle them upstream only, don't break Fedora/RHEL reverse dependency gating
|
||||||
|
environment:
|
||||||
|
TEST_AUDIT_NO_SELINUX: 1
|
Loading…
Reference in New Issue
Block a user