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

- new version 229
  https://cockpit-project.org/blog/cockpit-229.html

OBS-URL: https://build.opensuse.org/request/show/839813
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:cockpit/cockpit?expand=0&rev=50
This commit is contained in:
Ludwig Nussel 2020-10-06 12:42:16 +00:00 committed by Git OBS Bridge
parent 1ea140fcbc
commit 94fb217e17
4 changed files with 35 additions and 13 deletions

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

Binary file not shown.

BIN
cockpit-229.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 6 06:24:58 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
- new version 229
https://cockpit-project.org/blog/cockpit-229.html
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 1 11:32:48 UTC 2020 - Ludwig Nussel <lnussel@suse.de> Thu Oct 1 11:32:48 UTC 2020 - Ludwig Nussel <lnussel@suse.de>

View File

@ -40,11 +40,6 @@
%define _hardened_build 1 %define _hardened_build 1
# build basic packages like cockpit-bridge
%define build_basic 1
# build optional extensions like cockpit-machines
%define build_optional 1
%define __lib lib %define __lib lib
%if 0%{?rhel} %if 0%{?rhel}
@ -63,7 +58,7 @@ Summary: Web Console for Linux servers
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
URL: https://cockpit-project.org/ URL: https://cockpit-project.org/
Version: 228 Version: 229
%if %{defined wip} %if %{defined wip}
Release: 1.%{wip}%{?dist} Release: 1.%{wip}%{?dist}
Source0: cockpit-%{version}.tar.xz Source0: cockpit-%{version}.tar.xz
@ -75,6 +70,23 @@ Source1: cockpit.pam
Source2: cockpit-rpmlintrc Source2: cockpit-rpmlintrc
Source99: README.packaging Source99: README.packaging
# 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})
%if 0%{?rhel}
%if "%{name}" == "cockpit"
%define build_basic 1
%define build_optional 0
%else
%define build_basic 0
%define build_optional 1
%endif
%else
%define build_basic 1
%define build_optional 1
%endif
BuildRequires: gcc BuildRequires: gcc
BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(json-glib-1.0)
@ -85,7 +97,7 @@ BuildRequires: autoconf automake
BuildRequires: make BuildRequires: make
BuildRequires: /usr/bin/python3 BuildRequires: /usr/bin/python3
BuildRequires: gettext >= 0.19.7 BuildRequires: gettext >= 0.19.7
%if 0%{?build_optional} %if 0%{?build_basic}
BuildRequires: libssh-devel >= 0.8.5 BuildRequires: libssh-devel >= 0.8.5
%endif %endif
BuildRequires: openssl-devel BuildRequires: openssl-devel
@ -157,6 +169,9 @@ exec 2>&1
--docdir=%_defaultdocdir/%{name} \ --docdir=%_defaultdocdir/%{name} \
%endif %endif
--with-pamdir='%{pamdir}' \ --with-pamdir='%{pamdir}' \
%if 0%{?build_basic} == 0
--disable-ssh \
%endif
%{?vdo_on_demand:--with-vdo-package='"vdo"'} %{?vdo_on_demand:--with-vdo-package='"vdo"'}
make -j4 %{?extra_flags} all make -j4 %{?extra_flags} all
@ -248,12 +263,13 @@ find %{buildroot}%{_datadir}/cockpit/playground -type f >> tests.list
%if 0%{?build_basic} == 0 %if 0%{?build_basic} == 0
for pkg in base1 branding motd kdump networkmanager selinux shell sosreport ssh static systemd tuned users; do for pkg in base1 branding motd kdump networkmanager selinux shell sosreport ssh static systemd tuned users; do
rm -r %{buildroot}/%{_datadir}/cockpit/$pkg rm -r %{buildroot}/%{_datadir}/cockpit/$pkg
rm -rf %{buildroot}/usr/src/debug/%{_datadir}/cockpit/$pkg
rm -f %{buildroot}/%{_datadir}/metainfo/org.cockpit-project.cockpit-${pkg}.metainfo.xml rm -f %{buildroot}/%{_datadir}/metainfo/org.cockpit-project.cockpit-${pkg}.metainfo.xml
done done
for data in doc locale man pixmaps polkit-1; do for data in doc locale man pixmaps polkit-1; do
rm -r %{buildroot}/%{_datadir}/$data rm -r %{buildroot}/%{_datadir}/$data
done done
for lib in systemd tmpfiles.d firewalld; do for lib in systemd tmpfiles.d; do
rm -r %{buildroot}/%{_prefix}/%{__lib}/$lib rm -r %{buildroot}/%{_prefix}/%{__lib}/$lib
done done
for libexec in cockpit-askpass cockpit-session cockpit-ws cockpit-tls cockpit-wsinstance-factory cockpit-desktop; do for libexec in cockpit-askpass cockpit-session cockpit-ws cockpit-tls cockpit-wsinstance-factory cockpit-desktop; do
@ -268,7 +284,7 @@ rm -f %{buildroot}%{_datadir}/metainfo/cockpit.appdata.xml
# when not building optional packages, remove their files # when not building optional packages, remove their files
%if 0%{?build_optional} == 0 %if 0%{?build_optional} == 0
for pkg in apps dashboard machines packagekit pcp playground storaged; do for pkg in apps dashboard machines packagekit pcp playground storaged; do
rm -rf %{buildroot}/%{_datadir}/cockpit/$pkg rm -rf %{buildroot}/%{_datadir}/cockpit/$pkg %{buildroot}/usr/src/debug/%{_datadir}/cockpit/$pkg
done done
# files from -tests # files from -tests
rm -r %{buildroot}/%{_prefix}/%{__lib}/cockpit-test-assets rm -r %{buildroot}/%{_prefix}/%{__lib}/cockpit-test-assets
@ -420,7 +436,7 @@ Recommends: (reportd >= 0.7.1 if abrt)
%endif %endif
# NPM modules which are also available as packages # NPM modules which are also available as packages
Provides: bundled(js-jquery) = 3.5.1 Provides: bundled(js-jquery) = 3.5.1
Provides: bundled(js-moment) = 2.27.0 Provides: bundled(js-moment) = 2.28.0
Provides: bundled(nodejs-flot) = 0.8.3 Provides: bundled(nodejs-flot) = 0.8.3
Provides: bundled(xstatic-bootstrap-datepicker-common) = 1.9.0 Provides: bundled(xstatic-bootstrap-datepicker-common) = 1.9.0
Provides: bundled(xstatic-patternfly-common) = 3.59.5 Provides: bundled(xstatic-patternfly-common) = 3.59.5