rpm: preparation for src.rpm building

QubesOS/qubes-issues#1508

(cherry picked from commit 84c9ae4bf1)
This commit is contained in:
Marek Marczykowski-Górecki 2016-01-30 11:18:33 +01:00 committed by Frédéric Pierret
parent 782e8b7a14
commit cb63ab7616
No known key found for this signature in database
GPG Key ID: 1DABC232BE02201E
3 changed files with 10 additions and 18 deletions

View File

@ -1,3 +1,4 @@
RPM_SPEC_FILES := rpm_spec/qubes-utils.spec rpm_spec/qubes-kernel-vm-support.spec RPM_SPEC_FILES := rpm_spec/qubes-utils.spec rpm_spec/qubes-kernel-vm-support.spec
RPM_USE_MOCKBUILD := 1
ARCH_BUILD_DIRS := archlinux ARCH_BUILD_DIRS := archlinux
DEBIAN_BUILD_DIRS := debian DEBIAN_BUILD_DIRS := debian

View File

@ -19,16 +19,14 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# #
%{!?version: %define version %(cat version)}
# Package contains /usr/lib, but not binary files, which confuses find-debuginfo.sh script. # Package contains /usr/lib, but not binary files, which confuses find-debuginfo.sh script.
%global debug_package %{nil} %global debug_package %{nil}
Name: qubes-kernel-vm-support Name: qubes-kernel-vm-support
Version: %{version} Version: @VERSION@
Release: 1%{?dist} Release: 1%{?dist}
Summary: Qubes VM kernel and initramfs modules Summary: Qubes VM kernel and initramfs modules
Source0: qubes-utils-%{version}.tar.gz
Group: Qubes Group: Qubes
Vendor: Invisible Things Lab Vendor: Invisible Things Lab
@ -39,7 +37,9 @@ Requires: dracut
Requires: dkms Requires: dkms
Requires: busybox Requires: busybox
%if 0%{?qubes_builder}
%define _builddir %(pwd) %define _builddir %(pwd)
%endif
%description %description
This package contains: This package contains:
@ -51,11 +51,7 @@ initrd is provided by dom0.
libvchan library. libvchan library.
%prep %prep
# we operate on the current directory, so no need to unpack anything %setup -q -n qubes-utils-%{version}
# symlink is to generate useful debuginfo packages
rm -f %{name}-%{version}
ln -sf . %{name}-%{version}
%setup -T -D
%build %build

View File

@ -1,4 +1,3 @@
%define version %(cat version)
%if 0%{?qubes_builder} %if 0%{?qubes_builder}
%define _builddir %(pwd) %define _builddir %(pwd)
%endif %endif
@ -6,9 +5,10 @@
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: qubes-utils Name: qubes-utils
Version: %{version} Version: @VERSION@
Release: 1%{?dist} Release: 1%{?dist}
Summary: Common Linux files for Qubes Dom0 and VM Summary: Common Linux files for Qubes Dom0 and VM
Source0: %{name}-%{version}.tar.gz
Group: Qubes Group: Qubes
License: GPL License: GPL
@ -41,15 +41,10 @@ Release: 1%{?dist}
Libraries for qubes-utils Libraries for qubes-utils
%prep %prep
# we operate on the current directory, so no need to unpack anything %setup -q
# symlink is to generate useful debuginfo packages
rm -f %{name}-%{version}
ln -sf . %{name}-%{version}
%setup -T -D
%build %build
make all make all BACKEND_VMM=@BACKEND_VMM@
%install %install
make install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}