public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rubygem-yaml-lint] epel10: Upstream to 0.1.2
@ 2026-08-12 14:30 Steve Traylen
0 siblings, 0 replies; only message in thread
From: Steve Traylen @ 2026-08-12 14:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rubygem-yaml-lint
Branch : epel10
Commit : d218027665d3ce22ebebe6d9241388b17baa7f24
Author : Steve Traylen <steve.traylen@cern.ch>
Date : 2023-04-20T22:57:00+02:00
Stats : +43/-17 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/rubygem-yaml-lint/c/d218027665d3ce22ebebe6d9241388b17baa7f24?branch=epel10
Log:
Upstream to 0.1.2
Include README, LICENSE and tests(and run them) from upstream
Clean up .spec file indentation and alignment
---
diff --git a/.gitignore b/.gitignore
index b1d239d..59cd30e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
/yaml-lint-0.0.10.gem
+/yaml-lint-0.1.2.gem
+/yaml-lint-8dfc583584e046c54617315734883c887768c6ca.tar.gz
diff --git a/rubygem-yaml-lint.spec b/rubygem-yaml-lint.spec
index 0ba95f1..7107c2e 100644
--- a/rubygem-yaml-lint.spec
+++ b/rubygem-yaml-lint.spec
@@ -1,17 +1,21 @@
# Generated from yaml-lint-0.0.10.gem by gem2rpm -*- rpm-spec -*-
%global gem_name yaml-lint
-
-Name: rubygem-%{gem_name}
-Version: 0.0.10
-Release: 8%{?dist}
-Summary: Really simple YAML lint
-License: MIT
-URL: https://github.com/Pryz/yaml-lint
-Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+# This commit corresponds to the relase in github which is not tagged :-(
+%global commit 8dfc583584e046c54617315734883c887768c6ca
+
+Name: rubygem-%{gem_name}
+Version: 0.1.2
+Release: 1%{?dist}
+Summary: Really simple YAML lint
+License: MIT
+URL: https://github.com/Pryz/yaml-lint
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+Source1: https://github.com/Pryz/yaml-lint/archive/%{commit}/yaml-lint-%{commit}.tar.gz
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
-BuildRequires: ruby
-BuildArch: noarch
+BuildRequires: rubygem(rspec)
+BuildArch: noarch
+
%description
Check if your YAML files can be loaded.
@@ -22,20 +26,31 @@ Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
+
%description doc
Documentation for %{name}.
+
%prep
%setup -q -n %{gem_name}-%{version}
+# unpack only the spec and LICENSE from SOURCE1
+tar zxf %{SOURCE1} --strip-components 1 \
+ yaml-lint-%{commit}/spec \
+ yaml-lint-%{commit}/LICENSE \
+ yaml-lint-%{commit}/README.md \
+
+# Disable Coverals
+sed -i "s/^require 'coveralls'$//" spec/spec_helper.rb
+sed -i "s/^Coveralls.wear!//" spec/spec_helper.rb
+
+
%build
-# Create the gem as gem install only works on a gem file
gem build ../%{gem_name}-%{version}.gemspec
-# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
-# by default, so that we can move it into the buildroot in %%install
%gem_install
+
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
@@ -48,10 +63,10 @@ cp -a .%{_bindir}/* \
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
+
%check
-pushd .%{gem_instdir}
-# Run the test suite.
-popd
+rspec -I%{gem_instdir} spec
+
%files
%dir %{gem_instdir}
@@ -60,12 +75,20 @@ popd
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
+%license LICENSE
+%doc README.md
+
%files doc
%doc %{gem_docdir}
%changelog
+* Thu Apr 20 2023 Steve Traylen <steve.traylen@cern.ch> - 0.1.2-1
+- Upstream to 0.1.2
+- Include README, LICENSE and tests(and run them) from upstream
+- Clean up .spec file indentation and alignment
+
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.10-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
diff --git a/sources b/sources
index 47061b6..f2db1c3 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-SHA512 (yaml-lint-0.0.10.gem) = ce1aad5e8f2f1aeac7c19ef887a26074b613d5c8ff975c62b2d060700e536f4a154b473b78af5bbfab277ea6078b8185fc9a0bde1e5937c9ba192e669016337b
+SHA512 (yaml-lint-0.1.2.gem) = a4140d8b454591be80da4734df583d2ff2bfc47ad96ae4f06a796afa113511683527bbef386679927801a48a9453197f450216075bc37fe254fe493bde605e18
+SHA512 (yaml-lint-8dfc583584e046c54617315734883c887768c6ca.tar.gz) = 14d791b14e8ffee142863c30ca67676fc3d4934e58cf332a9ce45a61d72b1d310cf200d081b20c26308981cdeefae6fcd47bae566118084787b1d87040c2dcee
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-12 14:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-12 14:30 [rpms/rubygem-yaml-lint] epel10: Upstream to 0.1.2 Steve Traylen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox