Accepting request 873183 from home:lnussel:branches:systemsmanagement:cockpit

- Rebuild from git leveraging local-npm-registry

OBS-URL: https://build.opensuse.org/request/show/873183
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:cockpit/cockpit?expand=0&rev=61
This commit is contained in:
Ludwig Nussel 2021-02-17 15:44:07 +00:00 committed by Git OBS Bridge
parent e2f072b775
commit d65222bdcd
13 changed files with 44254 additions and 10 deletions

22
_service Normal file
View File

@ -0,0 +1,22 @@
<services>
<service name="obs_scm" mode="localonly">
<param name="versionformat">@PARENT_TAG@</param>
<param name="url">http://github.com/cockpit-project/cockpit.git</param>
<param name="scm">git</param>
<param name="revision">236</param>
</service>
<service name="node_modules" mode="localonly">
<param name="cpio">node_modules.obscpio</param>
<param name="output">node_modules.spec.inc</param>
</service>
<service mode="buildtime" name="tar">
<param name="obsinfo">cockpit.obsinfo</param>
</service>
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="buildtime" name="set_version">
<param name="basename">cockpit</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">http://github.com/cockpit-project/cockpit.git</param>
<param name="changesrevision">046b3d4b381cd60f9d44756fc51f15ed7e17d0b5</param></service></servicedata>

BIN
cockpit-236.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

BIN
cockpit-236.tar.xz (Stored with Git LFS)

Binary file not shown.

13
cockpit-redhatfont.diff Normal file
View File

@ -0,0 +1,13 @@
Index: cockpit/package.json
===================================================================
--- cockpit.orig/package.json
+++ cockpit/package.json
@@ -8,7 +8,7 @@
"@patternfly/react-core": "4.84.4",
"@patternfly/react-styles": "4.7.24",
"@patternfly/react-table": "4.19.45",
- "@redhat/redhat-font": "git+https://github.com/RedHatOfficial/RedHatFont.git#2.2.0",
+ "@redhat/redhat-font": "2.2.0",
"@novnc/novnc": "1.2.0",
"bootstrap": "3.4.1",
"bootstrap-datepicker": "1.9.0",

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 4 16:18:13 UTC 2021 - Ludwig Nussel <lnussel@suse.de>
- Rebuild from git leveraging local-npm-registry
-------------------------------------------------------------------
Fri Jan 22 15:38:53 UTC 2021 - Ludwig Nussel <lnussel@suse.de>

5
cockpit.obsinfo Normal file
View File

@ -0,0 +1,5 @@
name: cockpit
version: 236
mtime: 1611240483
commit: 6735ae74fe25cff111189bc2851968d7f8f05a39

View File

@ -69,6 +69,12 @@ Source0: https://github.com/cockpit-project/cockpit/releases/download/%{v
Source1: cockpit.pam
Source2: cockpit-rpmlintrc
Source99: README.packaging
Source: node_modules.spec.inc
Source: package-lock.json
Source: node_modules.spec.inc
%include %{_sourcedir}/node_modules.spec.inc
# need to pretend it's not from git for building
Patch: cockpit-redhatfont.diff
# in RHEL the source package is duplicated: cockpit (building basic packages like cockpit-{bridge,system})
# and cockpit-appstream (building optional packages like cockpit-{machines,pcp})
@ -132,6 +138,13 @@ BuildRequires: gdb
# For documentation
BuildRequires: xmlto
# for rebuilding nodejs bits
BuildRequires: gcc-c++
BuildRequires: nodejs-devel-default
BuildRequires: npm
BuildRequires: local-npm-registry
BuildRequires: sassc
# This is the "cockpit" metapackage. It should only
# Require, Suggest or Recommend other cockpit-xxx subpackages
@ -156,9 +169,16 @@ Recommends: subscription-manager-cockpit
%setup -q -n cockpit-%{version}
%autopatch -p1
cp %SOURCE1 tools/cockpit.pam
#
local-npm-registry %{_sourcedir} install --also=dev
find node_modules -name \*.node -print -delete
%build
exec 2>&1
PKG_NAME="Cockpit"
echo %version > .tarball
autoreconf -fvi -I tools
#
%configure \
--disable-silent-rules \
--with-cockpit-user=cockpit-ws \
@ -177,7 +197,6 @@ exec 2>&1
make -j4 %{?extra_flags} all
%check
exec 2>&1
# HACK: Fedora koji builders are very slow, unreliable, and inaccessible for debugging; https://github.com/cockpit-project/cockpit/issues/13909
%if 0%{?fedora} >= 0
%ifarch s390x
@ -190,10 +209,11 @@ exec 2>&1
%define testsuite_skip #
%endif
%endif
%{?testsuite_skip} make -j4 check %{?testsuite_fail}
%{?testsuite_skip} make -j4 check || { ls -l /dev/std* ; [ -e ./test-suite.log ] && cat ./test-suite.log ; false; } %{?testsuite_fail}
%install
%make_install
# In obs we get write error: stdout
%make_install | tee make_install.log
make install-tests DESTDIR=%{buildroot}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
install -p -m 644 tools/cockpit.pam $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/cockpit
@ -345,6 +365,9 @@ rm -f %{buildroot}%{_datadir}/metainfo/org.cockpit-project.cockpit-selinux.metai
rm -f %{buildroot}%{_datadir}/pixmaps/cockpit-sosreport.png
%endif
mkdir -p %{buildroot}%{_datadir}/cockpit/devel/lib
cp -a pkg/lib/patternfly %{buildroot}%{_datadir}/cockpit/devel/lib
%if 0%{?build_basic}
%find_lang cockpit
%endif
@ -413,9 +436,7 @@ embed or extend Cockpit.
Summary: Cockpit admin interface package for configuring and troubleshooting a system
BuildArch: noarch
Requires: cockpit-bridge >= %{version}-%{release}
%if !0%{?suse_version}
Requires: shadow-utils
%endif
Requires: grep
Requires: /usr/bin/pwscore
Requires: /usr/bin/date
@ -666,6 +687,15 @@ These files are not required for running Cockpit.
%files -n cockpit-tests -f tests.list
%{_prefix}/%{__lib}/cockpit-test-assets
%package devel
Summary: Development files for for Cockpit
%description devel
This package contains files used to develop cockpit modules
%files devel
%{_datadir}/cockpit/devel
%package -n cockpit-machines
BuildArch: noarch
Summary: Cockpit user interface for virtual machines

1262
node_modules.loc Normal file

File diff suppressed because it is too large Load Diff

BIN
node_modules.obscpio (Stored with Git LFS)

Binary file not shown.

1262
node_modules.spec.inc Normal file

File diff suppressed because it is too large Load Diff

1262
node_modules.sums Normal file

File diff suppressed because it is too large Load Diff

40379
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff