public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rubygem-mail] epel10: Update to mail 2.7.1
@ 2026-11-20 23:23 Pavel Valena
  0 siblings, 0 replies; only message in thread
From: Pavel Valena @ 2026-11-20 23:23 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rubygem-mail
            Branch : epel10
            Commit : 8c1c5916ce78ac31e04892e89b706690ce95fd65
            Author : Pavel Valena <pvalena@redhat.com>
            Date   : 2020-06-09T10:53:49+02:00
            Stats  : +20/-46 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/rubygem-mail/c/8c1c5916ce78ac31e04892e89b706690ce95fd65?branch=epel10

            Log:
            Update to mail 2.7.1

also enhance .spec and .gitignore files.
Resolves: rhbz#1446187

---
diff --git a/.gitignore b/.gitignore
index 13903b9..6029cc2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,16 +1,2 @@
-/mail-2.2.15.gem
-/mail-downgrade-gemfile-deps.patch
-/mail-2.2.15-tests.tgz
-/rubygem-mail.spec
-/mail-2.3.0.gem
-/mail-2.3.0-specs.tgz
-/mail-2.4.4-specs.tgz
-/mail-2.4.4.gem
-/mail-2.5.3-specs.tgz
-/mail-2.5.3.gem
-/mail-2.5.4-specs.tgz
-/mail-2.5.4.gem
-/mail-2.6.3-specs.tgz
-/mail-2.6.3.gem
-/mail-2.6.4-specs.tgz
-/mail-2.6.4.gem
+/mail-*-specs.txz
+/mail-*.gem

diff --git a/rubygem-mail.spec b/rubygem-mail.spec
index c105492..2f7b915 100644
--- a/rubygem-mail.spec
+++ b/rubygem-mail.spec
@@ -2,24 +2,21 @@
 %global gem_name mail
 
 Name: rubygem-%{gem_name}
-Version: 2.6.4
-Release: 9%{?dist}
+Version: 2.7.1
+Release: 1%{?dist}
 Summary: Mail provides a nice Ruby DSL for making, sending and reading emails
 License: MIT
 URL: https://github.com/mikel/mail
 Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
-# git clone https://github.com/mikel/mail.git && cd mail
-# git checkout 2.6.4 && tar czvf mail-2.6.4-specs.tgz spec/
-Source1: %{gem_name}-%{version}-specs.tgz
-# Fix Ruby 2.4 compatibility.
-# https://github.com/mikel/mail/commit/e8fde9cf1d77ee7e465c12e809501df8d27e8451
-Patch0: mail-2.6.4-Fix-deprecated-warnings-in-Ruby-2.4.0.patch
-# https://github.com/mikel/mail/commit/48cb6db25b31eebe7bdd330d812c52d3c93aa328
-Patch1: mail-2.6.4-fix-new-warning-in-ruby-2.4.patch
+# Specs are not shipped with the gem. You can get them like so:
+# git clone https://github.com/mikel/mail.git --no-checkout
+# cd mail && git archive -v -o mail-2.7.1-specs.txz 2.7.1 spec/
+Source1: %{gem_name}-%{version}-specs.txz
+
 BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: ruby
-BuildRequires: rubygem(mime-types) >= 1.16
+BuildRequires: rubygem(mini_mime)
 BuildRequires: rubygem(rspec)
 BuildArch: noarch
 
@@ -35,27 +32,20 @@ BuildArch: noarch
 Documentation for %{name}.
 
 %prep
-%setup -q -c -T
-%gem_install -n %{SOURCE0}
-
-pushd .%{gem_instdir}
-%patch0 -p1
-%patch1 -p1
-popd
+%setup -q -n %{gem_name}-%{version} -b1
 
 %build
+gem build ../%{gem_name}-%{version}.gemspec
+%gem_install
 
 %install
 mkdir -p %{buildroot}%{gem_dir}
 cp -a .%{gem_dir}/* \
         %{buildroot}%{gem_dir}/
 
-
-
-
 %check
 pushd .%{gem_instdir}
-tar xzvf %{SOURCE1}
+ln -s %{_builddir}/spec .
 rspec spec
 popd
 
@@ -68,15 +58,13 @@ popd
 
 %files doc
 %doc %{gem_docdir}
-%doc %{gem_instdir}/CHANGELOG.rdoc
-%doc %{gem_instdir}/CONTRIBUTING.md
-%doc %{gem_instdir}/Dependencies.txt
-%{gem_instdir}/Gemfile*
 %doc %{gem_instdir}/README.md
-%{gem_instdir}/Rakefile
-%doc %{gem_instdir}/TODO.rdoc
 
 %changelog
+* Mon Jun 08 2020 Pavel Valena <pvalena@redhat.com> - 2.7.1-1
+- Update to mail 2.7.1.
+  Resolves: rhbz#1446187
+
 * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.4-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
 

diff --git a/sources b/sources
index 43f7bb4..98d15da 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-0ae3b38f016451f9ef63e861646b8eb5  mail-2.6.4-specs.tgz
-3e43923308949f33f7281e88c92dc101  mail-2.6.4.gem
+SHA512 (mail-2.7.1.gem) = b8018ad089517ba058e922ec32653e6052c76a480178ae92452fdd678e3ba7f4916ee6643efa59dd673a6a8550f907fc7a2121c21f468c70b3659bf5615991d7
+SHA512 (mail-2.7.1-specs.txz) = 0ef6df35a3fa7258ef5033a6484d58fc6b2f7cb92871339f1e9e8a3257e484c238bdf3ff07fc2e50a38c7ab1b060c960f61b86df573fc11a423fdaa47459521c

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

only message in thread, other threads:[~2026-11-20 23:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 23:23 [rpms/rubygem-mail] epel10: Update to mail 2.7.1 Pavel Valena

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