|
|
b6b72a |
# Globals that might be defined elsewhere
|
|
|
b6b72a |
# * gitcommit xxxx
|
|
|
b6b72a |
# * selinux 1
|
|
|
b6b72a |
|
|
|
b6b72a |
%define branding default
|
|
|
b6b72a |
|
|
|
b6b72a |
# Our SELinux policy gets built in tests and f21 and lower
|
|
|
b6b72a |
%if %{defined gitcommit}
|
|
|
b6b72a |
%define extra_flags CFLAGS='-O2 -Wall -Werror -fPIC'
|
|
|
b6b72a |
%define selinux 1
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
%if 0%{?fedora} > 0 && 0%{?fedora} <= 21
|
|
|
b6b72a |
%define selinux 1
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
%if 0%{?fedora} > 0 && 0%{?fedora} <= 23
|
|
|
b6b72a |
%define branding fedora
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
%if 0%{?rhel}
|
|
|
b6b72a |
%define selinux 1
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
%if 0%{?centos}
|
|
|
b6b72a |
%define rhel 0
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
%define _hardened_build 1
|
|
|
b6b72a |
|
|
|
b6b72a |
Name: cockpit
|
|
|
b6b72a |
%if %{defined gitcommit}
|
|
|
b6b72a |
Version: %{gitcommit}
|
|
|
b6b72a |
%else
|
|
|
b6b72a |
Version: 0.53
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
Release: 3%{?dist}
|
|
|
b6b72a |
Summary: A user interface for Linux servers
|
|
|
b6b72a |
|
|
|
b6b72a |
License: LGPLv2+
|
|
|
b6b72a |
URL: http://cockpit-project.org/
|
|
|
b6b72a |
|
|
|
b6b72a |
%if %{defined gitcommit}
|
|
|
b6b72a |
Source0: cockpit-%{version}.tar.gz
|
|
|
b6b72a |
%else
|
|
|
b6b72a |
Source0: https://github.com/cockpit-project/cockpit/releases/download/%{version}/cockpit-%{version}.tar.bz2
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
Source1: cockpit.pam
|
|
|
b6b72a |
Source2: branding.tar
|
|
|
b6b72a |
Patch0: chunked-streaming.patch
|
|
|
b6b72a |
|
|
|
b6b72a |
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
b6b72a |
BuildRequires: pkgconfig(json-glib-1.0)
|
|
|
b6b72a |
BuildRequires: pkgconfig(libsystemd-daemon)
|
|
|
b6b72a |
BuildRequires: pkgconfig(polkit-agent-1) >= 0.105
|
|
|
b6b72a |
BuildRequires: pam-devel
|
|
|
b6b72a |
|
|
|
b6b72a |
BuildRequires: autoconf automake
|
|
|
b6b72a |
BuildRequires: intltool
|
|
|
b6b72a |
BuildRequires: libssh-devel >= 0.6.0
|
|
|
b6b72a |
BuildRequires: openssl-devel
|
|
|
b6b72a |
BuildRequires: zlib-devel
|
|
|
b6b72a |
BuildRequires: krb5-devel
|
|
|
b6b72a |
BuildRequires: libxslt-devel
|
|
|
b6b72a |
BuildRequires: docbook-style-xsl
|
|
|
b6b72a |
BuildRequires: keyutils-libs-devel
|
|
|
b6b72a |
BuildRequires: dbus-devel
|
|
|
b6b72a |
BuildRequires: glib-networking
|
|
|
b6b72a |
BuildRequires: sed
|
|
|
b6b72a |
|
|
|
b6b72a |
BuildRequires: glib2-devel >= 2.37.4
|
|
|
b6b72a |
BuildRequires: systemd
|
|
|
b6b72a |
BuildRequires: polkit
|
|
|
b6b72a |
BuildRequires: pcp-libs-devel
|
|
|
b6b72a |
|
|
|
b6b72a |
# For cockpit-lvm
|
|
|
b6b72a |
BuildRequires: libgudev1-devel
|
|
|
b6b72a |
BuildRequires: lvm2-devel
|
|
|
b6b72a |
BuildRequires: polkit-devel
|
|
|
b6b72a |
|
|
|
b6b72a |
%if %{defined gitcommit}
|
|
|
b6b72a |
BuildRequires: npm
|
|
|
b6b72a |
BuildRequires: nodejs
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
# For selinux
|
|
|
b6b72a |
%if %{defined selinux}
|
|
|
b6b72a |
BuildRequires: selinux-policy-devel
|
|
|
b6b72a |
BuildRequires: checkpolicy
|
|
|
b6b72a |
BuildRequires: selinux-policy-doc
|
|
|
b6b72a |
BuildRequires: sed
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
# For documentation
|
|
|
b6b72a |
BuildRequires: xmlto
|
|
|
b6b72a |
|
|
|
b6b72a |
Requires: %{name}-bridge = %{version}-%{release}
|
|
|
b6b72a |
Requires: %{name}-ws = %{version}-%{release}
|
|
|
b6b72a |
Requires: %{name}-shell = %{version}-%{release}
|
|
|
b6b72a |
%ifarch x86_64 armv7hl
|
|
|
b6b72a |
Requires: %{name}-docker = %{version}-%{release}
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
%if 0%{?rhel}
|
|
|
b6b72a |
Requires: %{name}-subscriptions = %{version}-%{release}
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
%description
|
|
|
b6b72a |
Cockpit runs in a browser and can manage your network of GNU/Linux
|
|
|
b6b72a |
machines.
|
|
|
b6b72a |
|
|
|
b6b72a |
%package bridge
|
|
|
b6b72a |
Summary: Cockpit bridge server-side component
|
|
|
b6b72a |
Provides: %{name}-daemon
|
|
|
b6b72a |
Obsoletes: %{name}-daemon < 0.48-2
|
|
|
b6b72a |
Requires: polkit
|
|
|
b6b72a |
|
|
|
b6b72a |
%description bridge
|
|
|
b6b72a |
The Cockpit bridge component installed server side and runs commands on the
|
|
|
b6b72a |
system on behalf of the web based user interface.
|
|
|
b6b72a |
|
|
|
b6b72a |
%package doc
|
|
|
b6b72a |
Summary: Cockpit deployment and developer guide
|
|
|
b6b72a |
|
|
|
b6b72a |
%description doc
|
|
|
b6b72a |
The Cockpit Deployment and Developer Guide shows sysadmins how to
|
|
|
b6b72a |
deploy Cockpit on their machines as well as helps developers who want to
|
|
|
b6b72a |
embed or extend Cockpit.
|
|
|
b6b72a |
|
|
|
b6b72a |
%package pcp
|
|
|
b6b72a |
Summary: Cockpit PCP integration
|
|
|
b6b72a |
Requires: %{name}-bridge = %{version}-%{release}
|
|
|
b6b72a |
Requires: pcp
|
|
|
b6b72a |
|
|
|
b6b72a |
%description pcp
|
|
|
b6b72a |
Cockpit support for reading PCP metrics and loading PCP archives.
|
|
|
b6b72a |
|
|
|
b6b72a |
%package shell
|
|
|
b6b72a |
Summary: Cockpit Shell user interface package
|
|
|
b6b72a |
Requires: %{name}-bridge = %{version}-%{release}
|
|
|
b6b72a |
Requires: NetworkManager
|
|
|
b6b72a |
Requires: shadow-utils
|
|
|
b6b72a |
Requires: grep
|
|
|
b6b72a |
Requires: /usr/bin/date
|
|
|
b6b72a |
Requires: mdadm
|
|
|
b6b72a |
Requires: lvm2
|
|
|
b6b72a |
%if 0%{?rhel} == 0
|
|
|
b6b72a |
Requires: udisks2 >= 2.1.0
|
|
|
b6b72a |
%else
|
|
|
b6b72a |
Provides: %{name}-subscriptions = %{version}-%{release}
|
|
|
b6b72a |
Requires: subscription-manager >= 1.13
|
|
|
b6b72a |
%ifarch x86_64 armv7hl
|
|
|
b6b72a |
Provides: %{name}-docker = %{version}-%{release}
|
|
|
b6b72a |
Requires: docker
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
Provides: %{name}-assets
|
|
|
b6b72a |
Obsoletes: %{name}-assets < 0.32
|
|
|
b6b72a |
BuildArch: noarch
|
|
|
b6b72a |
|
|
|
b6b72a |
%description shell
|
|
|
b6b72a |
This package contains the Cockpit shell UI assets.
|
|
|
b6b72a |
|
|
|
b6b72a |
%package ws
|
|
|
b6b72a |
Summary: Cockpit Web Service
|
|
|
b6b72a |
Requires: glib-networking
|
|
|
b6b72a |
Requires: openssl
|
|
|
b6b72a |
Requires: glib2 >= 2.37.4
|
|
|
b6b72a |
Requires(post): systemd
|
|
|
b6b72a |
Requires(preun): systemd
|
|
|
b6b72a |
Requires(postun): systemd
|
|
|
b6b72a |
|
|
|
b6b72a |
%description ws
|
|
|
b6b72a |
The Cockpit Web Service listens on the network, and authenticates users.
|
|
|
b6b72a |
|
|
|
b6b72a |
%prep
|
|
|
b6b72a |
%setup -q
|
|
|
b6b72a |
%patch0 -p1
|
|
|
b6b72a |
tar -C branding -xf %{SOURCE2}
|
|
|
b6b72a |
rm -rf branding/default
|
|
|
b6b72a |
mv branding/rhel branding/default
|
|
|
b6b72a |
%if 0%{?fedora} == 20
|
|
|
b6b72a |
sed -i s/unconfined_service_t/unconfined_t/g src/ws/test-server.service.in
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
%build
|
|
|
b6b72a |
%if %{defined gitcommit}
|
|
|
b6b72a |
env NOCONFIGURE=1 ./autogen.sh
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
%configure --disable-static --disable-silent-rules --with-cockpit-user=cockpit-ws --with-branding=%{branding}
|
|
|
b6b72a |
make -j1 %{?extra_flags} all
|
|
|
b6b72a |
%if %{defined selinux}
|
|
|
b6b72a |
make selinux
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
%check
|
|
|
b6b72a |
# The check doesnt run on koji as it requires network
|
|
|
b6b72a |
# make check
|
|
|
b6b72a |
|
|
|
b6b72a |
%install
|
|
|
b6b72a |
make install DESTDIR=%{buildroot} DBGDIR=/debug
|
|
|
b6b72a |
%if %{defined gitcommit}
|
|
|
b6b72a |
make install-test-assets DESTDIR=%{buildroot}
|
|
|
b6b72a |
mkdir -p %{buildroot}/%{_datadir}/polkit-1/rules.d
|
|
|
b6b72a |
cp src/bridge/polkit-workarounds.rules %{buildroot}/%{_datadir}/polkit-1/rules.d
|
|
|
b6b72a |
%else
|
|
|
b6b72a |
rm -rf %{buildroot}/%{_datadir}/%{name}/playground
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
|
|
|
b6b72a |
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/cockpit
|
|
|
b6b72a |
rm -f %{buildroot}/%{_libdir}/cockpit/*.so
|
|
|
b6b72a |
install -p -m 644 AUTHORS COPYING README.md %{buildroot}%{_docdir}/%{name}/
|
|
|
b6b72a |
%if %{defined selinux}
|
|
|
b6b72a |
install -d %{buildroot}%{_datadir}/selinux/targeted
|
|
|
b6b72a |
install -p -m 644 cockpit.pp %{buildroot}%{_datadir}/selinux/targeted/
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
# Build the package lists for resource packages
|
|
|
b6b72a |
echo '%dir %{_datadir}/%{name}/base1' > shell.list
|
|
|
b6b72a |
find %{buildroot}%{_datadir}/%{name}/base1 -type f >> shell.list
|
|
|
b6b72a |
|
|
|
b6b72a |
echo '%dir %{_datadir}/%{name}/dashboard' >> shell.list
|
|
|
b6b72a |
find %{buildroot}%{_datadir}/%{name}/dashboard -type f >> shell.list
|
|
|
b6b72a |
|
|
|
b6b72a |
echo '%dir %{_datadir}/%{name}/domain' >> shell.list
|
|
|
b6b72a |
find %{buildroot}%{_datadir}/%{name}/domain -type f >> shell.list
|
|
|
b6b72a |
|
|
|
b6b72a |
echo '%dir %{_datadir}/%{name}/shell' >> shell.list
|
|
|
b6b72a |
find %{buildroot}%{_datadir}/%{name}/shell -type f >> shell.list
|
|
|
b6b72a |
|
|
|
b6b72a |
echo '%dir %{_datadir}/%{name}/system' >> shell.list
|
|
|
b6b72a |
find %{buildroot}%{_datadir}/%{name}/system -type f >> shell.list
|
|
|
b6b72a |
|
|
|
b6b72a |
echo '%dir %{_datadir}/%{name}/subscriptions' > subscriptions.list
|
|
|
b6b72a |
find %{buildroot}%{_datadir}/%{name}/subscriptions -type f >> subscriptions.list
|
|
|
b6b72a |
|
|
|
b6b72a |
%ifarch x86_64 armv7hl
|
|
|
b6b72a |
echo '%dir %{_datadir}/%{name}/docker' > docker.list
|
|
|
b6b72a |
find %{buildroot}%{_datadir}/%{name}/docker -type f >> docker.list
|
|
|
b6b72a |
%else
|
|
|
b6b72a |
rm -rf %{buildroot}/%{_datadir}/%{name}/docker
|
|
|
b6b72a |
touch docker.list
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
%ifarch x86_64
|
|
|
b6b72a |
echo '%dir %{_datadir}/%{name}/kubernetes' > kubernetes.list
|
|
|
b6b72a |
find %{buildroot}%{_datadir}/%{name}/kubernetes -type f >> kubernetes.list
|
|
|
b6b72a |
%else
|
|
|
b6b72a |
rm -rf %{buildroot}/%{_datadir}/%{name}/kubernetes
|
|
|
b6b72a |
touch kubernetes.list
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
sed -i "s|%{buildroot}||" *.list
|
|
|
b6b72a |
|
|
|
b6b72a |
# Build the package lists for debug package, and move debug files to installed locations
|
|
|
b6b72a |
find %{buildroot}/debug%{_datadir}/%{name} -type f -o -type l > debug.list
|
|
|
b6b72a |
sed -i "s|%{buildroot}/debug||" debug.list
|
|
|
b6b72a |
tar -C %{buildroot}/debug -cf - . | tar -C %{buildroot} -xf -
|
|
|
b6b72a |
rm -rf %{buildroot}/debug
|
|
|
b6b72a |
|
|
|
b6b72a |
%if 0%{?rhel}
|
|
|
b6b72a |
# On RHEL subscriptions and docker are part of the shell package
|
|
|
b6b72a |
cat subscriptions.list docker.list >> shell.list
|
|
|
b6b72a |
|
|
|
b6b72a |
# The dashboard is not ready for RHEL
|
|
|
b6b72a |
sed -i '/dashboard\/manifest.json/d' shell.list
|
|
|
b6b72a |
rm %{buildroot}%{_datadir}/%{name}/dashboard/manifest.json
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
# Redefine how debug info is built to slip in our extra debug files
|
|
|
b6b72a |
%define __debug_install_post \
|
|
|
b6b72a |
%{_rpmconfigdir}/find-debuginfo.sh %{?_missing_build_ids_terminate_build:--strict-build-id} %{?_include_minidebuginfo:-m} %{?_find_debuginfo_dwz_opts} %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}" \
|
|
|
b6b72a |
cat debug.list >> %{_builddir}/%{?buildsubdir}/debugfiles.list \
|
|
|
b6b72a |
%{nil}
|
|
|
b6b72a |
|
|
|
b6b72a |
%files
|
|
|
b6b72a |
%{_docdir}/%{name}/AUTHORS
|
|
|
b6b72a |
%{_docdir}/%{name}/COPYING
|
|
|
b6b72a |
%{_docdir}/%{name}/README.md
|
|
|
b6b72a |
%dir %{_datadir}/%{name}
|
|
|
b6b72a |
%{_datadir}/appdata
|
|
|
b6b72a |
%{_datadir}/applications
|
|
|
b6b72a |
%{_datadir}/pixmaps
|
|
|
b6b72a |
|
|
|
b6b72a |
%files bridge
|
|
|
b6b72a |
%doc %{_mandir}/man1/cockpit-bridge.1.gz
|
|
|
b6b72a |
%{_bindir}/cockpit-bridge
|
|
|
b6b72a |
%attr(4755, -, -) %{_libexecdir}/cockpit-polkit
|
|
|
b6b72a |
%{_libexecdir}/cockpit-wrapper
|
|
|
b6b72a |
%{_libexecdir}/cockpit-lvm
|
|
|
b6b72a |
%{_libexecdir}/cockpit-lvm-helper
|
|
|
b6b72a |
%{_libdir}/security/pam_reauthorize.so
|
|
|
b6b72a |
%{_datadir}/dbus-1/services/com.redhat.Cockpit.service
|
|
|
b6b72a |
%{_sysconfdir}/dbus-1/system.d/com.redhat.Cockpit.LVM.conf
|
|
|
b6b72a |
%{_datadir}/dbus-1/system-services/com.redhat.Cockpit.LVM.service
|
|
|
b6b72a |
%{_datadir}/polkit-1/actions/com.redhat.Cockpit.LVM.policy
|
|
|
b6b72a |
%{_datadir}/cockpit/lvm-nolocking/lvm.conf
|
|
|
b6b72a |
|
|
|
b6b72a |
%files doc
|
|
|
b6b72a |
%exclude %{_docdir}/%{name}/AUTHORS
|
|
|
b6b72a |
%exclude %{_docdir}/%{name}/COPYING
|
|
|
b6b72a |
%exclude %{_docdir}/%{name}/README.md
|
|
|
b6b72a |
%{_docdir}/%{name}
|
|
|
b6b72a |
|
|
|
b6b72a |
%files pcp
|
|
|
b6b72a |
%{_libexecdir}/cockpit-pcp
|
|
|
b6b72a |
|
|
|
b6b72a |
%post pcp
|
|
|
b6b72a |
# HACK - https://bugzilla.redhat.com/show_bug.cgi?id=1185749
|
|
|
b6b72a |
( cd /var/lib/pcp/pmns && ./Rebuild -du )
|
|
|
b6b72a |
|
|
|
b6b72a |
%files shell -f shell.list
|
|
|
b6b72a |
|
|
|
b6b72a |
%files ws
|
|
|
b6b72a |
%doc %{_mandir}/man5/cockpit.conf.5.gz
|
|
|
b6b72a |
%doc %{_mandir}/man8/cockpit-ws.8.gz
|
|
|
b6b72a |
%doc %{_mandir}/man8/remotectl.8.gz
|
|
|
b6b72a |
%config(noreplace) %{_sysconfdir}/%{name}
|
|
|
b6b72a |
%config(noreplace) %{_sysconfdir}/pam.d/cockpit
|
|
|
b6b72a |
%{_unitdir}/cockpit.service
|
|
|
b6b72a |
%{_unitdir}/cockpit.socket
|
|
|
b6b72a |
%{_prefix}/lib/firewalld/services/cockpit.xml
|
|
|
b6b72a |
%{_sbindir}/remotectl
|
|
|
b6b72a |
%{_libexecdir}/cockpit-ws
|
|
|
b6b72a |
%attr(4750, root, cockpit-ws) %{_libexecdir}/cockpit-session
|
|
|
b6b72a |
%attr(775, -, wheel) %{_sharedstatedir}/%{name}
|
|
|
b6b72a |
%{_datadir}/%{name}/static
|
|
|
b6b72a |
|
|
|
b6b72a |
%pre ws
|
|
|
b6b72a |
getent group cockpit-ws >/dev/null || groupadd -r cockpit-ws
|
|
|
b6b72a |
getent passwd cockpit-ws >/dev/null || useradd -r -g cockpit-ws -d / -s /sbin/nologin -c "User for cockpit-ws" cockpit-ws
|
|
|
b6b72a |
|
|
|
b6b72a |
%post ws
|
|
|
b6b72a |
%systemd_post cockpit.socket
|
|
|
b6b72a |
# firewalld only partially picks up changes to its services files without this
|
|
|
b6b72a |
test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true
|
|
|
b6b72a |
|
|
|
b6b72a |
%preun ws
|
|
|
b6b72a |
%systemd_preun cockpit.socket
|
|
|
b6b72a |
|
|
|
b6b72a |
%postun ws
|
|
|
b6b72a |
%systemd_postun_with_restart cockpit.socket
|
|
|
b6b72a |
|
|
|
b6b72a |
# Conditionally built packages below
|
|
|
b6b72a |
|
|
|
b6b72a |
%if 0%{?rhel} == 0
|
|
|
b6b72a |
|
|
|
b6b72a |
%package subscriptions
|
|
|
b6b72a |
Summary: Cockpit subscription user interface package
|
|
|
b6b72a |
Requires: subscription-manager >= 1.13
|
|
|
b6b72a |
BuildArch: noarch
|
|
|
b6b72a |
|
|
|
b6b72a |
%description subscriptions
|
|
|
b6b72a |
This package contains the Cockpit user interface integration with local
|
|
|
b6b72a |
subscription management.
|
|
|
b6b72a |
|
|
|
b6b72a |
%files subscriptions -f subscriptions.list
|
|
|
b6b72a |
|
|
|
b6b72a |
%ifarch x86_64 armv7hl
|
|
|
b6b72a |
|
|
|
b6b72a |
%package docker
|
|
|
b6b72a |
Summary: Cockpit user interface for Docker containers
|
|
|
b6b72a |
Requires: docker
|
|
|
b6b72a |
|
|
|
b6b72a |
%description docker
|
|
|
b6b72a |
The Cockpit components for interacting with Docker and user interface.
|
|
|
b6b72a |
This package is not yet complete.
|
|
|
b6b72a |
|
|
|
b6b72a |
%files docker -f docker.list
|
|
|
b6b72a |
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
%ifarch x86_64
|
|
|
b6b72a |
|
|
|
b6b72a |
%package kubernetes
|
|
|
b6b72a |
Summary: Cockpit user interface for Kubernetes cluster
|
|
|
b6b72a |
Requires: kubernetes
|
|
|
b6b72a |
|
|
|
b6b72a |
%description kubernetes
|
|
|
b6b72a |
The Cockpit components for visualizing and configuring a Kubernetes
|
|
|
b6b72a |
cluster. Installed on the Kubernetes master. This package is not yet complete.
|
|
|
b6b72a |
|
|
|
b6b72a |
%files kubernetes -f kubernetes.list
|
|
|
b6b72a |
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
%if %{defined gitcommit}
|
|
|
b6b72a |
|
|
|
b6b72a |
%package test-assets
|
|
|
b6b72a |
Summary: Additional stuff for testing Cockpit
|
|
|
b6b72a |
Requires: openssh-clients
|
|
|
b6b72a |
|
|
|
b6b72a |
%description test-assets
|
|
|
b6b72a |
This package contains programs and other files for testing Cockpit, and
|
|
|
b6b72a |
pulls in some necessary packages via dependencies.
|
|
|
b6b72a |
|
|
|
b6b72a |
%files test-assets
|
|
|
b6b72a |
%{_datadir}/%{name}/playground
|
|
|
b6b72a |
%{_datadir}/cockpit-test-assets
|
|
|
b6b72a |
%{_datadir}/polkit-1/rules.d
|
|
|
b6b72a |
%{_unitdir}/cockpit-testing.service
|
|
|
b6b72a |
%{_unitdir}/cockpit-testing.socket
|
|
|
b6b72a |
%{_unitdir}/test-server.service
|
|
|
b6b72a |
%{_unitdir}/test-server.socket
|
|
|
b6b72a |
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
%if %{defined selinux}
|
|
|
b6b72a |
|
|
|
b6b72a |
%package selinux-policy
|
|
|
b6b72a |
Summary: SELinux policy for Cockpit testing
|
|
|
b6b72a |
Requires: %{name} = %{version}-%{release}
|
|
|
b6b72a |
Requires: selinux-policy
|
|
|
b6b72a |
Requires: selinux-policy-targeted
|
|
|
b6b72a |
Requires(post): /usr/sbin/semodule, /sbin/restorecon, /sbin/fixfiles
|
|
|
b6b72a |
Requires(postun): /usr/sbin/semodule, /sbin/restorecon, /sbin/fixfiles
|
|
|
b6b72a |
BuildArch: noarch
|
|
|
b6b72a |
|
|
|
b6b72a |
%description selinux-policy
|
|
|
b6b72a |
SELinux policy for Cockpit testing.
|
|
|
b6b72a |
|
|
|
b6b72a |
%files selinux-policy
|
|
|
b6b72a |
%defattr(-,root,root,0755)
|
|
|
b6b72a |
%{_datadir}/selinux/targeted/cockpit.pp
|
|
|
b6b72a |
|
|
|
b6b72a |
%post selinux-policy
|
|
|
b6b72a |
/usr/sbin/semodule -s targeted -i %{_datadir}/selinux/targeted/cockpit.pp
|
|
|
b6b72a |
/sbin/fixfiles -R cockpit restore || :
|
|
|
b6b72a |
/sbin/fixfiles -R cockpit-test-assets restore || :
|
|
|
b6b72a |
/sbin/restorecon -R %{_sharedstatedir}/%{name}
|
|
|
b6b72a |
|
|
|
b6b72a |
%postun selinux-policy
|
|
|
b6b72a |
if [ $1 -eq 0 ] ; then
|
|
|
b6b72a |
/usr/sbin/semodule -s targeted -r cockpit &> /dev/null || :
|
|
|
b6b72a |
/sbin/fixfiles -R cockpit-selinux-policy restore || :
|
|
|
b6b72a |
[ -d %{_sharedstatedir}/%{name} ] && \
|
|
|
b6b72a |
/sbin/restorecon -R %{_sharedstatedir}/%{name} &> /dev/null || :
|
|
|
b6b72a |
fi
|
|
|
b6b72a |
|
|
|
b6b72a |
%endif
|
|
|
b6b72a |
|
|
|
b6b72a |
%changelog
|
|
|
b6b72a |
* Fri Apr 24 2015 Stef Walter <stefw@redhat.com> - 0.53-3
|
|
|
b6b72a |
- Fix intermittent issue loading packages, that prevents login
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Apr 22 2015 Stef Walter <stefw@redhat.com> - 0.53-2
|
|
|
b6b72a |
- Enable _hardened_build
|
|
|
b6b72a |
|
|
|
b6b72a |
* Tue Apr 21 2015 Stef Walter <stefw@redhat.com> - 0.53-1
|
|
|
b6b72a |
- Update to 0.53 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Apr 16 2015 Stef Walter <stefw@redhat.com> - 0.52-1
|
|
|
b6b72a |
- Update to 0.52 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Apr 15 2015 Stef Walter <stefw@redhat.com> - 0.51-3
|
|
|
b6b72a |
- Disable the dashboard on RHEL
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Apr 15 2015 Stef Walter <stefw@redhat.com> - 0.51-2
|
|
|
b6b72a |
- Remove 'Beta' from branding
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Apr 15 2015 Stef Walter <stefw@redhat.com> - 0.51-1
|
|
|
b6b72a |
- Update to 0.51 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Tue Apr 07 2015 Stef Walter <stefw@redhat.com> - 0.50-1
|
|
|
b6b72a |
- Update to 0.50 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Apr 01 2015 Stef Walter <stefw@redhat.com> - 0.49-1
|
|
|
b6b72a |
- Update to 0.49 release.
|
|
|
b6b72a |
- cockpitd was renamed to cockpit-wrapper the cockpit-daemon
|
|
|
b6b72a |
package was removed and is now installed with the
|
|
|
b6b72a |
cockpit-bridge package.
|
|
|
b6b72a |
- cockpit-docker folded into cockpit-shell
|
|
|
b6b72a |
- cockpit-subscriptions folded into cockpit-shell
|
|
|
b6b72a |
|
|
|
b6b72a |
* Tue Mar 31 2015 Stef Walter <stefw@redhat.com> - 0.48-1
|
|
|
b6b72a |
- Update to 0.48 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Mar 26 2015 Stef Walter <stefw@redhat.com> - 0.46-1
|
|
|
b6b72a |
- Update to 0.46 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Mon Mar 23 2015 Stef Walter <stefw@redhat.com> - 0.45-1
|
|
|
b6b72a |
- Update to 0.45 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Sat Mar 21 2015 Stef Walter <stefw@redhat.com> - 0.44-3
|
|
|
b6b72a |
- Add back debuginfo files to the right place
|
|
|
b6b72a |
|
|
|
b6b72a |
* Fri Mar 20 2015 Stef Walter <stefw@redhat.com> - 0.44-2
|
|
|
b6b72a |
- Disable separate debuginfo for now: build failure
|
|
|
b6b72a |
|
|
|
b6b72a |
* Fri Mar 20 2015 Stef Walter <stefw@redhat.com> - 0.44-1
|
|
|
b6b72a |
- Update to 0.44 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Mar 19 2015 Stef Walter <stefw@redhat.com> - 0.43-2
|
|
|
b6b72a |
- Don't break EPEL or CentOS builds due to missing branding
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Mar 18 2015 Stef Walter <stefw@redhat.com> - 0.43-1
|
|
|
b6b72a |
- Update to 0.43 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Tue Mar 17 2015 Stef Walter <stefw@redhat.com> - 0.42-2
|
|
|
b6b72a |
- Fix obseleting cockpit-assets
|
|
|
b6b72a |
|
|
|
b6b72a |
* Sat Mar 14 2015 Stef Walter <stefw@redhat.com> - 0.42-1
|
|
|
b6b72a |
- Update to 0.42 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Mar 04 2015 Stef Walter <stefw@redhat.com> - 0.41-1
|
|
|
b6b72a |
- Update to 0.41 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Feb 26 2015 Stef Walter <stefw@redhat.com> - 0.40-1
|
|
|
b6b72a |
- Update to 0.40 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Feb 19 2015 Stef Walter <stefw@redhat.com> - 0.39-1
|
|
|
b6b72a |
- Update to 0.39 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Jan 28 2015 Stef Walter <stefw@redhat.com> - 0.38-1
|
|
|
b6b72a |
- Update to 0.38 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Jan 22 2015 Stef Walter <stefw@redhat.com> - 0.37-1
|
|
|
b6b72a |
- Update to 0.37 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Mon Jan 12 2015 Stef Walter <stefw@redhat.com> - 0.36-1
|
|
|
b6b72a |
- Update to 0.36 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Mon Dec 15 2014 Stef Walter <stefw@redhat.com> - 0.35-1
|
|
|
b6b72a |
- Update to 0.35 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Dec 11 2014 Stef Walter <stefw@redhat.com> - 0.34-1
|
|
|
b6b72a |
- Update to 0.34 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Fri Dec 05 2014 Stef Walter <stefw@redhat.com> - 0.33-3
|
|
|
b6b72a |
- Only depend on docker stuff on x86_64
|
|
|
b6b72a |
|
|
|
b6b72a |
* Fri Dec 05 2014 Stef Walter <stefw@redhat.com> - 0.33-2
|
|
|
b6b72a |
- Only build docker stuff on x86_64
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Dec 03 2014 Stef Walter <stefw@redhat.com> - 0.33-1
|
|
|
b6b72a |
- Update to 0.33 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Mon Nov 24 2014 Stef Walter <stefw@redhat.com> - 0.32-1
|
|
|
b6b72a |
- Update to 0.32 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Fri Nov 14 2014 Stef Walter <stefw@redhat.com> - 0.31-1
|
|
|
b6b72a |
- Update to 0.31 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Nov 12 2014 Stef Walter <stefw@redhat.com> - 0.30-1
|
|
|
b6b72a |
- Update to 0.30 release
|
|
|
b6b72a |
- Split Cockpit into various sub packages
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Nov 05 2014 Stef Walter <stefw@redhat.com> - 0.29-3
|
|
|
b6b72a |
- Don't require test-assets from selinux-policy
|
|
|
b6b72a |
- Other minor tweaks and fixes
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Nov 05 2014 Stef Walter <stefw@redhat.com> - 0.29-2
|
|
|
b6b72a |
- Include selinux policy as a dep where required
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Nov 05 2014 Stef Walter <stefw@redhat.com> - 0.29-1
|
|
|
b6b72a |
- Update to 0.29 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Oct 16 2014 Stef Walter <stefw@redhat.com> - 0.28-1
|
|
|
b6b72a |
- Update to 0.28 release
|
|
|
b6b72a |
- cockpit-agent was renamed to cockpit-bridge
|
|
|
b6b72a |
|
|
|
b6b72a |
* Fri Oct 10 2014 Stef Walter <stefw@redhat.com> - 0.27-1
|
|
|
b6b72a |
- Update to 0.27 release
|
|
|
b6b72a |
- Don't create cockpit-*-admin groups rhbz#1145135
|
|
|
b6b72a |
- Fix user management for non-root users rhbz#1140562
|
|
|
b6b72a |
- Fix 'out of memory' error during ssh auth rhbz#1142282
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Oct 08 2014 Stef Walter <stefw@redhat.com> - 0.26-1
|
|
|
b6b72a |
- Update to 0.26 release
|
|
|
b6b72a |
- Can see disk usage on storage page rhbz#1142459
|
|
|
b6b72a |
- Better order for lists of block devices rhbz#1142443
|
|
|
b6b72a |
- Setting container memory limit fixed rhbz#1142362
|
|
|
b6b72a |
- Can create storage volume of maximum capacity rhbz#1142259
|
|
|
b6b72a |
- Fix RAID device Bitmap enable/disable error rhbz#1142248
|
|
|
b6b72a |
- Docker page connects to right machine rhbz#1142229
|
|
|
b6b72a |
- Clear the format dialog label correctly rhbz#1142228
|
|
|
b6b72a |
- No 'Drop Privileges' item in menu for root rhbz#1142197
|
|
|
b6b72a |
- Don't flash 'Server has closed Connection on logout rhbz#1142175
|
|
|
b6b72a |
- Non-root users can manipulate user accounts rhbz#1142154
|
|
|
b6b72a |
- Fix strange error message when editing user accounts rhbz#1142154
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Sep 24 2014 Stef Walter <stefw@redhat.com> - 0.25-1
|
|
|
b6b72a |
- Update to 0.25 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Sep 17 2014 Stef Walter <stefw@redhat.com> - 0.24-1
|
|
|
b6b72a |
- Update to 0.24 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Sep 10 2014 Stef Walter <stefw@redhat.com> - 0.23-1
|
|
|
b6b72a |
- Update to 0.23 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Sep 03 2014 Stef Walter <stefw@redhat.com> - 0.22-1
|
|
|
b6b72a |
- Update to 0.22 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Tue Aug 26 2014 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.21-1
|
|
|
b6b72a |
- Update to 0.21 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
|
|
|
b6b72a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Aug 14 2014 Stef Walter <stefw@redhat.com> 0.20-1
|
|
|
b6b72a |
- Update to 0.20 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Aug 07 2014 Stef Walter <stefw@redhat.com> 0.19-1
|
|
|
b6b72a |
- Update to 0.19 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Jul 30 2014 Stef Walter <stefw@redhat.com> 0.18-1
|
|
|
b6b72a |
- Update to 0.18 release
|
|
|
b6b72a |
- Add glib-networking build requirement
|
|
|
b6b72a |
- Let selinux-policy-targetted distribute selinux policy
|
|
|
b6b72a |
|
|
|
b6b72a |
* Mon Jul 28 2014 Colin Walters <walters@verbum.org> 0.17-2
|
|
|
b6b72a |
- Drop Requires and references to dead test-assets subpackage
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Jul 24 2014 Stef Walter <stefw@redhat.com> 0.17-1
|
|
|
b6b72a |
- Update to 0.17 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Jul 23 2014 Stef Walter <stefw@redhat.com> 0.16-3
|
|
|
b6b72a |
- Distribute our own selinux policy rhbz#1110758
|
|
|
b6b72a |
|
|
|
b6b72a |
* Tue Jul 22 2014 Stef Walter <stefw@redhat.com> 0.16-2
|
|
|
b6b72a |
- Refer to cockpit.socket in scriptlets rhbz#1110764
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Jul 17 2014 Stef Walter <stefw@redhat.com> 0.16-1
|
|
|
b6b72a |
- Update to 0.16 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Jul 10 2014 Stef Walter <stefw@redhat.com> 0.15-1
|
|
|
b6b72a |
- Update to 0.15 release
|
|
|
b6b72a |
- Put pam_reauthorize.so in the cockpit PAM stack
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Jul 03 2014 Stef Walter <stefw@redhat.com> 0.14-1
|
|
|
b6b72a |
- Update to 0.14 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Mon Jun 30 2014 Stef Walter <stefw@redhat.com> 0.13-1
|
|
|
b6b72a |
- Update to 0.13 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Tue Jun 24 2014 Stef Walter <stefw@redhat.com> 0.12-1
|
|
|
b6b72a |
- Update to upstream 0.12 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Fri Jun 20 2014 Stef Walter <stefw@redhat.com> 0.11-1
|
|
|
b6b72a |
- Update to upstream 0.11 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Jun 12 2014 Stef Walter <stefw@redhat.com> 0.10-1
|
|
|
b6b72a |
- Update to upstream 0.10 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
|
|
|
b6b72a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
b6b72a |
|
|
|
b6b72a |
* Fri May 23 2014 Stef Walter <stefw@redhat.com> 0.9-1
|
|
|
b6b72a |
- Update to upstream 0.9 release
|
|
|
b6b72a |
- Fix file attribute for cockpit-polkit
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed May 21 2014 Stef Walter <stefw@redhat.com> 0.8-1
|
|
|
b6b72a |
- Update to upstream 0.8 release
|
|
|
b6b72a |
- cockpitd now runs as a user session DBus service
|
|
|
b6b72a |
|
|
|
b6b72a |
* Mon May 19 2014 Stef Walter <stefw@redhat.com> 0.7-1
|
|
|
b6b72a |
- Update to upstream 0.7 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed May 14 2014 Stef Walter <stefw@redhat.com> 0.6-1
|
|
|
b6b72a |
- Update to upstream 0.6 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Tue Apr 15 2014 Stef Walter <stefw@redhat.com> 0.5-1
|
|
|
b6b72a |
- Update to upstream 0.5 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Thu Apr 03 2014 Stef Walter <stefw@redhat.com> 0.4-1
|
|
|
b6b72a |
- Update to upstream 0.4 release
|
|
|
b6b72a |
- Lots of packaging cleanup and polish
|
|
|
b6b72a |
|
|
|
b6b72a |
* Fri Mar 28 2014 Stef Walter <stefw@redhat.com> 0.3-1
|
|
|
b6b72a |
- Update to upstream 0.3 release
|
|
|
b6b72a |
|
|
|
b6b72a |
* Wed Feb 05 2014 Patrick Uiterwijk (LOCAL) <puiterwijk@redhat.com> - 0.2-0.4.20140204git5e1faad
|
|
|
b6b72a |
- Redid the release tag
|
|
|
b6b72a |
|
|
|
b6b72a |
* Tue Feb 04 2014 Patrick Uiterwijk (LOCAL) <puiterwijk@redhat.com> - 0.2-0.3.5e1faadgit
|
|
|
b6b72a |
- Fixed license tag
|
|
|
b6b72a |
- Updated to new FSF address upstream
|
|
|
b6b72a |
- Removing libgsystem before build
|
|
|
b6b72a |
- Now claiming specific manpages
|
|
|
b6b72a |
- Made the config files noreplace
|
|
|
b6b72a |
- Removed the test assets
|
|
|
b6b72a |
- Put the web assets in a subpackage
|
|
|
b6b72a |
|
|
|
b6b72a |
* Tue Feb 04 2014 Patrick Uiterwijk (LOCAL) <puiterwijk@redhat.com> - 0.2-0.2.5e1faadgit
|
|
|
b6b72a |
- Patch libgsystem out
|