Support Mock based build

pull/22/head
Frédéric Pierret 6 years ago
parent 92923cc453
commit bd0e0d5659
No known key found for this signature in database
GPG Key ID: 1DABC232BE02201E

@ -12,10 +12,22 @@ RPM_SPEC_FILES.dom0 := \
ifeq ($(ISO_LIVEUSB),1)
RPM_SPEC_FILES.dom0 += \
livecd-tools/livecd-tools.spec \
live/qubes-live.spec
live/qubes-live.spec
endif
RPM_SPEC_FILES := $(RPM_SPEC_FILES.$(PACKAGE_SET))
SOURCE_COPY_IN := $(RPM_SPEC_FILES.dom0)
$(RPM_SPEC_FILES.dom0): SPEC=$(notdir $@)
$(RPM_SPEC_FILES.dom0): PACKAGE=$(dir $@)
$(RPM_SPEC_FILES.dom0): SOURCE_ARCHIVE_NAME=$(notdir $(shell $(RPM_PLUGIN_DIR)/tools/spectool --list-files --source 0 $(CHROOT_DIR)/$(DIST_SRC)/$(PACKAGE)/$(SPEC) | cut -d' ' -f2))
$(RPM_SPEC_FILES.dom0):
# Create the archive for specific Qubes packages
[[ -e $(CHROOT_DIR)/$(DIST_SRC)/$(PACKAGE)/$(SOURCE_ARCHIVE_NAME) ]] \
|| $(BUILDER_DIR)/scripts/create-archive $(CHROOT_DIR)/$(DIST_SRC)/$(PACKAGE) $(SOURCE_ARCHIVE_NAME)
NO_ARCHIVE = 1
dist-package-build: RPM_SOURCE_DIR=$(dir $(DIST_SRC)/$(PACKAGE))
# vim: ft=make

@ -16,10 +16,6 @@ URL: http://fedoraproject.org/wiki/Anaconda
# make dist
Source0: %{name}-%{version}.tar.bz2
%if 0%{?qubes_builder}
%define _builddir %(pwd)/anaconda
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Versions of required components (done so we make sure the buildrequires
@ -233,10 +229,7 @@ options. This includes driver disks, kickstarts, and finding the anaconda
runtime on NFS/HTTP/FTP servers or local disks.
%prep
%if ! 0%{?qubes_builder}
%setup -q
%endif
%build
./autogen.sh

@ -1,7 +1,3 @@
%if 0%{?qubes_builder}
%define _sourcedir %(pwd)/blivet
%endif
Summary: A python module for system storage configuration
Name: python-blivet
Url: http://fedoraproject.org/wiki/blivet

@ -6,7 +6,7 @@ Name: qubes-live
Version: 1.0
Release: 1%{?dist}
Summary: Various fixes for Qubes Live edition
Source0: %{name}-%{version}.tar.gz
Group: System
License: GPL
URL: https://qubes-os.org

@ -1,7 +1,3 @@
%if 0%{?qubes_builder}
%define _builddir %(pwd)/lorax-templates-qubes
%endif
Name: lorax-templates-qubes
Version: 4.0.2
Release: 1%{?dist}
@ -20,11 +16,7 @@ BuildArch: noarch
Lorax templates for Qubes installation ISO.
%prep
%if ! 0%{?qubes_builder}
%setup -q
%endif
%build
%install
rm -rf $RPM_BUILD_ROOT

@ -2,10 +2,6 @@
# NOTE: Please submit changes as a pull request
%define debug_package %{nil}
%if 0%{?qubes_builder}
%define _sourcedir %(pwd)/lorax
%endif
Name: lorax
Version: 25.19
Release: 1%{?dist}

@ -1,7 +1,3 @@
%if 0%{?qubes_builder}
%define _sourcedir %(pwd)/pungi
%endif
Name: pungi
Version: 4.1.14
Release: 2%{?dist}

@ -1,9 +1,5 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%if 0%{?qubes_builder}
%define _sourcedir %(pwd)/pykickstart
%endif
Name: pykickstart
Version: 2.32
Release: 4%{?dist}
@ -22,7 +18,7 @@ Url: http://fedoraproject.org/wiki/pykickstart
# sudo dnf install zanata-python-client
# make po-pull && make archive
# The tarball will be in the current directory.
Source0: %{name}-%{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
Patch0: 0001-Ignore-errors-from-coverage-tests-138.patch
Patch1: 0001-Fix-error-message-in-autopart-command.patch
Patch2: repo-gpgkey-option.patch

@ -1,7 +1,3 @@
%if 0%{?qubes_builder}
%define _builddir %(pwd)/qubes-anaconda-addon
%endif
Name: qubes-anaconda-addon
Version: 4.0.6
Release: 1%{?dist}
@ -17,15 +13,14 @@ Requires: qubes-mgmt-salt-dom0-virtual-machines >= 4.0.11
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{version}.tar.gz
%description
This is an addon that makes available Qubes OS specific setup functionality
at first boot time.
%prep
true
%build
true
%setup -q
%install
rm -rf $RPM_BUILD_ROOT

@ -1,16 +1,12 @@
%define fedora_base_version %{fedora}
%if 0%{?qubes_builder}
%define _builddir %(pwd)/qubes-release
%endif
Summary: Qubes dom0 dist upgrade
Name: qubes-dom0-dist-upgrade
Version: 2.0
Release: 2
License: GPLv2
Group: System Environment/Base
Source: %{name}-%{version}.tar.bz2
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@ -18,11 +14,7 @@ BuildArch: noarch
Qubes dom0 upgrade transitional package.
%prep
%if ! 0%{?qubes_builder}
%setup -q
%endif
%build
%install
rm -rf $RPM_BUILD_ROOT

@ -2,10 +2,6 @@
%define release_name R%{dist_version}
%define fedora_base_version %{fedora}
%if 0%{?qubes_builder}
%define _builddir %(pwd)/qubes-release
%endif
Summary: Qubes release files
Name: qubes-release
Version: %{dist_version}
@ -39,11 +35,7 @@ Qubes release notes package.
%prep
%if ! 0%{?qubes_builder}
%setup -q
%endif
%build
%install
rm -rf $RPM_BUILD_ROOT

Loading…
Cancel
Save