rpm: plug man pages building into rpm

This commit is contained in:
Marek Marczykowski-Górecki 2017-05-11 20:22:51 +02:00
parent 54d992f727
commit 1b7a58b84b
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -11,6 +11,8 @@ BuildRequires: python2-setuptools
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-sphinx
BuildRequires: python3-dbus
Requires: python3-qubesmgmt Requires: python3-qubesmgmt
BuildArch: noarch BuildArch: noarch
@ -42,6 +44,7 @@ Python3 module qubesmgmt.
%build %build
make -C doc PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} man
%install %install
rm -rf build rm -rf build
@ -49,10 +52,17 @@ rm -rf build
rm -rf build rm -rf build
%make_install PYTHON=%{__python3} %make_install PYTHON=%{__python3}
make -C doc DESTDIR=$RPM_BUILD_ROOT \
PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} \
install
%files %files
%defattr(-,root,root,-)
%doc LICENSE %doc LICENSE
%config /etc/xdg/autostart/qvm-start-gui.desktop %config /etc/xdg/autostart/qvm-start-gui.desktop
%{_mandir}/man1/qvm-*.1*
%{_mandir}/man1/qubes*.1*
%files -n python2-qubesmgmt %files -n python2-qubesmgmt
%{python_sitelib}/qubesmgmt-*egg-info %{python_sitelib}/qubesmgmt-*egg-info