cockpit/cockpit.spec

158 lines
4.3 KiB
RPMSpec
Raw Normal View History

2014-02-05 15:12:48 +00:00
Name: cockpit
Version: 0.6
Release: 1%{?dist}
2014-02-05 15:12:48 +00:00
Summary: A user interface for Linux servers
License: LGPLv2+
URL: http://cockpit-project.org/
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(libnm-glib)
BuildRequires: pkgconfig(libsystemd-daemon)
BuildRequires: pkgconfig(polkit-agent-1) >= 0.105
2014-02-05 15:12:48 +00:00
BuildRequires: pkgconfig(accountsservice) >= 0.6.35
BuildRequires: pam-devel
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-02-05 15:12:48 +00:00
Requires: dbus
Requires: glib-networking
Requires: realmd
Requires: udisks2 >= 2.1.0
Requires: mdadm
Requires: lvm2
Requires: cockpit-assets
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.
%prep
%setup -q
rm -rf src/libgsystem/*.{c,doap}
%build
%configure --disable-static --disable-silent-rules
make %{?_smp_mflags}
%check
# The check doesnt run on koji as it requires network
#make check
%install
%make_install
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/cockpit
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
2014-04-03 21:14:05 +00:00
rm -f %{buildroot}%{_unitdir}/cockpitd-testing.service
2014-02-05 15:12:48 +00:00
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
%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}/dbus-1/system.d/com.redhat.Cockpit.conf
%config(noreplace) %{_sysconfdir}/pam.d/cockpit
%{_unitdir}/cockpit.service
2014-04-03 21:14:05 +00:00
%{_unitdir}/cockpit.socket
%{_unitdir}/cockpitd.service
2014-02-05 15:12:48 +00:00
%{_datadir}/dbus-1/system-services/com.redhat.Cockpit.service
%{_libexecdir}/cockpitd
%{_libexecdir}/cockpit-ws
%{_libexecdir}/cockpit-session
%{_libexecdir}/cockpit-agent
%{_libexecdir}/cockpit-polkit
%{_libdir}/security/pam_reauthorize.so
2014-02-05 15:12:48 +00:00
%{_sharedstatedir}/%{name}
%files assets
%{_datadir}/%{name}
%post
2014-04-03 21:14:05 +00:00
%systemd_post cockpitd.service
2014-02-05 15:12:48 +00:00
%systemd_post cockpit.service
%preun
2014-04-03 21:14:05 +00:00
%systemd_preun cockpitd.service
2014-02-05 15:12:48 +00:00
%systemd_preun cockpit.service
%postun
2014-04-03 21:14:05 +00:00
%systemd_postun_with_restart cockpitd.service
2014-02-05 15:12:48 +00:00
%systemd_postun_with_restart cockpit.service
%changelog
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
* 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