[packit] 311.1 upstream release
Upstream tag: 311.1 Upstream commit: 8f15cb95 Resolves: jira#RHEL-3954
This commit is contained in:
parent
c00047dd1d
commit
1909236ad2
3
.gitignore
vendored
3
.gitignore
vendored
@ -279,4 +279,7 @@
|
||||
/cockpit-308.tar.xz
|
||||
/cockpit-309.tar.xz
|
||||
/cockpit-310.tar.xz
|
||||
/cockpit-310.1.tar.xz
|
||||
/cockpit-310.2.tar.xz
|
||||
/cockpit-311.tar.xz
|
||||
/cockpit-311.1.tar.xz
|
||||
|
@ -1,3 +1,3 @@
|
||||
This repository is maintained by packit.
|
||||
https://packit.dev/
|
||||
The file was generated using packit 0.91.0.post1.dev4+ge6fd4a25.
|
||||
The file was generated using packit 0.92.0.
|
||||
|
135
cockpit.spec
135
cockpit.spec
@ -49,43 +49,10 @@ Summary: Web Console for Linux servers
|
||||
License: LGPL-2.1-or-later
|
||||
URL: https://cockpit-project.org/
|
||||
|
||||
Version: 311
|
||||
Version: 311.1
|
||||
Release: 1%{?dist}
|
||||
Source0: https://github.com/cockpit-project/cockpit/releases/download/%{version}/cockpit-%{version}.tar.xz
|
||||
|
||||
# Don't change the bridge in the RHEL 8; the old SSH breaks some features, see @todoPybridgeRHEL8
|
||||
%if 0%{?rhel} == 8 && !%{defined enable_old_bridge}
|
||||
%define enable_old_bridge 1
|
||||
%endif
|
||||
|
||||
# in RHEL 8 the source package is duplicated: cockpit (building basic packages like cockpit-{bridge,system})
|
||||
# and cockpit-appstream (building optional packages like cockpit-{pcp})
|
||||
# This split does not apply to EPEL/COPR nor packit c8s builds, only to our own
|
||||
# image-prepare rhel-8-Y builds (which will disable build_all).
|
||||
# In Fedora ELN/RHEL 9+ there is just one source package, which ships rpms in both BaseOS and AppStream
|
||||
%define build_all 1
|
||||
%if 0%{?rhel} == 8 && 0%{?epel} == 0 && !0%{?build_all}
|
||||
|
||||
%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
|
||||
|
||||
# Allow root login in Cockpit on RHEL 8 and lower as it also allows password login over SSH.
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 8
|
||||
%define disallow_root 0
|
||||
%else
|
||||
%define disallow_root 1
|
||||
%endif
|
||||
|
||||
# pcp stopped building on ix86
|
||||
%define build_pcp 1
|
||||
%if 0%{?fedora} >= 40 || 0%{?rhel} >= 10
|
||||
@ -94,11 +61,9 @@ Source0: https://github.com/cockpit-project/cockpit/releases/download/%{v
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# Ship custom SELinux policy (but not for cockpit-appstream)
|
||||
%if "%{name}" == "cockpit"
|
||||
# Ship custom SELinux policy
|
||||
%define selinuxtype targeted
|
||||
%define selinux_configure_arg --enable-selinux-policy=%{selinuxtype}
|
||||
%endif
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pkgconfig(gio-unix-2.0)
|
||||
@ -109,16 +74,8 @@ BuildRequires: pam-devel
|
||||
BuildRequires: autoconf automake
|
||||
BuildRequires: make
|
||||
BuildRequires: python3-devel
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 8
|
||||
# RHEL 8's gettext does not yet have metainfo.its
|
||||
BuildRequires: gettext >= 0.19.7
|
||||
BuildRequires: libappstream-glib-devel
|
||||
%else
|
||||
BuildRequires: gettext >= 0.21
|
||||
%endif
|
||||
%if 0%{?build_basic}
|
||||
BuildRequires: libssh-devel >= 0.8.5
|
||||
%endif
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: gnutls-devel >= 3.4.3
|
||||
BuildRequires: zlib-devel
|
||||
@ -179,7 +136,6 @@ Suggests: cockpit-selinux
|
||||
Requires: subscription-manager-cockpit
|
||||
%endif
|
||||
|
||||
%if 0%{?enable_old_bridge} == 0
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pip
|
||||
%if 0%{?rhel} == 0
|
||||
@ -191,7 +147,6 @@ BuildRequires: python3-pytest-cov
|
||||
BuildRequires: python3-pytest-timeout
|
||||
BuildRequires: python3-tox-current-env
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n cockpit-%{version}
|
||||
@ -205,12 +160,6 @@ BuildRequires: python3-tox-current-env
|
||||
--docdir=%_defaultdocdir/%{name} \
|
||||
%endif
|
||||
--with-pamdir='%{pamdir}' \
|
||||
%if 0%{?enable_old_bridge}
|
||||
--enable-old-bridge \
|
||||
%endif
|
||||
%if 0%{?build_basic} == 0
|
||||
--disable-ssh \
|
||||
%endif
|
||||
%if %{build_pcp} == 0
|
||||
--disable-pcp \
|
||||
%endif
|
||||
@ -220,7 +169,7 @@ BuildRequires: python3-tox-current-env
|
||||
%check
|
||||
make -j$(nproc) check
|
||||
|
||||
%if 0%{?enable_old_bridge} == 0 && 0%{?rhel} == 0
|
||||
%if 0%{?rhel} == 0
|
||||
%tox
|
||||
%endif
|
||||
|
||||
@ -239,10 +188,6 @@ echo '%dir %{_datadir}/cockpit/base1' >> base.list
|
||||
find %{buildroot}%{_datadir}/cockpit/base1 -type f -o -type l >> base.list
|
||||
echo '%{_sysconfdir}/cockpit/machines.d' >> base.list
|
||||
echo %{buildroot}%{_datadir}/polkit-1/actions/org.cockpit-project.cockpit-bridge.policy >> base.list
|
||||
%if 0%{?enable_old_bridge} && 0%{?build_basic}
|
||||
echo '%dir %{_datadir}/cockpit/ssh' >> base.list
|
||||
find %{buildroot}%{_datadir}/cockpit/ssh -type f >> base.list
|
||||
%endif
|
||||
echo '%{_libexecdir}/cockpit-ssh' >> base.list
|
||||
|
||||
%if %{build_pcp}
|
||||
@ -290,43 +235,6 @@ echo '%dir %{_datadir}/cockpit/static' > static.list
|
||||
echo '%dir %{_datadir}/cockpit/static/fonts' >> static.list
|
||||
find %{buildroot}%{_datadir}/cockpit/static -type f >> static.list
|
||||
|
||||
# when not building basic packages, remove their files
|
||||
%if 0%{?build_basic} == 0
|
||||
for pkg in base1 branding motd kdump networkmanager selinux shell sosreport static systemd users metrics; do
|
||||
rm -r %{buildroot}/%{_datadir}/cockpit/$pkg
|
||||
rm -f %{buildroot}/%{_datadir}/metainfo/org.cockpit-project.cockpit-${pkg}.metainfo.xml
|
||||
done
|
||||
for data in doc man pixmaps polkit-1; do
|
||||
rm -r %{buildroot}/%{_datadir}/$data
|
||||
done
|
||||
rm -r %{buildroot}/%{_prefix}/%{__lib}/tmpfiles.d
|
||||
find %{buildroot}/%{_unitdir}/ -type f ! -name 'cockpit-session*' -delete
|
||||
for libexec in cockpit-askpass cockpit-session cockpit-ws cockpit-tls cockpit-wsinstance-factory cockpit-client cockpit-client.ui cockpit-desktop cockpit-certificate-helper cockpit-certificate-ensure; do
|
||||
rm -f %{buildroot}/%{_libexecdir}/$libexec
|
||||
done
|
||||
rm -r %{buildroot}/%{_sysconfdir}/pam.d %{buildroot}/%{_sysconfdir}/motd.d %{buildroot}/%{_sysconfdir}/issue.d
|
||||
rm -f %{buildroot}/%{_libdir}/security/pam_*
|
||||
rm -f %{buildroot}/usr/bin/cockpit-bridge
|
||||
rm -f %{buildroot}%{_libexecdir}/cockpit-ssh
|
||||
rm -f %{buildroot}%{_datadir}/metainfo/cockpit.appdata.xml
|
||||
rm -rf %{buildroot}%{python3_sitelib}/cockpit*
|
||||
%endif
|
||||
|
||||
# when not building optional packages, remove their files
|
||||
%if 0%{?build_optional} == 0
|
||||
for pkg in apps packagekit pcp playground storaged; do
|
||||
rm -rf %{buildroot}/%{_datadir}/cockpit/$pkg
|
||||
done
|
||||
# files from -tests
|
||||
rm -f %{buildroot}/%{pamdir}/mock-pam-conv-mod.so
|
||||
rm -f %{buildroot}/%{_unitdir}/cockpit-session.socket
|
||||
rm -f %{buildroot}/%{_unitdir}/cockpit-session@.service
|
||||
# files from -pcp
|
||||
rm -r %{buildroot}/%{_libexecdir}/cockpit-pcp %{buildroot}/%{_localstatedir}/lib/pcp/
|
||||
# files from -storaged
|
||||
rm -f %{buildroot}/%{_prefix}/share/metainfo/org.cockpit-project.cockpit-storaged.metainfo.xml
|
||||
%endif
|
||||
|
||||
sed -i "s|%{buildroot}||" *.list
|
||||
|
||||
%if ! 0%{?suse_version}
|
||||
@ -350,9 +258,7 @@ rm -f %{buildroot}%{_datadir}/pixmaps/cockpit-sosreport.png
|
||||
%endif
|
||||
|
||||
# -------------------------------------------------------------------------------
|
||||
# Basic Sub-packages
|
||||
|
||||
%if 0%{?build_basic}
|
||||
# Sub-packages
|
||||
|
||||
%description
|
||||
The Cockpit Web Console enables users to administer GNU/Linux servers using a
|
||||
@ -390,9 +296,7 @@ system on behalf of the web based user interface.
|
||||
%doc %{_mandir}/man1/cockpit-bridge.1.gz
|
||||
%{_bindir}/cockpit-bridge
|
||||
%{_libexecdir}/cockpit-askpass
|
||||
%if 0%{?enable_old_bridge} == 0
|
||||
%{python3_sitelib}/%{name}*
|
||||
%endif
|
||||
|
||||
%package doc
|
||||
Summary: Cockpit deployment and developer guide
|
||||
@ -620,9 +524,7 @@ if [ "$1" = 1 ]; then
|
||||
ln -s ../../run/cockpit/motd /etc/motd.d/cockpit
|
||||
ln -s ../../run/cockpit/motd /etc/issue.d/cockpit.issue
|
||||
printf "# List of users which are not allowed to login to Cockpit\n" > /etc/cockpit/disallowed-users
|
||||
%if 0%{?disallow_root}
|
||||
printf "root\n" >> /etc/cockpit/disallowed-users
|
||||
%endif
|
||||
chmod 644 /etc/cockpit/disallowed-users
|
||||
fi
|
||||
|
||||
@ -717,21 +619,6 @@ utility setroubleshoot to diagnose and resolve SELinux issues.
|
||||
|
||||
%endif
|
||||
|
||||
#/ build basic packages
|
||||
%else
|
||||
|
||||
# RPM requires this
|
||||
%description
|
||||
Dummy package from building optional packages only; never install or publish me.
|
||||
|
||||
#/ build basic packages
|
||||
%endif
|
||||
|
||||
# -------------------------------------------------------------------------------
|
||||
# Sub-packages that are optional extensions
|
||||
|
||||
%if 0%{?build_optional}
|
||||
|
||||
%package -n cockpit-storaged
|
||||
Summary: Cockpit user interface for storage, using udisks
|
||||
Requires: cockpit-shell >= %{required_base}
|
||||
@ -807,14 +694,22 @@ via PackageKit.
|
||||
|
||||
%files -n cockpit-packagekit -f packagekit.list
|
||||
|
||||
#/ build optional extension packages
|
||||
%endif
|
||||
|
||||
# The changelog is automatically generated and merged
|
||||
%changelog
|
||||
* Tue Feb 20 2024 Packit <hello@packit.dev> - 311.1-1
|
||||
- Update documentation links to RHEL 9 (RHEL-3954)
|
||||
- Storage: Various bug fixes
|
||||
|
||||
* Wed Feb 14 2024 Packit <hello@packit.dev> - 311-1
|
||||
- Bug fixes and stability improvements
|
||||
|
||||
* Wed Feb 07 2024 Packit <hello@packit.dev> - 310.2-1
|
||||
- selinux: Cover migration to /run
|
||||
- ws: Handle HEAD requests correctly, for curl 8.6.0
|
||||
|
||||
* Fri Feb 02 2024 Packit <hello@packit.dev> - 310.1-1
|
||||
- bridge: Fix race condition/crash in file watching channels
|
||||
|
||||
* Wed Jan 31 2024 Packit <hello@packit.dev> - 310-1
|
||||
- Storage: support for btrfs
|
||||
- Storage: improved support for swap
|
||||
|
@ -31,7 +31,6 @@ jobs:
|
||||
- fedora-39
|
||||
- fedora-latest-aarch64
|
||||
- fedora-development
|
||||
- centos-stream-8-x86_64
|
||||
- centos-stream-9-x86_64
|
||||
- centos-stream-9-aarch64
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (cockpit-311.tar.xz) = 16583cfc29328a92725278e0cf73f8e1312ecbdfbac0d53243a67ce5050091a73871c39425c28b7a4249885c427753831daef131df2c7f8a8cd191be29fba4e3
|
||||
SHA512 (cockpit-311.1.tar.xz) = 2cf3dee1245a428573a40e94ec22957c34f69613c52f94604bd15d63d5df05a01e83f3599751e699db8a0af947dc17550809fbb775c3d0ac57c0f484679bea5a
|
||||
|
Loading…
Reference in New Issue
Block a user