ff7f65858e
Name python2 explicitly in the dependencies, since Fedora 31 has python3
by default.
QubesOS/qubes-issues#5289
(cherry picked from commit ba6be8d8be
)
138 lines
3.4 KiB
RPMSpec
138 lines
3.4 KiB
RPMSpec
Name: qubes-utils
|
|
Version: @VERSION@
|
|
Release: 1%{?dist}
|
|
Summary: Common Linux files for Qubes Dom0 and VM
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
Group: Qubes
|
|
License: GPL
|
|
URL: http://www.qubes-os.org
|
|
|
|
Requires: udev
|
|
Requires: %{name}-libs
|
|
Requires: ImageMagick
|
|
Requires: python%{python3_pkgversion}-qubesimgconverter
|
|
%{?systemd_requires}
|
|
BuildRequires: systemd
|
|
BuildRequires: qubes-libvchan-devel
|
|
BuildRequires: python2-setuptools
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
BuildRequires: python2-rpm-macros
|
|
BuildRequires: python3-rpm-macros
|
|
# for meminfo-writer
|
|
BuildRequires: xen-devel
|
|
BuildRequires: gcc
|
|
|
|
%description
|
|
Common Linux files for Qubes Dom0 and VM
|
|
|
|
%package -n python2-qubesimgconverter
|
|
Summary: Python package qubesimgconverter
|
|
Requires: python2
|
|
Requires: pycairo
|
|
%if 0%{?rhel} >= 7
|
|
Requires: python-pillow
|
|
Requires: numpy
|
|
%else
|
|
Requires: python2-pillow
|
|
Requires: python2-numpy
|
|
%endif
|
|
|
|
%description -n python2-qubesimgconverter
|
|
Python package qubesimgconverter
|
|
|
|
%package -n python%{python3_pkgversion}-qubesimgconverter
|
|
Summary: Python package qubesimgconverter
|
|
Requires: python%{python3_pkgversion}
|
|
Requires: python%{python3_pkgversion}-cairo
|
|
Requires: python%{python3_pkgversion}-pillow
|
|
Requires: python%{python3_pkgversion}-numpy
|
|
|
|
%description -n python%{python3_pkgversion}-qubesimgconverter
|
|
Python package qubesimgconverter
|
|
|
|
%package devel
|
|
Summary: Development headers for qubes-utils
|
|
Release: 1%{?dist}
|
|
Requires: %{name}-libs
|
|
|
|
%description devel
|
|
Development header and files for qubes-utils
|
|
|
|
%package libs
|
|
Summary: Qubes utils libraries
|
|
Release: 1%{?dist}
|
|
|
|
%description libs
|
|
Libraries for qubes-utils
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export PYTHON=%{__python2}
|
|
make all BACKEND_VMM=@BACKEND_VMM@
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot} PYTHON=%{__python2}
|
|
rm -rf imgconverter/build
|
|
%make_install -C imgconverter PYTHON=%{__python3}
|
|
|
|
%post
|
|
# dom0
|
|
%systemd_post qubes-meminfo-writer-dom0.service
|
|
# VM
|
|
%systemd_post qubes-meminfo-writer.service
|
|
|
|
%preun
|
|
%systemd_preun qubes-meminfo-writer-dom0.service
|
|
%systemd_preun qubes-meminfo-writer.service
|
|
|
|
%postun
|
|
%systemd_postun_with_restart qubes-meminfo-writer-dom0.service
|
|
%systemd_postun_with_restart qubes-meminfo-writer.service
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
/lib/udev/rules.d/*-qubes-*.rules
|
|
/usr/lib/qubes/udev-*
|
|
%{_sbindir}/meminfo-writer
|
|
%{_unitdir}/qubes-meminfo-writer.service
|
|
%{_unitdir}/qubes-meminfo-writer-dom0.service
|
|
|
|
%files -n python2-qubesimgconverter
|
|
%{python2_sitelib}/qubesimgconverter/__init__.py*
|
|
%{python2_sitelib}/qubesimgconverter/imggen.py*
|
|
%{python2_sitelib}/qubesimgconverter/test.py*
|
|
%{python2_sitelib}/qubesimgconverter/test_integ.py*
|
|
%{python2_sitelib}/qubesimgconverter-%{version}-py?.?.egg-info
|
|
|
|
%files -n python%{python3_pkgversion}-qubesimgconverter
|
|
%{python3_sitelib}/qubesimgconverter/__init__.py
|
|
%{python3_sitelib}/qubesimgconverter/imggen.py
|
|
%{python3_sitelib}/qubesimgconverter/test.py
|
|
%{python3_sitelib}/qubesimgconverter/test_integ.py
|
|
%{python3_sitelib}/qubesimgconverter-%{version}-py?.?.egg-info
|
|
%{python3_sitelib}/qubesimgconverter/__pycache__
|
|
|
|
%files libs
|
|
%{_libdir}/libqrexec-utils.so.2
|
|
%{_libdir}/libqubes-rpc-filecopy.so.2
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
/usr/include/libqrexec-utils.h
|
|
/usr/include/libqubes-rpc-filecopy.h
|
|
/usr/include/qrexec.h
|
|
%{_libdir}/libqrexec-utils.so
|
|
%{_libdir}/libqubes-rpc-filecopy.so
|
|
|
|
%changelog
|
|
@CHANGELOG@
|