2014-02-05 15:12:48 +00:00
|
|
|
Name: cockpit
|
2014-07-23 10:47:17 +00:00
|
|
|
Version: 0.17
|
2014-07-29 00:56:56 +00:00
|
|
|
Release: 2%{?dist}
|
2014-02-05 15:12:48 +00:00
|
|
|
Summary: A user interface for Linux servers
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://cockpit-project.org/
|
2014-04-15 12:40:14 +00:00
|
|
|
Source0: https://github.com/cockpit-project/cockpit/releases/download/%{version}/cockpit-%{version}.tar.bz2
|
|
|
|
Source1: cockpit.pam
|
2014-02-05 15:12:48 +00:00
|
|
|
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
|
BuildRequires: pkgconfig(gudev-1.0)
|
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
BuildRequires: pkgconfig(udisks2) >= 2.1.0
|
2014-04-03 21:14:05 +00:00
|
|
|
BuildRequires: pkgconfig(libgsystem)
|
2014-02-05 15:12:48 +00:00
|
|
|
BuildRequires: storaged
|
|
|
|
BuildRequires: pkgconfig(libsystemd-daemon)
|
2014-05-14 19:05:03 +00:00
|
|
|
BuildRequires: pkgconfig(polkit-agent-1) >= 0.105
|
2014-02-05 15:12:48 +00:00
|
|
|
BuildRequires: pkgconfig(accountsservice) >= 0.6.35
|
|
|
|
BuildRequires: pam-devel
|
2014-05-14 19:05:03 +00:00
|
|
|
BuildRequires: keyutils-libs-devel
|
2014-02-05 15:12:48 +00:00
|
|
|
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: jsl
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: libssh >= 0.6.0
|
|
|
|
BuildRequires: libssh-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: krb5-devel
|
2014-04-15 12:08:49 +00:00
|
|
|
BuildRequires: perl-JavaScript-Minifier-XS
|
2014-02-05 15:12:48 +00:00
|
|
|
BuildRequires: perl-Locale-PO
|
|
|
|
BuildRequires: perl-JSON
|
2014-04-15 12:08:49 +00:00
|
|
|
BuildRequires: libgsystem-devel
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
BuildRequires: docbook-style-xsl
|
2014-06-12 06:34:36 +00:00
|
|
|
BuildRequires: dbus-devel
|
2014-02-05 15:12:48 +00:00
|
|
|
|
2014-07-23 10:47:17 +00:00
|
|
|
# For selinux
|
|
|
|
BuildRequires: selinux-policy-devel
|
|
|
|
BuildRequires: checkpolicy
|
|
|
|
BuildRequires: /usr/share/selinux/devel/policyhelp
|
|
|
|
|
2014-02-05 15:12:48 +00:00
|
|
|
Requires: dbus
|
|
|
|
Requires: glib-networking
|
|
|
|
Requires: realmd
|
|
|
|
Requires: udisks2 >= 2.1.0
|
|
|
|
Requires: mdadm
|
|
|
|
Requires: lvm2
|
2014-05-21 13:28:13 +00:00
|
|
|
Requires: storaged
|
2014-02-05 15:12:48 +00:00
|
|
|
|
|
|
|
Requires: cockpit-assets
|
2014-07-23 10:47:17 +00:00
|
|
|
Requires: cockpit-selinux-policy
|
2014-02-05 15:12:48 +00:00
|
|
|
|
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
Cockpit runs in a browser and can manage your network of GNU/Linux
|
|
|
|
machines.
|
|
|
|
|
|
|
|
|
|
|
|
%package assets
|
|
|
|
Summary: Web assets for Cockpit
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description assets
|
|
|
|
This package contains the web assets used by Cockpit.
|
|
|
|
|
2014-07-23 10:47:17 +00:00
|
|
|
%package selinux-policy
|
|
|
|
Summary: SELinux policy for Cockpit testing
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: selinux-policy
|
|
|
|
Requires: selinux-policy-targeted
|
|
|
|
Requires(post): /usr/sbin/semodule, /sbin/restorecon, /sbin/fixfiles
|
|
|
|
Requires(postun): /usr/sbin/semodule, /sbin/restorecon, /sbin/fixfiles
|
|
|
|
|
|
|
|
%description selinux-policy
|
|
|
|
SELinux policy for Cockpit testing.
|
2014-02-05 15:12:48 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
rm -rf src/libgsystem/*.{c,doap}
|
|
|
|
|
|
|
|
%build
|
2014-07-17 07:02:35 +00:00
|
|
|
%configure --disable-static --disable-silent-rules --with-cockpit-user=cockpit-ws
|
2014-07-23 10:47:17 +00:00
|
|
|
make %{?_smp_mflags} all selinux
|
2014-02-05 15:12:48 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
# The check doesnt run on koji as it requires network
|
|
|
|
#make check
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2014-03-28 15:11:49 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
|
|
|
|
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/cockpit
|
2014-07-23 10:47:17 +00:00
|
|
|
install -d %{buildroot}%{_datadir}/selinux/targeted
|
|
|
|
install -p -m 644 cockpit.pp %{buildroot}%{_datadir}/selinux/targeted/
|
2014-02-05 15:12:48 +00:00
|
|
|
rm -f %{buildroot}/%{_libdir}/cockpit/*.so
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/dbus-1/system.d/com.redhat.Cockpit.DBusTests.Test.conf
|
|
|
|
rm -f %{buildroot}%{_unitdir}/cockpit-testing.service
|
2014-04-03 21:14:05 +00:00
|
|
|
rm -f %{buildroot}%{_unitdir}/cockpit-testing.socket
|
2014-02-05 15:12:48 +00:00
|
|
|
rm -f %{buildroot}%{_unitdir}/test-server.service
|
|
|
|
rm -f %{buildroot}%{_unitdir}/test-server.socket
|
|
|
|
rm -rf %{buildroot}%{_datadir}/cockpit-test-assets
|
|
|
|
|
|
|
|
%files
|
2014-03-28 15:11:49 +00:00
|
|
|
%doc AUTHORS COPYING README.md
|
2014-02-05 15:12:48 +00:00
|
|
|
%doc %{_mandir}/man5/cockpit.conf.5.gz
|
|
|
|
%doc %{_mandir}/man8/cockpit-ws.8.gz
|
|
|
|
%doc %{_mandir}/man8/cockpitd.8.gz
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}
|
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/cockpit
|
|
|
|
%{_unitdir}/cockpit.service
|
2014-04-03 21:14:05 +00:00
|
|
|
%{_unitdir}/cockpit.socket
|
2014-06-30 08:04:11 +00:00
|
|
|
%{_prefix}/lib/firewalld/services/cockpit.xml
|
2014-05-21 13:28:13 +00:00
|
|
|
%{_datadir}/dbus-1/services/com.redhat.Cockpit.service
|
2014-07-17 07:02:35 +00:00
|
|
|
%{_sbindir}/remotectl
|
2014-02-05 15:12:48 +00:00
|
|
|
%{_libexecdir}/cockpitd
|
|
|
|
%{_libexecdir}/cockpit-ws
|
|
|
|
%{_libexecdir}/cockpit-agent
|
2014-05-23 14:03:13 +00:00
|
|
|
# HACK: We need to do attr because stripping debuginfo removes setuid
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=117858
|
|
|
|
%attr(4755, -, -) %{_libexecdir}/cockpit-polkit
|
2014-07-17 07:02:35 +00:00
|
|
|
%attr(4750, root, cockpit-ws) %{_libexecdir}/cockpit-session
|
2014-05-14 19:05:03 +00:00
|
|
|
%{_libdir}/security/pam_reauthorize.so
|
2014-07-17 07:02:35 +00:00
|
|
|
%attr(775, -, wheel) %{_sharedstatedir}/%{name}
|
2014-02-05 15:12:48 +00:00
|
|
|
|
|
|
|
%files assets
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
2014-07-23 10:47:17 +00:00
|
|
|
%files selinux-policy
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%{_datadir}/selinux/targeted/cockpit.pp
|
|
|
|
|
2014-07-17 07:02:35 +00:00
|
|
|
%pre
|
|
|
|
getent group cockpit-ws >/dev/null || groupadd -r cockpit-ws
|
|
|
|
getent group cockpit-user-admin >/dev/null || groupadd -r cockpit-user-admin
|
|
|
|
getent group cockpit-realm-admin >/dev/null || groupadd -r cockpit-realm-admin
|
|
|
|
getent group cockpit-storage-admin >/dev/null || groupadd -r cockpit-storage-admin
|
|
|
|
getent passwd cockpit-ws >/dev/null || useradd -r -g cockpit-ws -d / -s /sbin/nologin -c "User for cockpit-ws" cockpit-ws
|
|
|
|
|
2014-02-05 15:12:48 +00:00
|
|
|
%post
|
2014-07-22 09:54:20 +00:00
|
|
|
%systemd_post cockpit.socket
|
2014-06-30 08:04:11 +00:00
|
|
|
# firewalld only partially picks up changes to its services files without this
|
|
|
|
test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true
|
2014-02-05 15:12:48 +00:00
|
|
|
|
|
|
|
%preun
|
2014-07-22 09:54:20 +00:00
|
|
|
%systemd_preun cockpit.socket
|
2014-02-05 15:12:48 +00:00
|
|
|
|
|
|
|
%postun
|
2014-07-22 09:54:20 +00:00
|
|
|
%systemd_postun_with_restart cockpit.socket
|
2014-02-05 15:12:48 +00:00
|
|
|
|
2014-07-23 10:47:17 +00:00
|
|
|
%post selinux-policy
|
|
|
|
/usr/sbin/semodule -s targeted -i %{_datadir}/selinux/targeted/cockpit.pp &> /dev/null || :
|
|
|
|
/sbin/fixfiles -R cockpit restore || :
|
|
|
|
/sbin/restorecon -R %{_sharedstatedir}/%{name} || :
|
|
|
|
|
|
|
|
%postun selinux-policy
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
/usr/sbin/semodule -s targeted -r cockpit &> /dev/null || :
|
|
|
|
/sbin/fixfiles -R cockpit-selinux-policy restore || :
|
|
|
|
[ -d %{_sharedstatedir}/%{name} ] && \
|
|
|
|
/sbin/restorecon -R %{_sharedstatedir}/%{name} &> /dev/null || :
|
|
|
|
fi
|
2014-02-05 15:12:48 +00:00
|
|
|
|
|
|
|
%changelog
|
2014-07-29 00:56:56 +00:00
|
|
|
* Mon Jul 28 2014 Colin Walters <walters@verbum.org> 0.17-2
|
|
|
|
- Drop Requires and references to dead test-assets subpackage
|
|
|
|
|
2014-07-23 10:47:17 +00:00
|
|
|
* Thu Jul 24 2014 Stef Walter <stefw@redhat.com> 0.17-1
|
|
|
|
- Update to 0.17 release
|
|
|
|
|
2014-07-23 10:47:17 +00:00
|
|
|
* Wed Jul 23 2014 Stef Walter <stefw@redhat.com> 0.16-3
|
|
|
|
- Distribute our own selinux policy rhbz#1110758
|
|
|
|
|
2014-07-22 09:54:20 +00:00
|
|
|
* Tue Jul 22 2014 Stef Walter <stefw@redhat.com> 0.16-2
|
|
|
|
- Refer to cockpit.socket in scriptlets rhbz#1110764
|
|
|
|
|
2014-07-17 07:02:35 +00:00
|
|
|
* Thu Jul 17 2014 Stef Walter <stefw@redhat.com> 0.16-1
|
|
|
|
- Update to 0.16 release
|
|
|
|
|
2014-07-10 07:33:34 +00:00
|
|
|
* Thu Jul 10 2014 Stef Walter <stefw@redhat.com> 0.15-1
|
|
|
|
- Update to 0.15 release
|
|
|
|
- Put pam_reauthorize.so in the cockpit PAM stack
|
|
|
|
|
2014-07-03 08:48:52 +00:00
|
|
|
* Thu Jul 03 2014 Stef Walter <stefw@redhat.com> 0.14-1
|
|
|
|
- Update to 0.14 release
|
|
|
|
|
2014-06-30 08:04:11 +00:00
|
|
|
* Mon Jun 30 2014 Stef Walter <stefw@redhat.com> 0.13-1
|
|
|
|
- Update to 0.13 release
|
|
|
|
|
2014-06-24 14:34:17 +00:00
|
|
|
* Tue Jun 24 2014 Stef Walter <stefw@redhat.com> 0.12-1
|
|
|
|
- Update to upstream 0.12 release
|
|
|
|
|
2014-06-20 08:27:20 +00:00
|
|
|
* Fri Jun 20 2014 Stef Walter <stefw@redhat.com> 0.11-1
|
|
|
|
- Update to upstream 0.11 release
|
|
|
|
|
2014-06-12 06:34:36 +00:00
|
|
|
* Thu Jun 12 2014 Stef Walter <stefw@redhat.com> 0.10-1
|
|
|
|
- Update to upstream 0.10 release
|
|
|
|
|
2014-06-07 05:17:34 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-23 14:03:13 +00:00
|
|
|
* Fri May 23 2014 Stef Walter <stefw@redhat.com> 0.9-1
|
|
|
|
- Update to upstream 0.9 release
|
|
|
|
- Fix file attribute for cockpit-polkit
|
|
|
|
|
2014-05-21 13:28:13 +00:00
|
|
|
* Wed May 21 2014 Stef Walter <stefw@redhat.com> 0.8-1
|
|
|
|
- Update to upstream 0.8 release
|
|
|
|
- cockpitd now runs as a user session DBus service
|
|
|
|
|
2014-05-19 07:41:05 +00:00
|
|
|
* Mon May 19 2014 Stef Walter <stefw@redhat.com> 0.7-1
|
|
|
|
- Update to upstream 0.7 release
|
|
|
|
|
2014-05-14 19:11:08 +00:00
|
|
|
* Wed May 14 2014 Stef Walter <stefw@redhat.com> 0.6-1
|
|
|
|
- Update to upstream 0.6 release
|
|
|
|
|
2014-04-15 12:08:49 +00:00
|
|
|
* Tue Apr 15 2014 Stef Walter <stefw@redhat.com> 0.5-1
|
|
|
|
- Update to upstream 0.5 release
|
|
|
|
|
2014-04-03 21:14:05 +00:00
|
|
|
* Thu Apr 03 2014 Stef Walter <stefw@redhat.com> 0.4-1
|
|
|
|
- Update to upstream 0.4 release
|
|
|
|
- Lots of packaging cleanup and polish
|
|
|
|
|
2014-03-28 15:11:49 +00:00
|
|
|
* Fri Mar 28 2014 Stef Walter <stefw@redhat.com> 0.3-1
|
|
|
|
- Update to upstream 0.3 release
|
|
|
|
|
2014-02-05 15:12:48 +00:00
|
|
|
* Wed Feb 05 2014 Patrick Uiterwijk (LOCAL) <puiterwijk@redhat.com> - 0.2-0.4.20140204git5e1faad
|
|
|
|
- Redid the release tag
|
|
|
|
|
|
|
|
* Tue Feb 04 2014 Patrick Uiterwijk (LOCAL) <puiterwijk@redhat.com> - 0.2-0.3.5e1faadgit
|
|
|
|
- Fixed license tag
|
|
|
|
- Updated to new FSF address upstream
|
|
|
|
- Removing libgsystem before build
|
|
|
|
- Now claiming specific manpages
|
|
|
|
- Made the config files noreplace
|
|
|
|
- Removed the test assets
|
|
|
|
- Put the web assets in a subpackage
|
|
|
|
|
|
|
|
* Tue Feb 04 2014 Patrick Uiterwijk (LOCAL) <puiterwijk@redhat.com> - 0.2-0.2.5e1faadgit
|
|
|
|
- Patch libgsystem out
|
|
|
|
|