Skip to content

Instantly share code, notes, and snippets.

@pvalena
Created September 17, 2021 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvalena/91e7361704fd09c201e6e33bafd62831 to your computer and use it in GitHub Desktop.
Save pvalena/91e7361704fd09c201e6e33bafd62831 to your computer and use it in GitHub Desktop.
WARNING: Unsupported version specification: , skipping.
ERROR: Latest upstream version matches the version given. Nothing to compare.
commit e6063df77733ddb2239aeee875a87c810dba0b53
Author: Pavel Valena <pvalena@redhat.com>
Date: Fri Sep 17 13:51:15 2021 +0200
Enhance .spec and .gitignore files.
diff --git a/.gitignore b/.gitignore
index 50c3725..6753e7b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,2 @@
/asciidoctor-pdf-*.gem
-/rubygem-asciidoctor-pdf-1.5.0.beta.6-specs.tgz
-/rubygem-asciidoctor-pdf-1.5.3-specs-examples.tgz
-/rubygem-asciidoctor-pdf-1.5.4-specs-examples.tgz
-/rubygem-asciidoctor-pdf-1.6.0-specs-examples.tgz
-/fix-broken-test.patch
-/rubygem-asciidoctor-pdf-1.6.1-specs-examples.tgz
+/rubygem-asciidoctor-pdf-*-specs-examples.txz
diff --git a/rubygem-asciidoctor-pdf.spec b/rubygem-asciidoctor-pdf.spec
index dc96a9c..5dc5dab 100644
--- a/rubygem-asciidoctor-pdf.spec
+++ b/rubygem-asciidoctor-pdf.spec
@@ -7,10 +7,9 @@ Summary: Converts AsciiDoc documents to PDF using Prawn
License: MIT
URL: https://github.com/asciidoctor/asciidoctor-pdf
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
-# git clone https://github.com/asciidoctor/asciidoctor-pdf.git && cd asciidoctor-pdf
-# git checkout v1.6.1
-# tar -czf rubygem-asciidoctor-pdf-1.6.1-specs-examples.tgz spec/ examples/
-Source1: %{name}-%{version}-specs-examples.tgz
+# git clone --no-checkout https://github.com/asciidoctor/asciidoctor-pdf.git
+# git -C asciidoctor-pdf archive -v -o rubygem-asciidoctor-pdf-1.6.1-specs-examples.txz v1.6.1 spec/ examples/
+Source1: %{name}-%{version}-specs-examples.txz
BuildRequires: ruby(release)
BuildRequires: rubygems-devel > 1.3.1
diff --git a/sources b/sources
index d5d1087..0df0fb9 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
SHA512 (asciidoctor-pdf-1.6.1.gem) = 69b818d0a20f5dc7fb19bf5caed6dabd4b7e529709d39384db1e5090ba5f464b84d606ea8b5b9773b49f8c0598fee7eacdd7aa8234502935e5c4eb1280dbc96c
-SHA512 (rubygem-asciidoctor-pdf-1.6.1-specs-examples.tgz) = 0f1e8287451f028be80a08209c489fc4983a4989243f9c9467bbf825b81a5f183dd3dd5eafd85f570d85c7b5d714aaa8d395fca2d2af55d67811491d5d97e7fb
+SHA512 (rubygem-asciidoctor-pdf-1.6.1-specs-examples.txz) =
On branch rebase
Your branch is up to date with 'pvalena/rebase'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: sources
no changes added to commit (use "git add" and/or "git commit -a")
Everything up-to-date
Branch 'rebase' set up to track remote branch 'rebase' from 'pvalena'.
> Run copr build.
+ scripts/pkgs/cr-build.sh -c -t 30m rubygems
Created builds: 2825056
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment