Skip to content

Commit

Permalink
rpm: update packaging for mockbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Sep 10, 2018
1 parent 8372f65 commit eff42b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 3 additions & 7 deletions rpm_spec/qubes-u2f-dom0.spec → rpm_spec/qubes-u2f-dom0.spec.in
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
%{!?version: %define version %(cat version)}
%define _builddir %(pwd)

Name: qubes-u2f-dom0
Version: %{version}
Version: @VERSION@
Release: 1%{?dist}
Summary: Qubes OS U2F proxy policy files

Group: Qubes
License: GPL2+
URL: https://github.com/QubesOS/qubes-app-u2f
Source0: qubes-u2f-%{version}.tar.gz

BuildArch: noarch

Expand All @@ -18,9 +16,7 @@ Requires: qubes-core-dom0
Qubes OS U2F proxy policy files

%prep
rm -f %{name}-%{version}
ln -sf . %{name}-%{version}
%setup -T -D
%setup -q -n qubes-u2f-%{version}

%build

Expand Down
10 changes: 3 additions & 7 deletions rpm_spec/qubes-u2f.spec → rpm_spec/qubes-u2f.spec.in
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
%{!?version: %define version %(cat version)}
%define _builddir %(pwd)

Name: qubes-u2f
Version: %{version}
Version: @VERSION@
Release: 1%{?dist}
Summary: Qubes OS U2F proxy

Group: Qubes
License: GPL2+
URL: https://github.com/QubesOS/qubes-app-u2f
Source0: %{name}-%{version}.tar.gz

BuildArch: noarch
BuildRequires: python3-devel
Expand All @@ -23,9 +21,7 @@ Requires: python3-u2flib-host
Qubes OS U2F proxy

%prep
rm -f %{name}-%{version}
ln -sf . %{name}-%{version}
%setup -T -D
%setup -q

%build
make PYTHON=%{__python3}
Expand Down

0 comments on commit eff42b9

Please sign in to comment.