spec: build packages in-place when %{qubes_builder} defined
This will make building package without taring the sources and untaring them again.
This commit is contained in:
parent
7600420256
commit
5bde26c0d8
@ -15,6 +15,10 @@ 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
|
||||
@ -217,7 +221,10 @@ 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
|
||||
%configure --disable-static \
|
||||
|
@ -1,5 +1,9 @@
|
||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%if 0%{?qubes_builder}
|
||||
%define _builddir %(pwd)/firstboot
|
||||
%endif
|
||||
|
||||
Summary: Initial system configuration utility
|
||||
Name: firstboot
|
||||
URL: http://fedoraproject.org/wiki/FirstBoot
|
||||
@ -40,7 +44,9 @@ The firstboot utility runs after installation. It guides the user through
|
||||
a series of steps that allows for easier configuration of the machine.
|
||||
|
||||
%prep
|
||||
%if ! 0%{?qubes_builder}
|
||||
%setup -q
|
||||
%endif
|
||||
|
||||
%build
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
%if 0%{?qubes_builder}
|
||||
%define _builddir %(pwd)/lorax-templates-qubes
|
||||
%endif
|
||||
|
||||
Name: lorax-templates-qubes
|
||||
Version: 1.1
|
||||
Release: 1%{?dist}
|
||||
@ -16,8 +20,9 @@ BuildArch: noarch
|
||||
Lorax templates for Qubes installation ISO.
|
||||
|
||||
%prep
|
||||
%if ! 0%{?qubes_builder}
|
||||
%setup -q
|
||||
|
||||
%endif
|
||||
|
||||
%build
|
||||
|
||||
|
@ -1,5 +1,9 @@
|
||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
%if 0%{?qubes_builder}
|
||||
%define _sourcedir %(pwd)/pungi
|
||||
%endif
|
||||
|
||||
Name: pungi
|
||||
Version: 2.13
|
||||
Release: 1.2%{?dist}
|
||||
|
@ -1,5 +1,9 @@
|
||||
%{!?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
|
||||
|
||||
Summary: A python library for manipulating kickstart files
|
||||
Name: pykickstart
|
||||
Url: http://fedoraproject.org/wiki/pykickstart
|
||||
|
@ -1,3 +1,7 @@
|
||||
%if 0%{?qubes_builder}
|
||||
%define _builddir %(pwd)/qubes-logos
|
||||
%endif
|
||||
|
||||
Name: qubes-logos
|
||||
Summary: Icons and pictures
|
||||
Version: 1
|
||||
@ -30,7 +34,9 @@ The qubes-logos package contains various image files which can be
|
||||
used by the bootloader, anaconda, and other related tools.
|
||||
|
||||
%prep
|
||||
%if ! 0%{?qubes_builder}
|
||||
%setup -q
|
||||
%endif
|
||||
|
||||
%build
|
||||
|
||||
|
@ -2,6 +2,10 @@
|
||||
%define release_name R%{dist_version}
|
||||
%define fedora_base_version 18
|
||||
|
||||
%if 0%{?qubes_builder}
|
||||
%define _builddir %(pwd)/qubes-release
|
||||
%endif
|
||||
|
||||
Summary: Qubes release files
|
||||
Name: qubes-release
|
||||
Version: %{dist_version}
|
||||
@ -34,7 +38,9 @@ Qubes release notes package.
|
||||
|
||||
|
||||
%prep
|
||||
%if ! 0%{?qubes_builder}
|
||||
%setup -q
|
||||
%endif
|
||||
|
||||
%build
|
||||
|
||||
@ -71,7 +77,11 @@ for file in {qubes,fedora,fedora-updates}*repo ; do
|
||||
done
|
||||
|
||||
install -d -m 755 $RPM_BUILD_ROOT/usr/share/qubes
|
||||
%if 0%{?qubes_builder}
|
||||
install -m 644 ../conf/comps-qubes.xml $RPM_BUILD_ROOT/usr/share/qubes/Qubes-comps.xml
|
||||
%else
|
||||
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/usr/share/qubes/Qubes-comps.xml
|
||||
%endif
|
||||
|
||||
# Set up the dist tag macros
|
||||
install -d -m 755 $RPM_BUILD_ROOT/etc/rpm
|
||||
|
Loading…
Reference in New Issue
Block a user