2013-03-20 05:27:32 +00:00
|
|
|
%define version %(cat version)
|
|
|
|
%if 0%{?qubes_builder}
|
|
|
|
%define _builddir %(pwd)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: qubes-utils
|
|
|
|
Version: %{version}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Common Linux files for Qubes Dom0 and VM
|
|
|
|
|
|
|
|
Group: Qubes
|
|
|
|
License: GPL
|
|
|
|
URL: http://www.qubes-os.org
|
|
|
|
|
|
|
|
Requires: udev
|
2013-03-21 03:45:24 +00:00
|
|
|
BuildRequires: qubes-libvchan-devel
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Common Linux files for Qubes Dom0 and VM
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development headers for qubes-utils
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development header and files for qubes-utils
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
make all
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
2014-01-05 04:32:57 +00:00
|
|
|
%post
|
|
|
|
if [ -r /etc/qubes-release ]; then
|
|
|
|
# dom0
|
|
|
|
/bin/systemctl enable qubes-meminfo-writer-dom0.service > /dev/null 2>&1
|
|
|
|
else
|
|
|
|
# VM
|
|
|
|
/bin/systemctl enable qubes-meminfo-writer.service > /dev/null 2>&1
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/bin/systemctl disable qubes-meminfo-writer.service > /dev/null 2>&1
|
|
|
|
/bin/systemctl disable qubes-meminfo-writer.service > /dev/null 2>&1
|
|
|
|
fi
|
|
|
|
|
2013-03-20 05:27:32 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/etc/udev/rules.d/99-qubes-*.rules
|
|
|
|
/usr/libexec/qubes/udev-*
|
2014-01-05 04:32:57 +00:00
|
|
|
%{_sbindir}/meminfo-writer
|
|
|
|
%{_unitdir}/qubes-meminfo-writer.service
|
|
|
|
%{_unitdir}/qubes-meminfo-writer-dom0.service
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/usr/include/libqrexec-utils.h
|
|
|
|
/usr/include/libqubes-rpc-filecopy.h
|
|
|
|
/usr/include/qrexec.h
|
|
|
|
%{_libdir}/libqrexec-utils.a
|
|
|
|
%{_libdir}/libqubes-rpc-filecopy.a
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|