cockpit/cockpit.spec
Patrick Uiterwijk a56b4c114e Initial import
2014-02-05 16:12:48 +01:00

152 lines
4.0 KiB
RPMSpec

%global gitrev 5e1faad
%global gitdate 20140204
Name: cockpit
Version: 0.2
Release: 0.4.%{gitdate}git%{gitrev}%{?dist}
Summary: A user interface for Linux servers
License: LGPLv2+
URL: http://cockpit-project.org/
# To generate: make a checkout, and execute
# git submodule init
# git submodule update
# ./test/git-archive-all cockpit-%%{version} %%{gitrev} | gzip -c -9 > cockpit-%%{gitrev}.tar.gz
Source0: cockpit-%{gitrev}.tar.gz
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
BuildRequires: storaged
BuildRequires: pkgconfig(libnm-glib)
BuildRequires: pkgconfig(libsystemd-daemon)
BuildRequires: pkgconfig(accountsservice) >= 0.6.35
BuildRequires: pam-devel
BuildRequires: autoconf automake libtool
BuildRequires: intltool
BuildRequires: jsl
BuildRequires: python-scss
BuildRequires: gtk-doc
BuildRequires: libssh >= 0.6.0
BuildRequires: libssh-devel
BuildRequires: openssl-devel
BuildRequires: zlib-devel
BuildRequires: krb5-devel
BuildRequires: perl-Locale-PO
BuildRequires: perl-JSON
# Used during make check
#BuildRequires: sshpass
Requires: dbus
Requires: glib-networking
Requires: realmd
Requires: udisks2 >= 2.1.0
Requires: mdadm
Requires: lvm2
Requires: sshpass
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}
NOCONFIGURE=1 ./autogen.sh
%build
%configure --disable-static --disable-silent-rules
#--disable-maintainer-mode
make %{?_smp_mflags}
%check
# The check doesnt run on koji as it requires network
#make check
%install
%make_install
find %{buildroot} -name '*.la' -delete
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
rm -f %{buildroot}%{_unitdir}/cockpit-ws-testing.service
rm -f %{buildroot}%{_unitdir}/cockpit-ws-testing.socket
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 HACKING README
%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-ws.service
%{_unitdir}/cockpit-ws.socket
%{_unitdir}/cockpit.service
%{_datadir}/dbus-1/system-services/com.redhat.Cockpit.service
%{_libexecdir}/cockpitd
%{_libexecdir}/cockpit-ws
%{_libexecdir}/cockpit-session
%{_libexecdir}/cockpit-agent
%{_libdir}/%{name}
%{_sharedstatedir}/%{name}
%files assets
%{_datadir}/%{name}
%post
%systemd_post cockpit-ws.service
%systemd_post cockpit.service
%preun
%systemd_preun cockpit-ws.service
%systemd_preun cockpit.service
%postun
%systemd_postun_with_restart cockpit-ws.service
%systemd_postun_with_restart cockpit.service
%changelog
* 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