Blob Blame Raw
# Generated from omniauth-1.1.4.gem by gem2rpm -*- rpm-spec -*-
%global gem_name omniauth

Name: rubygem-%{gem_name}
Version: 1.3.1
Release: 7%{?dist}
Summary: A generalized Rack framework for multiple-provider authentication
License: MIT
URL: http://github.com/intridea/omniauth
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone https://github.com/intridea/omniauth.git && cd omniauth
# git checkout v1.3.1 && tar czvf omniauth-1.3.1-tests.tgz spec/
Source1: omniauth-1.3.1-tests.tgz
BuildRequires: ruby(release)
BuildRequires: rubygems-devel >= 1.3.6
BuildRequires: ruby
BuildRequires: rubygem(hashie)
BuildRequires: rubygem(rack-test)
BuildRequires: rubygem(rspec)
BuildRequires: rubygem(simplecov)
BuildArch: noarch

%description
A generalized Rack framework for multiple-provider authentication.


%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}

%description doc
Documentation for %{name}

%prep
gem unpack %{SOURCE0}

%setup -q -D -T -n  %{gem_name}-%{version}

gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec

%build
# Create the gem as gem install only works on a gem file
gem build %{gem_name}.gemspec

%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

%check
pushd .%{gem_instdir}
tar xzvf %{SOURCE1}
# Remove unneeded coveralls gem from test suite
sed -i '/[Cc]overalls/d' spec/helper.rb
rspec spec/
popd

%files
%dir %{gem_instdir}
%exclude %{gem_instdir}/.*
%license %{gem_instdir}/LICENSE.md
%{gem_libdir}
%{gem_spec}
%exclude %{gem_cache}

%files doc
%doc %{gem_docdir}
%{gem_instdir}/Gemfile
%{gem_instdir}/Gemfile.rack-1.3.x
%{gem_instdir}/Gemfile.rack-master
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%{gem_instdir}/omniauth.gemspec

%changelog
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.1-4
- Escape macros in %%changelog

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Wed Aug 03 2016 Jun Aruga <jaruga@redhat.com> - 1.3.1-1
- Update to 1.3.1

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Fri Jul 04 2014 Achilleas Pipinellis <axilleas@fedoraproject.org> - 1.2.1-3
- Rebuilt for BZ#1107183
- Drop Requires (ruby 2.1 guidelines)

* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Feb 23 2014 Achilleas Pipinellis <axilleas@fedoraproject.org> - 1.2.1-1
- Update to 1.2.1

* Tue Aug 27 2013 Axilleas Pipinellis <axilleaspi@ymail.com> - 1.1.4-2
- Remove set of noarch in -doc subpackage
- Move removal of coveralls gem to %%prep
- Move README.md to main package

* Sun Jul 28 2013 Axilleas Pipinellis <axilleaspi@ymail.com> - 1.1.4-1
- Initial package