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
|
# make dist
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
|
|
||||||
|
%if 0%{?qubes_builder}
|
||||||
|
%define _builddir %(pwd)/anaconda
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
# Versions of required components (done so we make sure the buildrequires
|
# 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.
|
runtime on NFS/HTTP/FTP servers or local disks.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%if ! 0%{?qubes_builder}
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static \
|
%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)")}
|
%{!?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
|
Summary: Initial system configuration utility
|
||||||
Name: firstboot
|
Name: firstboot
|
||||||
URL: http://fedoraproject.org/wiki/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.
|
a series of steps that allows for easier configuration of the machine.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%if ! 0%{?qubes_builder}
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
%if 0%{?qubes_builder}
|
||||||
|
%define _builddir %(pwd)/lorax-templates-qubes
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: lorax-templates-qubes
|
Name: lorax-templates-qubes
|
||||||
Version: 1.1
|
Version: 1.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
@ -16,8 +20,9 @@ BuildArch: noarch
|
|||||||
Lorax templates for Qubes installation ISO.
|
Lorax templates for Qubes installation ISO.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%if ! 0%{?qubes_builder}
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
%{!?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
|
Name: pungi
|
||||||
Version: 2.13
|
Version: 2.13
|
||||||
Release: 1.2%{?dist}
|
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()")}
|
%{!?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
|
Summary: A python library for manipulating kickstart files
|
||||||
Name: pykickstart
|
Name: pykickstart
|
||||||
Url: http://fedoraproject.org/wiki/pykickstart
|
Url: http://fedoraproject.org/wiki/pykickstart
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
%if 0%{?qubes_builder}
|
||||||
|
%define _builddir %(pwd)/qubes-logos
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: qubes-logos
|
Name: qubes-logos
|
||||||
Summary: Icons and pictures
|
Summary: Icons and pictures
|
||||||
Version: 1
|
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.
|
used by the bootloader, anaconda, and other related tools.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%if ! 0%{?qubes_builder}
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
%define release_name R%{dist_version}
|
%define release_name R%{dist_version}
|
||||||
%define fedora_base_version 18
|
%define fedora_base_version 18
|
||||||
|
|
||||||
|
%if 0%{?qubes_builder}
|
||||||
|
%define _builddir %(pwd)/qubes-release
|
||||||
|
%endif
|
||||||
|
|
||||||
Summary: Qubes release files
|
Summary: Qubes release files
|
||||||
Name: qubes-release
|
Name: qubes-release
|
||||||
Version: %{dist_version}
|
Version: %{dist_version}
|
||||||
@ -34,7 +38,9 @@ Qubes release notes package.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%if ! 0%{?qubes_builder}
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -71,7 +77,11 @@ for file in {qubes,fedora,fedora-updates}*repo ; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
install -d -m 755 $RPM_BUILD_ROOT/usr/share/qubes
|
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
|
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/usr/share/qubes/Qubes-comps.xml
|
||||||
|
%endif
|
||||||
|
|
||||||
# Set up the dist tag macros
|
# Set up the dist tag macros
|
||||||
install -d -m 755 $RPM_BUILD_ROOT/etc/rpm
|
install -d -m 755 $RPM_BUILD_ROOT/etc/rpm
|
||||||
|
Loading…
Reference in New Issue
Block a user