rpm: preparation for src.rpm building

QubesOS/qubes-issues#1508

(cherry picked from commit 84c9ae4bf1)
pull/35/head
Marek Marczykowski-Górecki 8 years ago committed by Frédéric Pierret
parent 782e8b7a14
commit cb63ab7616
No known key found for this signature in database
GPG Key ID: 1DABC232BE02201E

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

@ -19,16 +19,14 @@
# 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.
%global debug_package %{nil}
Name: qubes-kernel-vm-support
Version: %{version}
Version: @VERSION@
Release: 1%{?dist}
Summary: Qubes VM kernel and initramfs modules
Source0: qubes-utils-%{version}.tar.gz
Group: Qubes
Vendor: Invisible Things Lab
@ -39,7 +37,9 @@ Requires: dracut
Requires: dkms
Requires: busybox
%if 0%{?qubes_builder}
%define _builddir %(pwd)
%endif
%description
This package contains:
@ -51,11 +51,7 @@ initrd is provided by dom0.
libvchan library.
%prep
# we operate on the current directory, so no need to unpack anything
# symlink is to generate useful debuginfo packages
rm -f %{name}-%{version}
ln -sf . %{name}-%{version}
%setup -T -D
%setup -q -n qubes-utils-%{version}
%build

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