Create .spec.in and Source0

This commit is contained in:
Frédéric Pierret 2018-01-25 11:55:39 +01:00
parent 3c2ac0fd41
commit fdea48aa1c
No known key found for this signature in database
GPG Key ID: 1DABC232BE02201E

View File

@ -22,18 +22,13 @@
# #
# #
%{!?version: %define version %(cat version)}
# debug_package hack should be removed when BuildArch:noarch is enabled below
%define debug_package %{nil}
%define _dracutmoddir /usr/lib/dracut/modules.d %define _dracutmoddir /usr/lib/dracut/modules.d
%if %{fedora} < 17 %if %{fedora} < 17
%define _dracutmoddir /usr/share/dracut/modules.d %define _dracutmoddir /usr/share/dracut/modules.d
%endif %endif
Name: qubes-core-dom0 Name: qubes-core-dom0
Version: %{version} Version: @VERSION@
Release: 1%{dist} Release: 1%{dist}
Summary: The Qubes core files (Dom0-side) Summary: The Qubes core files (Dom0-side)
@ -111,17 +106,18 @@ Provides: qubes-core-dom0-doc
# Prevent preupgrade from installation (it pretend to provide distribution upgrade) # Prevent preupgrade from installation (it pretend to provide distribution upgrade)
Obsoletes: preupgrade < 2.0 Obsoletes: preupgrade < 2.0
Provides: preupgrade = 2.0 Provides: preupgrade = 2.0
Source0: %{name}-%{version}.tar.gz
%if 0%{?qubes_builder}
%define _builddir %(pwd) %define _builddir %(pwd)
%endif
%description %description
The Qubes core files for installation on Dom0. The Qubes core files for installation on Dom0.
%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