08c3f27
%global gem_name jekyll-feed
08c3f27
08c3f27
Name:           rubygem-%{gem_name}
c09a370
Version:        0.15.1
10d7970
Release:        1%{?dist}
08c3f27
Summary:        Jekyll plugin to generate an Atom feed of your Jekyll posts
08c3f27
License:        MIT
08c3f27
08c3f27
URL:            https://github.com/jekyll/jekyll-feed
08c3f27
Source0:        https://rubygems.org/gems/%{gem_name}-%{version}.gem
1412f03
Source1:        %{url}/archive/v%{version}/%{gem_name}-%{version}.tar.gz
08c3f27
1412f03
BuildRequires:  ruby >= 2.4.0
08c3f27
BuildRequires:  rubygems-devel
08c3f27
BuildRequires:  ruby(release)
08c3f27
1412f03
BuildRequires:  (rubygem(jekyll) >= 3.7 with rubygem(jekyll) < 5.0)
b7537b4
BuildRequires:  (rubygem(nokogiri) >= 1.6 with rubygem(nokogiri) < 2)
b7537b4
BuildRequires:  (rubygem(rspec) >= 3.0 with rubygem(rspec) < 4)
b7537b4
BuildRequires:  rubygem(typhoeus)
08c3f27
08c3f27
BuildArch:      noarch
08c3f27
08c3f27
%description
08c3f27
A Jekyll plugin to generate an Atom feed of your Jekyll posts.
08c3f27
08c3f27
08c3f27
%package        doc
08c3f27
Summary:        Documentation for %{name}
08c3f27
Requires:       %{name} = %{version}-%{release}
08c3f27
BuildArch:      noarch
08c3f27
08c3f27
%description    doc
08c3f27
Documentation for %{name}.
08c3f27
08c3f27
%prep
08c3f27
%setup -q -n %{gem_name}-%{version}
08c3f27
1412f03
# extract test files not shipped with the gem
1412f03
mkdir upstream && pushd upstream
1412f03
tar -xzvf %{SOURCE1}
1412f03
mv %{gem_name}-%{version}/spec ../spec
1412f03
popd && rm -r upstream
1412f03
08c3f27
08c3f27
%build
08c3f27
gem build ../%{gem_name}-%{version}.gemspec
08c3f27
08c3f27
%gem_install
08c3f27
08c3f27
08c3f27
%install
08c3f27
mkdir -p %{buildroot}%{gem_dir}
08c3f27
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
08c3f27
08c3f27
08c3f27
%check
08c3f27
# Tests fail when LANG is not set to a UTF-8 locale
d1417bf
LANG=C.UTF-8 rspec spec
08c3f27
08c3f27
08c3f27
%files
08c3f27
%license %{gem_instdir}/LICENSE.txt
08c3f27
08c3f27
%dir %{gem_instdir}
08c3f27
08c3f27
%{gem_libdir}
08c3f27
%{gem_spec}
08c3f27
08c3f27
%exclude %{gem_cache}
08c3f27
08c3f27
%files doc
08c3f27
%doc %{gem_instdir}/History.markdown
08c3f27
%doc %{gem_instdir}/README.md
08c3f27
08c3f27
%doc %{gem_docdir}
08c3f27
08c3f27
08c3f27
%changelog
c09a370
* Fri Oct 09 2020 Fabio Valentini <decathorpe@gmail.com> - 0.15.1-1
c09a370
- Update to version 0.15.1.
c09a370
1412f03
* Mon Jul 13 2020 Fabio Valentini <decathorpe@gmail.com> - 0.15.0-1
1412f03
- Update to version 0.15.0.
1412f03
- Include spec files from GitHub since they're no longer shipped with the gem.
1412f03
- Drop packaging fixes for files that are no longer included in the gem.
1412f03
10d7970
* Sat Nov 16 2019 Fabio Valentini <decathorpe@gmail.com> - 0.13.0-1
10d7970
- Update to version 0.13.0.
10d7970
3f12e5d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-2
3f12e5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3f12e5d
74f50e6
* Sun Mar 31 2019 Fabio Valentini <decathorpe@gmail.com> - 0.12.1-1
74f50e6
- Update to version 0.12.1.
74f50e6
bd085d0
* Fri Mar 22 2019 Fabio Valentini <decathorpe@gmail.com> - 0.12.0-1
bd085d0
- Update to version 0.12.0.
bd085d0
e00b75d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-3
e00b75d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e00b75d
d1417bf
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.11.0-2
d1417bf
- Use C.UTF-8 locale
d1417bf
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
d1417bf
0c23f19
* Mon Sep 10 2018 Fabio Valentini <decathorpe@gmail.com> - 0.11.0-1
0c23f19
- Update to version 0.11.0.
0c23f19
0c4cb6d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
0c4cb6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0c4cb6d
b7537b4
* Tue Jun 05 2018 Fabio Valentini <decathorpe@gmail.com> - 0.10.0-1
b7537b4
- Update to version 0.10.0.
b7537b4
- Re-enable tests.
b7537b4
79bc0da
* Mon Jun 04 2018 Fabio Valentini <decathorpe@gmail.com> - 0.9.3-2
79bc0da
- Temporarily disable tests.
79bc0da
08c3f27
* Mon Apr 23 2018 Fabio Valentini <decathorpe@gmail.com> - 0.9.3-1
08c3f27
- Initial package
08c3f27