2013-03-20 05:27:32 +00:00
|
|
|
%define version %(cat version)
|
|
|
|
%if 0%{?qubes_builder}
|
|
|
|
%define _builddir %(pwd)
|
|
|
|
%endif
|
|
|
|
|
2015-09-21 14:00:35 +00:00
|
|
|
%{!?python_sitepath: %define python_sitepath %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")}
|
2014-01-10 13:49:36 +00:00
|
|
|
|
2013-03-20 05:27:32 +00:00
|
|
|
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
|
2014-02-07 04:30:47 +00:00
|
|
|
Requires: %{name}-libs
|
2014-01-30 15:31:43 +00:00
|
|
|
Requires: ImageMagick
|
2014-07-08 10:07:38 +00:00
|
|
|
Requires: pycairo
|
2013-03-21 03:45:24 +00:00
|
|
|
BuildRequires: qubes-libvchan-devel
|
2016-09-18 23:26:38 +00:00
|
|
|
BuildRequires: python-setuptools
|
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}
|
2014-02-07 04:30:47 +00:00
|
|
|
Requires: %{name}-libs
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development header and files for qubes-utils
|
|
|
|
|
2014-02-07 04:30:47 +00:00
|
|
|
%package libs
|
|
|
|
Summary: Qubes utils libraries
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
Libraries for qubes-utils
|
|
|
|
|
2013-03-20 05:27:32 +00:00
|
|
|
%prep
|
2014-02-07 04:31:46 +00:00
|
|
|
# we operate on the current directory, so no need to unpack anything
|
|
|
|
# symlink is to generate useful debuginfo packages
|
|
|
|
rm -f %{name}-%{version}
|
|
|
|
ln -sf . %{name}-%{version}
|
|
|
|
%setup -T -D
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
make all
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
2014-01-05 04:32:57 +00:00
|
|
|
%post
|
2014-03-21 01:47:49 +00:00
|
|
|
# dom0
|
|
|
|
/bin/systemctl enable qubes-meminfo-writer-dom0.service > /dev/null 2>&1
|
|
|
|
# VM
|
|
|
|
/bin/systemctl enable qubes-meminfo-writer.service > /dev/null 2>&1
|
2014-01-05 04:32:57 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2014-02-07 04:30:47 +00:00
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
2013-03-20 05:27:32 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2015-11-26 21:18:03 +00:00
|
|
|
/lib/udev/rules.d/99-qubes-*.rules
|
|
|
|
/usr/lib/qubes/udev-*
|
2014-01-05 04:32:57 +00:00
|
|
|
%{_sbindir}/meminfo-writer
|
|
|
|
%{_unitdir}/qubes-meminfo-writer.service
|
|
|
|
%{_unitdir}/qubes-meminfo-writer-dom0.service
|
2015-09-21 14:00:35 +00:00
|
|
|
#%{python_sitearch}/qubes/__init__.py
|
|
|
|
#%{python_sitearch}/qubes/__init__.pyc
|
|
|
|
#%{python_sitearch}/qubes/__init__.pyo
|
|
|
|
%{python_sitepath}/qubesimgconverter/__init__.py*
|
2015-12-17 22:30:21 +00:00
|
|
|
%{python_sitepath}/qubesimgconverter/imggen.py*
|
2015-09-21 14:00:35 +00:00
|
|
|
%{python_sitepath}/qubesimgconverter/test.py*
|
|
|
|
%{python_sitepath}/qubesimgconverter-%{version}-py?.?.egg-info/*
|
2013-03-20 05:27:32 +00:00
|
|
|
|
2014-02-07 04:30:47 +00:00
|
|
|
%files libs
|
2015-10-24 18:33:58 +00:00
|
|
|
%{_libdir}/libqrexec-utils.so.2
|
|
|
|
%{_libdir}/libqubes-rpc-filecopy.so.2
|
2014-02-07 04:30:47 +00:00
|
|
|
|
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
|
2014-02-07 04:29:59 +00:00
|
|
|
%{_libdir}/libqrexec-utils.so
|
|
|
|
%{_libdir}/libqubes-rpc-filecopy.so
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
%changelog
|
|
|
|
|