Skip to content

Instantly share code, notes, and snippets.

@pvalena
Created September 17, 2021 12:16
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/a9e4a1fe847252e33640355b167bde9b to your computer and use it in GitHub Desktop.
Save pvalena/a9e4a1fe847252e33640355b167bde9b to your computer and use it in GitHub Desktop.
NOTE: Gem::Specification#has_rdoc is deprecated with no replacement. It will be removed in Rubygems 4
Gem::Specification#has_rdoc called from /usr/share/gems/gems/gem-compare-0.0.7/lib/rubygems/comparator/utils.rb:112.
NOTE: Gem::Specification#has_rdoc is deprecated with no replacement. It will be removed in Rubygems 4
Gem::Specification#has_rdoc called from /usr/share/gems/gems/gem-compare-0.0.7/lib/rubygems/comparator/utils.rb:112.
Compared versions: ["2.1.5", "2.2.0"]
DIFFERENT licenses:
2.1.5: []
2.2.0: ["Apache-2.0"]
DIFFERENT files:
2.1.5->2.2.0:
* Added:
uuidtools.gemspec
commit edc1cfbcdbeb251e407604ef7fcbcc0a343800f5
Author: Pavel Valena <pvalena@redhat.com>
Date: Wed Jun 30 03:30:26 2021 +0200
Update to uuidtools 2.2.0.
also enhance .spec and .gitignore files.
Resolves: rhbz#1855146
diff --git a/.gitignore b/.gitignore
index 9da9ef9..d2e2ece 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-uuidtools-2.1.3.gem/uuidtools-2.1.5.gem
+/uuidtools-*.gem
diff --git a/rubygem-uuidtools.spec b/rubygem-uuidtools.spec
index 8650b3a..828e940 100644
--- a/rubygem-uuidtools.spec
+++ b/rubygem-uuidtools.spec
@@ -1,11 +1,10 @@
# Generated from uuidtools-2.1.1.gem by gem2rpm -*- rpm-spec -*-
%global gem_name uuidtools
-
Summary: A simple universally unique ID generation library
Name: rubygem-%{gem_name}
-Version: 2.1.5
-Release: 13%{?dist}
+Version: 2.2.0
+Release: 1%{?dist}
License: ASL 2.0
URL: https://github.com/sporkmonger/uuidtools
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
@@ -16,9 +15,6 @@ BuildRequires: rubygem(rspec-core)
BuildRequires: rubygem(rspec-mocks)
BuildRequires: rubygem(rspec-expectations)
BuildArch: noarch
-%if 0%{?rhel} == 7
-Provides: rubygem(%{gem_name}) = %{version}
-%endif
%description
UUIDTools was designed to be a simple library for generating any of the various
@@ -26,21 +22,19 @@ types of UUIDs. It conforms to RFC 4122 whenever possible.
%package doc
Summary: Documentation for %{name}
-
Requires: %{name} = %{version}-%{release}
%description doc
This package contains documentation for %{name}.
%prep
-%setup -q -c -T
-
-%gem_install -n %{SOURCE0}
+%setup -q -n %{gem_name}-%{version}
%build
+gem build ../%{gem_name}-%{version}.gemspec
+%gem_install
%install
-rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
@@ -50,7 +44,7 @@ rspec spec
popd
%files
-%doc %{gem_instdir}/[A-Z]*
+%license %{gem_instdir}/LICENSE.txt
%dir %{gem_instdir}
%{gem_libdir}
%exclude %{gem_cache}
@@ -61,9 +55,17 @@ popd
%{gem_instdir}/tasks
%{gem_instdir}/website
%{gem_instdir}/spec
+%{gem_instdir}/%{gem_name}.gemspec
+%doc %{gem_instdir}/CHANGELOG
+%doc %{gem_instdir}/README.md
+
%{gem_docdir}
%changelog
+* Wed Jun 30 2021 Pavel Valena <pvalena@redhat.com> - 2.2.0-1
+- Update to uuidtools 2.2.0.
+ Resolves: rhbz#1855146
+
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.5-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
diff --git a/sources b/sources
index 786181b..0b15967 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-13de7689edf1f1628d4a14daa764bf5a uuidtools-2.1.5.gem
+SHA512 (uuidtools-2.2.0.gem) = 17f15e8816fd17d31e1296522d9c68b8da71211556c3284770197b06a6fe01f9038c1e6c6e5e8272b4290cfb23b48914a27717c4705fba17e5d9848257664360
On branch rebase
Your branch is up to date with 'pvalena/rebase'.
nothing to commit (use -u to show untracked files)
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: 2825061
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment