Project

General

Profile

Download (4.34 KB) Statistics
| Branch: | Tag: | Revision:
9f758ea0 specs-from-koji (Jenkins)
%{!?scl:%global pkg_name %{name}}
%{?scl:%scl_package rubygem-%{gem_name}}
%global gem_name multi_json
d6e2d23b Jason Montleon
9f758ea0 specs-from-koji (Jenkins)
Summary: A gem to provide swappable JSON backends
Name: %{?scl_prefix}rubygem-%{gem_name}
0bc5a00f specs-from-koji (Jenkins)
Version: 1.8.2
8ec4afc4 specs-from-koji (Jenkins)
Release: 2%{?dist}
9f758ea0 specs-from-koji (Jenkins)
Group: Development/Languages
License: MIT
d6e2d23b Jason Montleon
URL: http://github.com/intridea/multi_json
9f758ea0 specs-from-koji (Jenkins)
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem

8ec4afc4 specs-from-koji (Jenkins)
%if "%{?scl}" == "ruby193" || (0%{?rhel} == 6 && "%{?scl}" == "")
Requires: %{?scl_prefix}ruby(abi)
BuildRequires: %{?scl_prefix}ruby(abi)
bd11865f specs-from-koji (Jenkins)
%else
8ec4afc4 specs-from-koji (Jenkins)
Requires: %{?scl_prefix}ruby(release)
BuildRequires: %{?scl_prefix}ruby(release)
9f758ea0 specs-from-koji (Jenkins)
%endif

Requires: %{?scl_prefix}ruby(rubygems)
Requires: %{?scl_prefix}ruby

bd11865f specs-from-koji (Jenkins)
BuildRequires: %{?scl_prefix}rubygems-devel
9f758ea0 specs-from-koji (Jenkins)
BuildRequires: %{?scl_prefix}ruby
8ec4afc4 specs-from-koji (Jenkins)
BuildRequires: %{?scl_prefix}ruby(rubygems)
# BuildRequires: %{?scl_prefix}rubygem(json)
# BuildRequires: %{?scl_prefix}rubygem(json_pure)
# BuildRequires: %{?scl_prefix}rubygem(rspec)
9f758ea0 specs-from-koji (Jenkins)
BuildArch: noarch
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
# OkJson is allowed to be bundled:
# https://fedorahosted.org/fpc/ticket/113
Provides: bundled(%{?scl_prefix}okjson) = 20110719
d6e2d23b Jason Montleon
%description
9f758ea0 specs-from-koji (Jenkins)
A gem to provide swappable JSON backends utilizing Yajl::Ruby, the JSON gem,
JSON pure, or a vendored version of okjson.


%package doc
Summary: Documentation for %{pkg_name}
Group: Documentation
Requires: %{?scl:%scl_prefix}%{pkg_name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{pkg_name}
d6e2d23b Jason Montleon

%prep
9f758ea0 specs-from-koji (Jenkins)
%setup -q -c -T
mkdir -p .%{gem_dir}
%{?scl:scl enable %scl "}
gem install --local --install-dir .%{gem_dir} \
--force %{SOURCE0}
%{?scl:"}
d6e2d23b Jason Montleon
%build

%install
9f758ea0 specs-from-koji (Jenkins)
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
d6e2d23b Jason Montleon
9f758ea0 specs-from-koji (Jenkins)
# Remove useless shebang.
sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{gem_instdir}/Rakefile
d6e2d23b Jason Montleon
%files
9f758ea0 specs-from-koji (Jenkins)
%dir %{gem_instdir}
%exclude %{gem_instdir}/.*
%exclude %{gem_instdir}/Gemfile
%exclude %{gem_instdir}/%{gem_name}.gemspec
%doc %{gem_instdir}/LICENSE.md
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
0bc5a00f specs-from-koji (Jenkins)
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/CONTRIBUTING.md
%doc %{gem_instdir}/LICENSE.md
9f758ea0 specs-from-koji (Jenkins)
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%{gem_instdir}/spec

d6e2d23b Jason Montleon
%changelog
8ec4afc4 specs-from-koji (Jenkins)
* Thu May 29 2014 Dominic Cleal <dcleal@redhat.com> 1.8.2-2
- Modernise and update for EL7 (dcleal@redhat.com)

0bc5a00f specs-from-koji (Jenkins)
* Sun Nov 10 2013 Dominic Cleal <dcleal@redhat.com> 1.8.2-1
- Rebase to multi_json 1.8.2 (dcleal@redhat.com)

78c61626 specs-from-koji (Jenkins)
* Wed Aug 21 2013 Dominic Cleal <dcleal@redhat.com> 1.3.6-11
- Don't override gem macros when building under SCL (dcleal@redhat.com)

bd11865f specs-from-koji (Jenkins)
* Tue Aug 20 2013 Dominic Cleal <dcleal@redhat.com> 1.3.6-10
- fix dependency on ruby(abi) for ruby193 SCL builds (dcleal@redhat.com)

9f758ea0 specs-from-koji (Jenkins)
* Fri Aug 16 2013 Sam Kottler <shk@redhat.com> 1.3.6-9
- Rebuild for proper version dependencies

* Thu Aug 15 2013 Sam Kottler <shk@redhat.com> 1.3.6-8
- Removed rubygems version requirement (shk@redhat.com)

* Thu Aug 15 2013 Sam Kottler <shk@redhat.com> 1.3.6-7
- Corrected the abi logic (shk@redhat.com)
- Ensure the right ruby(abi) is used on F18 (shk@redhat.com)

* Wed Aug 14 2013 Sam Kottler <shk@redhat.com> 1.3.6-6
- Fix another conditional (shk@redhat.com)

* Wed Aug 14 2013 Sam Kottler <shk@redhat.com> 1.3.6-5
- Fix conditional (shk@redhat.com)

* Wed Aug 14 2013 Sam Kottler <shk@redhat.com> 1.3.6-4
- Modernize the gemspec for SCL and non-SCL (shk@redhat.com)
- remove empty tito.props and definition which are duplicate with default from
rel-eng/tito.props (msuchy@redhat.com)
- with recent tito you do not need SCL meta package (msuchy@redhat.com)

* Thu Feb 28 2013 Miroslav Suchý <msuchy@redhat.com> 1.3.6-2
- new package built with tito

* Wed Jul 25 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.3.6-1
- Updated to Multi_Json 1.3.6.
- Specfile cleanup

* Mon Apr 02 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.0-1
- Rebuilt for scl.
- Updated to 1.2.0.

* Tue Jan 24 2012 Vít Ondruch <vondruch@redhat.com> - 1.0.3-5
- Rebuilt for Ruby 1.9.3.

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Fri Nov 11 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.3-3
- Removed useless shebang.

* Fri Nov 11 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.3-2
- Review fixes.

* Fri Jul 08 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.3-1
- Initial package