From 64bd7244901daf90a986f4334c7cabb95b091145 Mon Sep 17 00:00:00 2001
From: Lokesh Mandvekar <lsm5@fedoraproject.org>
Date: Wed, 28 Apr 2021 08:54:17 -0400
Subject: [PATCH] crun-0.19.1.7-0.1.git3886321

- built 3886321

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
---
 .gitignore |  1 +
 crun.spec  | 27 +++++++++++++++++++++------
 sources    |  2 +-
 3 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/.gitignore b/.gitignore
index f173873..b2a3847 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,3 +29,4 @@ crun-0.1.1.tar.gz
 /f642968ec5ae05b33f2545da6edf135c338b34d1.patch
 /crun-0.19.tar.gz
 /crun-0.19.1.tar.gz
+/crun-0.19.1.7-3886.tar.xz
diff --git a/crun.spec b/crun.spec
index b8ab0f0..02cb326 100644
--- a/crun.spec
+++ b/crun.spec
@@ -1,9 +1,21 @@
+%global git0 https://github.com/containers/crun
+%global commit0 3886321243a945d8ae50b19db7d4cdde3d8421f8
+%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
+%global shortercommit0 %(c=%{commit0}; echo ${c:0:4})
+  
+# Used for comparing with latest upstream tag
+# to decide whether to autobuild (non-rawhide only)
+%define built_tag 0.19.1
+%define built_tag_strip %(b=%{built_tag}; echo ${b:1})
+%define download_url %{git0}/archive/%{built_tag}.tar.gz
+
 Summary: OCI runtime written in C
 Name: crun
-Version: 0.19.1
-Release: 2%{?dist}
-URL: https://github.com/containers/crun
-Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.gz
+Version: 0.19.1.7
+Release: 0.1.git%{shortcommit0}%{?dist}
+URL: %{git0}
+# Source0 generated using `make dist` in upstream repo
+Source0: %{name}-%{version}-%{shortercommit0}.tar.xz
 License: GPLv2+
 
 # We always run autogen.sh
@@ -31,7 +43,7 @@ Provides: oci-runtime
 crun is a runtime for running OCI containers
 
 %prep
-%autosetup -p1 -n %{name}-%{version}
+%autosetup -p1 -n %{name}-%{version}-%{shortercommit0}
 
 %build
 ./autogen.sh
@@ -41,7 +53,7 @@ crun is a runtime for running OCI containers
 
 %install
 %make_install
-rm -rf $RPM_BUILD_ROOT/usr/lib*
+rm -rf %{buildroot}%{_prefix}/lib*
 
 %files
 %license COPYING
@@ -49,6 +61,9 @@ rm -rf $RPM_BUILD_ROOT/usr/lib*
 %{_mandir}/man1/*
 
 %changelog
+* Wed Apr 28 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.19.1.7-0.1.git3886321
+- built 3886321
+
 * Thu Apr 22 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.19.1-2
 - rebuild for new bodhi
 
diff --git a/sources b/sources
index afdd58b..94d2176 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (crun-0.19.1.tar.gz) = f93f79d1d63d6749bcf92d48542d9555f3ad47657c959c7c06701861d7a5a4171969f00f6dff3878286970a48aba3314c25e35c005463e606533b0ff7843d994
+SHA512 (crun-0.19.1.7-3886.tar.xz) = d16e69de0e1647a8377c4241ab5eb612fcaf9d23a6b11df178ef5ac857116cbadfda257863642c78f19b5bd7ae3b343a374d7941a684912a46b34afd3d1b8d7e