foreman-packaging/rubygem-oauth/rubygem-oauth.spec @ 58c47c8c
58c47c8c | Dominic Cleal | %{?scl:%scl_package rubygem-%{gem_name}}
|
|
%{!?scl:%global pkg_name %{name}}
|
|||
%define gem_name oauth
|
|||
# we are using this gem also as non-SCL in RHEL6
|
|||
%if !("%{?scl}" == "ruby193" || 0%{?rhel} > 6 || 0%{?fedora} > 16)
|
|||
%define gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|||
%define gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}
|
|||
%define gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem
|
|||
%define gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}
|
|||
%endif
|
|||
Summary: OAuth Core Ruby implementation
|
|||
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|||
Version: 0.4.7
|
|||
Release: 5%{?dist}
|
|||
Group: Development/Languages
|
|||
License: MIT
|
|||
URL: http://rubydoc.info/gems/oauth
|
|||
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|||
Requires: %{?scl_prefix}rubygems
|
|||
Requires: %{?scl_prefix}ruby(abi)
|
|||
BuildRequires: %{?scl_prefix}rubygems
|
|||
%if "%{?scl}" == "ruby193" || 0%{?rhel} > 6 || 0%{?fedora} > 16
|
|||
BuildRequires: %{?scl_prefix}rubygems-devel
|
|||
%endif
|
|||
BuildArch: noarch
|
|||
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|||
%description
|
|||
OAuth Core Ruby implementation
|
|||
%prep
|
|||
%build
|
|||
%install
|
|||
rm -rf %{buildroot}
|
|||
mkdir -p %{buildroot}%{gem_dir}
|
|||
%{?scl:scl enable %{scl} "}
|
|||
gem install --local --install-dir %{buildroot}%{gem_dir} \
|
|||
--force --rdoc %{SOURCE0}
|
|||
%{?scl:"}
|
|||
mkdir -p %{buildroot}/%{_bindir}
|
|||
mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
|
|||
rmdir %{buildroot}%{gem_dir}/bin
|
|||
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|||
%files
|
|||
%{_bindir}/oauth
|
|||
%{gem_dir}/gems/%{gem_name}-%{version}/
|
|||
%doc %{gem_dir}/doc/%{gem_name}-%{version}
|
|||
%doc %{gem_instdir}/LICENSE
|
|||
%doc %{gem_instdir}/README.rdoc
|
|||
%doc %{gem_instdir}/TODO
|
|||
%{gem_dir}/cache/%{gem_name}-%{version}.gem
|
|||
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
|
|||
%changelog
|
|||
* Wed Jul 03 2013 Lukas Zapletal <lzap+git@redhat.com> 0.4.7-5
|
|||
- rubygem-oauth works for non-SCL as well (lzap+git@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)
|
|||
* Wed Feb 27 2013 Miroslav Suchý <msuchy@redhat.com> 0.4.7-3
|
|||
- new package built with tito
|
|||
* Thu Nov 08 2012 Miroslav Suchý <msuchy@redhat.com> 0.4.7-2
|
|||
- fixing requires and buildrequires for F17 (msuchy@redhat.com)
|
|||
* Tue Nov 06 2012 Ivan Necas <inecas@redhat.com> 0.4.7-1
|
|||
- rebase so 0.4.7
|
|||
* Fri Jan 14 2011 Shannon Hughes <shughes@redhat.com> 0.4.4-1
|
|||
- new package built with tito
|
|||
* Fri Jan 14 2011 Shannon Hughes <shughes@redhat.com> - 0.4.4-1
|
|||
- Initial package
|