qubes-linux-utils/rpm_spec/qubes-utils.spec.in

160 lines
3.7 KiB
RPMSpec
Raw Normal View History

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
2014-01-30 15:31:43 +00:00
Requires: ImageMagick
%if 0%{?rhel} >= 7
Requires: python34-qubesimgconverter
%else
Requires: python3-qubesimgconverter
%endif
%{?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
2017-09-28 12:31:21 +00:00
%if 0%{?rhel} >= 7
BuildRequires: python34-setuptools
%else
BuildRequires: python3-setuptools
%endif
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
%description
Common Linux files for Qubes Dom0 and VM
%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
Requires: python2-pillow
Requires: python2-numpy
2018-02-22 14:03:20 +00:00
%endif
%description -n python2-qubesimgconverter
Python package qubesimgconverter
2017-09-28 12:31:21 +00:00
%if 0%{?rhel} >= 7
%package -n python34-qubesimgconverter
Summary: Python package qubesimgconverter
2017-09-28 12:31:21 +00:00
Requires: python34
Requires: python34-cairo
Requires: python34-pillow
Requires: python34-numpy
%description -n python34-qubesimgconverter
Python package qubesimgconverter
2017-09-28 12:31:21 +00:00
%else
%package -n python3-qubesimgconverter
Summary: Python package qubesimgconverter
Requires: python3
Requires: python3-cairo
Requires: python3-pillow
Requires: python3-numpy
%description -n python3-qubesimgconverter
Python package qubesimgconverter
%endif
%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
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
%{python_sitelib}/qubesimgconverter/__init__.py*
%{python_sitelib}/qubesimgconverter/imggen.py*
%{python_sitelib}/qubesimgconverter/test.py*
%{python_sitelib}/qubesimgconverter/test_integ.py*
%{python_sitelib}/qubesimgconverter-%{version}-py?.?.egg-info
%if 0%{?rhel} >= 7
%files -n python34-qubesimgconverter
%else
%files -n python3-qubesimgconverter
%endif
%{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
2014-02-07 04:29:59 +00:00
%{_libdir}/libqrexec-utils.so
%{_libdir}/libqubes-rpc-filecopy.so
%changelog
2018-04-03 19:29:52 +00:00
@CHANGELOG@