public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-File-Unpack2] rawhide: update packit.yaml and spec file to use version tag instead of commit
@ 2026-10-25  9:24 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-25  9:24 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/perl-File-Unpack2
Branch : rawhide
Commit : ead603cd06fa8a243ad9a62883189e19b5e49fb2
Author : Miroslav Suchý <msuchy@redhat.com>
Date   : 2026-10-25T10:13:55+01:00
Stats  : +9/-9 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-File-Unpack2/c/ead603cd06fa8a243ad9a62883189e19b5e49fb2?branch=rawhide

Log:
update packit.yaml and spec file to use version tag instead of commit

---
diff --git a/.packit.yaml b/.packit.yaml
index b4e436c..6acddea 100644
--- a/.packit.yaml
+++ b/.packit.yaml
@@ -12,6 +12,9 @@ jobs:
   trigger: release
   dist_git_branches:
   - rawhide
+  actions:
+    create-archive:
+      - bash -c "set -ex; VER=$PACKIT_PROJECT_VERSION; NAME=perl-File-Unpack2; wget https://github.com/openSUSE/perl-File-Unpack2/archive/v${VER}/${NAME}-${VER}.tar.gz; tar axf ${NAME}-${VER}.tar.gz; rm -rf ${NAME}-${VER}/t; tar caf ${NAME}-${VER}-repackaged.tar.gz ${NAME}-${VER}; echo ${NAME}-${VER}-repackaged.tar.gz"
 - job: koji_build
   trigger: commit
   allowed_committers:

diff --git a/perl-File-Unpack2.spec b/perl-File-Unpack2.spec
index 70e0a8a..0e37947 100644
--- a/perl-File-Unpack2.spec
+++ b/perl-File-Unpack2.spec
@@ -1,6 +1,3 @@
-%global commit 4bcdc19ca9a2a5b9817e3e501d0018b58bf577d0
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
 Name:           perl-File-Unpack2
 Version:        2.0
 Release:        %autorelease
@@ -14,11 +11,11 @@ Summary:        Strong archive file unpacker, based on mime-types
 # README: GPL-1.0-or-later OR Artistic-1.0-Perl
 # Unpack2.pm: GPL-1.0-or-later OR Artistic-1.0-Perl
 License:        (MIT OR GPL-1.0-or-later) AND (GPL-1.0-or-later OR Artistic-1.0-Perl)
-# wget https://github.com/openSUSE/perl-File-Unpack2/archive/%%{commit}/%%{name}-%%{shortcommit}.tar.gz
-# tar axf %%{name}-%%{shortcommit}.tar.gz
-# rm -rf perl-File-Unpack2-%%{commit}/t
-# tar caf %%{name}-%%{shortcommit}-repackaged.tar.gz perl-File-Unpack2-%%{commit}
-Source:         %{name}-%{shortcommit}-repackaged.tar.gz
+# wget https://github.com/openSUSE/perl-File-Unpack2/archive/v%%{version}/%%{name}-%%{version}.tar.gz
+# tar axf %%{name}-%%{version}.tar.gz
+# rm -rf %%{name}-%%{version}/t
+# tar caf %%{name}-%%{version}-repackaged.tar.gz %%{name}-%%{version}
+Source:         %{name}-%{version}-repackaged.tar.gz
 URL:            https://github.com/openSUSE/perl-File-Unpack2
 
 BuildRequires:  perl-generators
@@ -134,7 +131,7 @@ License:        MIT OR GPL-1.0-or-later OR (GPL-1.0-or-later OR Artistic-1.0-Per
 ships with the File::Unpack perl module.
 
 %prep
-%autosetup -n %{name}-%{commit}
+%autosetup -n %{name}-%{version}
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-25  9:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-25  9:24 [rpms/perl-File-Unpack2] rawhide: update packit.yaml and spec file to use version tag instead of commit 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox