|
%{!?scl:%global pkg_name %{name}}
|
|
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
|
|
# Generated from mail-2.3.0.gem by gem2rpm -*- rpm-spec -*-
|
|
%global gem_name mail
|
|
%global rubyabi 1.9.1
|
|
|
|
Summary: Mail provides a nice Ruby DSL for making, sending and reading emails
|
|
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
Version: 2.4.4
|
|
Release: 5%{?dist}
|
|
Group: Development/Languages
|
|
License: MIT
|
|
URL: http://github.com/mikel/mail
|
|
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
|
# git clone https://github.com/mikel/mail.git && cd mail && git checkout 2.4.4
|
|
# tar czvf mail-2.4.4-specs.tgz spec/
|
|
Source1: %{gem_name}-%{version}-specs.tgz
|
|
Requires: %{?scl_prefix}ruby(abi) = %{rubyabi}
|
|
Requires: %{?scl_prefix}ruby(rubygems)
|
|
Requires: %{?scl_prefix}rubygem(mime-types) >= 1.16
|
|
Requires: %{?scl_prefix}rubygem(mime-types) < 2
|
|
Requires: %{?scl_prefix}rubygem(treetop) >= 1.4.8
|
|
Requires: %{?scl_prefix}rubygem(treetop) < 1.5
|
|
Requires: %{?scl_prefix}rubygem(i18n) >= 0.4.0
|
|
BuildRequires: %{?scl_prefix}rubygems-devel
|
|
BuildRequires: %{?scl_prefix}ruby(abi) = %{rubyabi}
|
|
BuildRequires: %{?scl_prefix}rubygem(rspec)
|
|
BuildRequires: %{?scl_prefix}rubygem(mime-types) >= 1.16
|
|
BuildRequires: %{?scl_prefix}rubygem(mime-types) < 2
|
|
BuildRequires: %{?scl_prefix}rubygem(treetop) >= 1.4.8
|
|
BuildRequires: %{?scl_prefix}rubygem(treetop) < 1.5
|
|
BuildArch: noarch
|
|
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
|
%description
|
|
A really Ruby Mail handler.
|
|
|
|
%package doc
|
|
Summary: Documentation for %{pkg_name}
|
|
Group: Documentation
|
|
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
|
|
%description doc
|
|
This package contains documentation for %{pkg_name}.
|
|
|
|
|
|
%prep
|
|
%setup -q -c -T
|
|
mkdir -p .%{gem_dir}
|
|
%{?scl:scl enable %scl "}
|
|
gem install --local --install-dir .%{gem_dir} \
|
|
--force %{SOURCE0}
|
|
%{?scl:"}
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%check
|
|
tar xzvf %{SOURCE1} -C .%{gem_instdir}
|
|
pushd .%{gem_instdir}
|
|
%{?scl:scl enable %scl - << \EOF}
|
|
#LANG=en_US.utf8 rspec -rmail/fields/common/common_address spec
|
|
%{?scl:EOF}
|
|
popd
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
%doc %{gem_instdir}/README.md
|
|
%doc %{gem_instdir}/Gemfile
|
|
%exclude %{gem_instdir}/Gemfile.lock
|
|
%doc %{gem_instdir}/Rakefile
|
|
|
|
%files doc
|
|
%{gem_docdir}
|
|
%{gem_instdir}/CONTRIBUTING.md
|
|
%{gem_instdir}/CHANGELOG.rdoc
|
|
%{gem_instdir}/Dependencies.txt
|
|
%{gem_instdir}/TODO.rdoc
|
|
|
|
%changelog
|
|
* Fri Mar 01 2013 Miroslav Suchý <msuchy@redhat.com> 2.4.4-5
|
|
- disable tests (msuchy@redhat.com)
|
|
|
|
* Thu Feb 21 2013 Miroslav Suchý <msuchy@redhat.com> 2.4.4-4
|
|
- new package built with tito
|
|
|
|
* Tue Jul 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 2.4.4-3
|
|
- Exclude the cached gem.
|
|
|
|
* Thu Jul 26 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 2.4.4-2
|
|
- Specfile cleanup
|
|
|
|
* Tue Apr 03 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 2.4.4-1
|
|
- Rebuilt for scl.
|
|
- Updated to 2.4.4.
|
|
|
|
* Tue Jan 31 2012 Vít Ondruch <vondruch@redhat.com> - 2.3.0-3
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Wed May 04 2011 <Minnikhanov@gmail.com> - 2.3.0-1
|
|
- Updated mail to latest upstream release (v.2.3.0 2011-04-27)
|
|
- Test excluded. May be need Zentest >= 4.4.0 and rubygem(rcov).
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.15-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Mon Jan 31 2011 <Minnikhanov@gmail.com> - 2.2.15-2
|
|
- Fix Comment 18 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=665560#c18
|
|
- Remove create Gemfile.lock at prep-section.
|
|
|
|
* Sat Jan 29 2011 <Minnikhanov@gmail.com> - 2.2.15-1
|
|
- Updated mail to latest upstream release (v.2.2.15 2011-01-25)
|
|
|
|
* Thu Jan 27 2011 <Minnikhanov@gmail.com> - 2.2.14-5
|
|
- Fix Comment 14 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=665560#c14
|
|
|
|
* Mon Jan 24 2011 <Minnikhanov@gmail.com> - 2.2.14-4
|
|
- Fix Comment 12 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=665560#c12
|
|
|
|
* Sun Jan 23 2011 <Minnikhanov@gmail.com> - 2.2.14-3
|
|
- 'BuildRequires:%{?scl:%scl_prefix}' correct wrong tag 'BuildRequires(check):'.
|
|
|
|
* Sat Jan 22 2011 <Minnikhanov@gmail.com> - 2.2.14-2
|
|
- Fix Comment 6 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=665560#c6
|
|
|
|
* Thu Jan 13 2011 <Minnikhanov@gmail.com> - 2.2.14-1
|
|
- Updated mail to latest upstream release
|
|
|
|
* Fri Dec 24 2010 <Minnikhanov@gmail.com> - 2.2.13-1
|
|
- Initial package
|
|
|