|
|
ef5169 |
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
|
ef5169 |
%{!?scl:%global pkg_name %{name}}
|
|
|
ef5169 |
|
|
|
ef5169 |
# Generated from mail-2.3.0.gem by gem2rpm -*- rpm-spec -*-
|
|
|
ef5169 |
%global gem_name mail
|
|
|
ef5169 |
|
|
|
ef5169 |
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
|
ef5169 |
Version: 2.6.4
|
|
|
ef5169 |
Release: 2%{?dist}
|
|
|
ef5169 |
Summary: Mail provides a nice Ruby DSL for making, sending and reading emails
|
|
|
ef5169 |
Group: Development/Languages
|
|
|
ef5169 |
License: MIT
|
|
|
ef5169 |
URL: https://github.com/mikel/mail
|
|
|
ef5169 |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
ef5169 |
# git clone https://github.com/mikel/mail.git && cd mail
|
|
|
ef5169 |
# git checkout 2.6.4 && tar czvf mail-2.6.4-specs.tgz spec/
|
|
|
ef5169 |
Source1: %{gem_name}-%{version}-specs.tgz
|
|
|
ef5169 |
# Fix Ruby 2.4 compatibility.
|
|
|
ef5169 |
# https://github.com/mikel/mail/commit/e8fde9cf1d77ee7e465c12e809501df8d27e8451
|
|
|
ef5169 |
Patch0: mail-2.6.4-Fix-deprecated-warnings-in-Ruby-2.4.0.patch
|
|
|
ef5169 |
# https://github.com/mikel/mail/commit/48cb6db25b31eebe7bdd330d812c52d3c93aa328
|
|
|
ef5169 |
Patch1: mail-2.6.4-fix-new-warning-in-ruby-2.4.patch
|
|
|
ef5169 |
|
|
|
ef5169 |
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
|
ef5169 |
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
|
ef5169 |
Requires: %{?scl_prefix}rubygem(mime-types) >= 1.16
|
|
|
ef5169 |
Requires: %{?scl_prefix}rubygem(mime-types) < 4
|
|
|
ef5169 |
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
|
ef5169 |
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
|
ef5169 |
BuildRequires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
|
ef5169 |
BuildRequires: %{?scl_prefix_ruby}ruby
|
|
|
ef5169 |
BuildRequires: %{?scl_prefix}rubygem(mime-types) >= 1.16
|
|
|
ef5169 |
BuildRequires: %{?scl_prefix}rubygem(mime-types) < 4
|
|
|
ef5169 |
BuildRequires: %{?scl_prefix}rubygem(rspec)
|
|
|
ef5169 |
BuildArch: noarch
|
|
|
ef5169 |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
ef5169 |
|
|
|
ef5169 |
# Explicitly require runtime subpackage, as long as older scl-utils do not generate it
|
|
|
ef5169 |
%{?scl:Requires: %{?scl_prefix}runtime}
|
|
|
ef5169 |
|
|
|
ef5169 |
%description
|
|
|
ef5169 |
A really Ruby Mail handler.
|
|
|
ef5169 |
|
|
|
ef5169 |
%package doc
|
|
|
ef5169 |
Summary: Documentation for %{pkg_name}
|
|
|
ef5169 |
Group: Documentation
|
|
|
ef5169 |
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
|
ef5169 |
BuildArch: noarch
|
|
|
ef5169 |
|
|
|
ef5169 |
%description doc
|
|
|
ef5169 |
Documentation for %{pkg_name}.
|
|
|
ef5169 |
|
|
|
ef5169 |
%prep
|
|
|
ef5169 |
%setup -n %{pkg_name}-%{version} -q -c -T
|
|
|
ef5169 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
ef5169 |
%gem_install -n %{SOURCE0}
|
|
|
ef5169 |
%{?scl:EOF}
|
|
|
ef5169 |
|
|
|
ef5169 |
pushd .%{gem_instdir}
|
|
|
ef5169 |
%patch0 -p1
|
|
|
ef5169 |
%patch1 -p1
|
|
|
ef5169 |
popd
|
|
|
ef5169 |
|
|
|
ef5169 |
%build
|
|
|
ef5169 |
|
|
|
ef5169 |
%install
|
|
|
ef5169 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
ef5169 |
cp -a .%{gem_dir}/* \
|
|
|
ef5169 |
%{buildroot}%{gem_dir}/
|
|
|
ef5169 |
|
|
|
ef5169 |
%check
|
|
|
ef5169 |
pushd .%{gem_instdir}
|
|
|
ef5169 |
tar xzvf %{SOURCE1}
|
|
|
ef5169 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
ef5169 |
rspec spec
|
|
|
ef5169 |
%{?scl:EOF}
|
|
|
ef5169 |
popd
|
|
|
ef5169 |
|
|
|
ef5169 |
%files
|
|
|
ef5169 |
# There is no %%license macro on RHEL6.
|
|
|
ef5169 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1386246
|
|
|
ef5169 |
%{!?_licensedir:%global license %%doc}
|
|
|
ef5169 |
|
|
|
ef5169 |
%dir %{gem_instdir}
|
|
|
ef5169 |
%license %{gem_instdir}/MIT-LICENSE
|
|
|
ef5169 |
%{gem_libdir}
|
|
|
ef5169 |
%exclude %{gem_cache}
|
|
|
ef5169 |
%{gem_spec}
|
|
|
ef5169 |
|
|
|
ef5169 |
%files doc
|
|
|
ef5169 |
%doc %{gem_docdir}
|
|
|
ef5169 |
%doc %{gem_instdir}/CHANGELOG.rdoc
|
|
|
ef5169 |
%doc %{gem_instdir}/CONTRIBUTING.md
|
|
|
ef5169 |
%doc %{gem_instdir}/Dependencies.txt
|
|
|
ef5169 |
%{gem_instdir}/Gemfile*
|
|
|
ef5169 |
%doc %{gem_instdir}/README.md
|
|
|
ef5169 |
%{gem_instdir}/Rakefile
|
|
|
ef5169 |
%doc %{gem_instdir}/TODO.rdoc
|
|
|
ef5169 |
|
|
|
ef5169 |
%changelog
|
|
|
ef5169 |
* Mon Jan 23 2017 Vít Ondruch <vondruch@redhat.com> - 2.6.4-2
|
|
|
ef5169 |
- Fix Ruby 2.4 deprecation warnings.
|
|
|
ef5169 |
|
|
|
ef5169 |
* Mon Oct 17 2016 Jun Aruga <jaruga@redhat.com> - 2.6.4-1
|
|
|
ef5169 |
- Update to Mail 2.6.4.
|
|
|
ef5169 |
|
|
|
ef5169 |
* Thu Feb 25 2016 Pavel Valena <pvalena@redhat.com> - 2.6.3-4
|
|
|
ef5169 |
- Update to 2.6.3
|
|
|
ef5169 |
|
|
|
ef5169 |
* Mon Jan 19 2015 Josef Stribny <jstribny@redhat.com> - 2.5.4-2
|
|
|
ef5169 |
- Rebuilt for ror41
|
|
|
ef5169 |
|
|
|
ef5169 |
* Wed Oct 16 2013 Josef Stribny <jstribny@redhat.com> - 2.5.4-1
|
|
|
ef5169 |
- Update to mail 2.5.4
|
|
|
ef5169 |
|
|
|
ef5169 |
* Wed Jun 19 2013 Josef Stribny <jstribny@redhat.com> - 2.4.4-5
|
|
|
ef5169 |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
ef5169 |
|
|
|
ef5169 |
* Wed Jun 12 2013 Josef Stribny <jstribny@redhat.com> - 2.4.4-4
|
|
|
ef5169 |
- Patch encoding for Ruby 1.9.3
|
|
|
ef5169 |
Resolves: rhbz#973650
|
|
|
ef5169 |
|
|
|
ef5169 |
* Tue Jul 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 2.4.4-3
|
|
|
ef5169 |
- Exclude the cached gem.
|
|
|
ef5169 |
|
|
|
ef5169 |
* Thu Jul 26 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 2.4.4-2
|
|
|
ef5169 |
- Specfile cleanup
|
|
|
ef5169 |
|
|
|
ef5169 |
* Tue Apr 03 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 2.4.4-1
|
|
|
ef5169 |
- Rebuilt for scl.
|
|
|
ef5169 |
- Updated to 2.4.4.
|
|
|
ef5169 |
|
|
|
ef5169 |
* Tue Jan 31 2012 Vít Ondruch <vondruch@redhat.com> - 2.3.0-3
|
|
|
ef5169 |
- Rebuilt for Ruby 1.9.3.
|
|
|
ef5169 |
|
|
|
ef5169 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-2
|
|
|
ef5169 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
ef5169 |
|
|
|
ef5169 |
* Wed May 04 2011 <Minnikhanov@gmail.com> - 2.3.0-1
|
|
|
ef5169 |
- Updated mail to latest upstream release (v.2.3.0 2011-04-27)
|
|
|
ef5169 |
- Test excluded. May be need Zentest >= 4.4.0 and rubygem(rcov).
|
|
|
ef5169 |
|
|
|
ef5169 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.15-3
|
|
|
ef5169 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
ef5169 |
|
|
|
ef5169 |
* Mon Jan 31 2011 <Minnikhanov@gmail.com> - 2.2.15-2
|
|
|
ef5169 |
- Fix Comment 18 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=665560#c18
|
|
|
ef5169 |
- Remove create Gemfile.lock at prep-section.
|
|
|
ef5169 |
|
|
|
ef5169 |
* Sat Jan 29 2011 <Minnikhanov@gmail.com> - 2.2.15-1
|
|
|
ef5169 |
- Updated mail to latest upstream release (v.2.2.15 2011-01-25)
|
|
|
ef5169 |
|
|
|
ef5169 |
* Thu Jan 27 2011 <Minnikhanov@gmail.com> - 2.2.14-5
|
|
|
ef5169 |
- Fix Comment 14 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=665560#c14
|
|
|
ef5169 |
|
|
|
ef5169 |
* Mon Jan 24 2011 <Minnikhanov@gmail.com> - 2.2.14-4
|
|
|
ef5169 |
- Fix Comment 12 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=665560#c12
|
|
|
ef5169 |
|
|
|
ef5169 |
* Sun Jan 23 2011 <Minnikhanov@gmail.com> - 2.2.14-3
|
|
|
ef5169 |
- 'BuildRequires:%{?scl:%scl_prefix}' correct wrong tag 'BuildRequires(check):'.
|
|
|
ef5169 |
|
|
|
ef5169 |
* Sat Jan 22 2011 <Minnikhanov@gmail.com> - 2.2.14-2
|
|
|
ef5169 |
- Fix Comment 6 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=665560#c6
|
|
|
ef5169 |
|
|
|
ef5169 |
* Thu Jan 13 2011 <Minnikhanov@gmail.com> - 2.2.14-1
|
|
|
ef5169 |
- Updated mail to latest upstream release
|
|
|
ef5169 |
|
|
|
ef5169 |
* Fri Dec 24 2010 <Minnikhanov@gmail.com> - 2.2.13-1
|
|
|
ef5169 |
- Initial package
|