2013-03-20 05:27:32 +00:00
|
|
|
Name: qubes-utils
|
2016-01-30 10:18:33 +00:00
|
|
|
Version: @VERSION@
|
2013-03-20 05:27:32 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Common Linux files for Qubes Dom0 and VM
|
2016-01-30 10:18:33 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
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
|
2019-06-04 21:59:12 +00:00
|
|
|
Requires: python%{python3_pkgversion}-qubesimgconverter
|
2018-05-01 14:07:16 +00:00
|
|
|
%{?systemd_requires}
|
|
|
|
BuildRequires: systemd
|
2013-03-21 03:45:24 +00:00
|
|
|
BuildRequires: qubes-libvchan-devel
|
2016-09-18 23:26:38 +00:00
|
|
|
BuildRequires: python-setuptools
|
2019-06-04 21:59:12 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
2017-05-17 23:23:23 +00:00
|
|
|
BuildRequires: python2-rpm-macros
|
|
|
|
BuildRequires: python3-rpm-macros
|
2017-04-10 08:47:48 +00:00
|
|
|
# for meminfo-writer
|
|
|
|
BuildRequires: xen-devel
|
2018-10-02 18:53:08 +00:00
|
|
|
BuildRequires: gcc
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Common Linux files for Qubes Dom0 and VM
|
|
|
|
|
2017-05-17 13:19:01 +00:00
|
|
|
%package -n python2-qubesimgconverter
|
|
|
|
Summary: Python package qubesimgconverter
|
|
|
|
Requires: python
|
|
|
|
Requires: pycairo
|
2018-02-22 14:03:20 +00:00
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
Requires: python-pillow
|
|
|
|
Requires: numpy
|
|
|
|
%else
|
2017-11-08 16:40:55 +00:00
|
|
|
Requires: python2-pillow
|
|
|
|
Requires: python2-numpy
|
2018-02-22 14:03:20 +00:00
|
|
|
%endif
|
2017-05-17 13:19:01 +00:00
|
|
|
|
|
|
|
%description -n python2-qubesimgconverter
|
|
|
|
Python package qubesimgconverter
|
|
|
|
|
2019-06-04 21:59:12 +00:00
|
|
|
%package -n python%{python3_pkgversion}-qubesimgconverter
|
2017-10-15 17:01:50 +00:00
|
|
|
Summary: Python package qubesimgconverter
|
2019-06-04 21:59:12 +00:00
|
|
|
Requires: python%{python3_pkgversion}
|
|
|
|
Requires: python%{python3_pkgversion}-cairo
|
|
|
|
Requires: python%{python3_pkgversion}-pillow
|
|
|
|
Requires: python%{python3_pkgversion}-numpy
|
2017-10-15 17:01:50 +00:00
|
|
|
|
2019-06-04 21:59:12 +00:00
|
|
|
%description -n python%{python3_pkgversion}-qubesimgconverter
|
2017-10-15 17:01:50 +00:00
|
|
|
Python package qubesimgconverter
|
2017-05-17 13:19:01 +00:00
|
|
|
|
2013-03-20 05:27:32 +00:00
|
|
|
%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
|
2016-01-30 10:18:33 +00:00
|
|
|
%setup -q
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
%build
|
2018-10-02 18:53:08 +00:00
|
|
|
export PYTHON=%{__python2}
|
2016-01-30 10:18:33 +00:00
|
|
|
make all BACKEND_VMM=@BACKEND_VMM@
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
%install
|
2017-05-17 13:19:01 +00:00
|
|
|
make install DESTDIR=%{buildroot} PYTHON=%{__python2}
|
|
|
|
rm -rf imgconverter/build
|
|
|
|
%make_install -C imgconverter PYTHON=%{__python3}
|
2013-03-20 05:27:32 +00:00
|
|
|
|
2014-01-05 04:32:57 +00:00
|
|
|
%post
|
2014-03-21 01:47:49 +00:00
|
|
|
# dom0
|
2018-05-01 14:07:16 +00:00
|
|
|
%systemd_post qubes-meminfo-writer-dom0.service
|
2014-03-21 01:47:49 +00:00
|
|
|
# VM
|
2018-05-01 14:07:16 +00:00
|
|
|
%systemd_post qubes-meminfo-writer.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun qubes-meminfo-writer-dom0.service
|
|
|
|
%systemd_preun qubes-meminfo-writer.service
|
2014-01-05 04:32:57 +00:00
|
|
|
|
|
|
|
%postun
|
2018-05-01 14:07:16 +00:00
|
|
|
%systemd_postun_with_restart qubes-meminfo-writer-dom0.service
|
|
|
|
%systemd_postun_with_restart qubes-meminfo-writer.service
|
2014-01-05 04:32:57 +00:00
|
|
|
|
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,-)
|
2018-06-13 13:48:00 +00:00
|
|
|
/lib/udev/rules.d/*-qubes-*.rules
|
2015-11-26 21:18:03 +00:00
|
|
|
/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
|
2017-05-17 13:19:01 +00:00
|
|
|
|
|
|
|
%files -n python2-qubesimgconverter
|
2018-10-02 18:53:08 +00:00
|
|
|
%{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
|
2017-05-17 13:19:01 +00:00
|
|
|
|
2019-06-04 21:59:12 +00:00
|
|
|
%files -n python%{python3_pkgversion}-qubesimgconverter
|
2017-05-17 13:19:01 +00:00
|
|
|
%{python3_sitelib}/qubesimgconverter/__init__.py
|
|
|
|
%{python3_sitelib}/qubesimgconverter/imggen.py
|
|
|
|
%{python3_sitelib}/qubesimgconverter/test.py
|
2017-12-22 02:53:03 +00:00
|
|
|
%{python3_sitelib}/qubesimgconverter/test_integ.py
|
|
|
|
%{python3_sitelib}/qubesimgconverter-%{version}-py?.?.egg-info
|
2017-05-17 13:19:01 +00:00
|
|
|
%{python3_sitelib}/qubesimgconverter/__pycache__
|
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
|
2018-04-03 19:29:52 +00:00
|
|
|
@CHANGELOG@
|