foreman-packaging/rubygem-sequel/rubygem-sequel.spec @ 3325952e
05be91cb | Dominic Cleal | %{?scl:%scl_package rubygem-%{gem_name}}
|
|
%{!?scl:%global pkg_name %{name}}
|
|||
%global gem_name sequel
|
|||
Summary: The Database Toolkit for Ruby
|
|||
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|||
0b27e31b | Dominic Cleal | Version: 4.20.0
|
|
3325952e | Dominic Cleal | Release: 3%{?dist}
|
|
05be91cb | Dominic Cleal | Group: Development/Languages
|
|
License: MIT
|
|||
929790da | Dominic Cleal | URL: http://sequel.jeremyevans.net
|
|
05be91cb | Dominic Cleal | Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
|
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
Requires: %{?scl_prefix_ruby}ruby
|
|||
945b56db | Stephen Benjamin | ||
e4e6840b | Dominic Cleal | %if "%{?scl_ruby}" == "ruby193" || (0%{?el6} && 0%{!?scl:1})
|
|
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}ruby(abi)
|
|
BuildRequires: %{?scl_prefix_ruby}ruby(abi)
|
|||
945b56db | Stephen Benjamin | %else
|
|
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}ruby(release)
|
|
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|||
945b56db | Stephen Benjamin | %endif
|
|
b319e683 | Dominic Cleal | BuildRequires: %{?scl_prefix_ruby}ruby-devel
|
|
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|||
05be91cb | Dominic Cleal | BuildArch: noarch
|
|
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|||
b319e683 | Dominic Cleal | %{?scl:Obsoletes: ruby193-rubygem-%{gem_name}}
|
|
05be91cb | Dominic Cleal | ||
%description
|
|||
The Database Toolkit for Ruby
|
|||
%package doc
|
|||
Summary: Documentation for %{pkg_name}
|
|||
Group: Documentation
|
|||
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|||
b319e683 | Dominic Cleal | %{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc}
|
|
05be91cb | Dominic Cleal | ||
%description doc
|
|||
This package contains documentation for %{pkg_name}.
|
|||
%prep
|
|||
%{?scl:scl enable %{scl} "}
|
|||
gem unpack %{SOURCE0}
|
|||
%{?scl:"}
|
|||
%setup -q -D -T -n %{gem_name}-%{version}
|
|||
%{?scl:scl enable %{scl} "}
|
|||
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|||
%{?scl:"}
|
|||
%build
|
|||
mkdir -p ./%{gem_dir}
|
|||
%{?scl:scl enable %{scl} "}
|
|||
gem build %{gem_name}.gemspec
|
|||
%{?scl:"}
|
|||
#buildroot in %%install
|
|||
%{?scl:scl enable %{scl} "}
|
|||
gem install -V \
|
|||
--local \
|
|||
--install-dir ./%{gem_dir} \
|
|||
--force \
|
|||
--rdoc \
|
|||
%{gem_name}-%{version}.gem
|
|||
%{?scl:"}
|
|||
%install
|
|||
mkdir -p %{buildroot}%{gem_dir}
|
|||
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|||
find %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/bin -type f | xargs chmod a+x
|
|||
chmod a+x %{buildroot}%{gem_instdir}/spec/adapters/db2_spec.rb
|
|||
%clean
|
|||
rm -rf %{buildroot}
|
|||
%files
|
|||
%defattr(-, root, root, -)
|
|||
%{gem_dir}/bin/sequel
|
|||
%doc %{gem_instdir}/README.rdoc
|
|||
%doc %{gem_instdir}/CHANGELOG
|
|||
%{gem_dir}/gems/%{gem_name}-%{version}/
|
|||
%{gem_cache}
|
|||
%{gem_spec}
|
|||
%files doc
|
|||
%defattr(-, root, root, -)
|
|||
%doc %{gem_docdir}
|
|||
%doc %{gem_instdir}/doc
|
|||
%changelog
|
|||
3325952e | Dominic Cleal | * Tue Aug 25 2015 Dominic Cleal <dcleal@redhat.com> 4.20.0-3
|
|
- Fix checks against scl name, optimise rhel/empty SCL conditional
|
|||
(dcleal@redhat.com)
|
|||
- Converted to tfm SCL (dcleal@redhat.com)
|
|||
4461c15e | Dominic Cleal | * Fri Aug 21 2015 Dominic Cleal <dcleal@redhat.com> 4.20.0-2
|
|
- Add smart_proxy_dynflow (RPM) (stbenjam@redhat.com)
|
|||
1d842fcc | Dominic Cleal | * Tue Mar 17 2015 Dominic Cleal <dcleal@redhat.com> 4.20.0-1
|
|
- Update sequel to 4.20.0 (dcleal@redhat.com)
|
|||
32dc9728 | Dominic Cleal | * Mon Dec 15 2014 Dominic Cleal <dcleal@redhat.com> 4.17.0-1
|
|
- Update sequel to 4.17.0 (dcleal@redhat.com)
|
|||
05be91cb | Dominic Cleal | * Thu Mar 14 2013 Miroslav Suchý <msuchy@redhat.com> 3.45.0-4
|
|
- correct BR (msuchy@redhat.com)
|
|||
* Thu Mar 14 2013 Miroslav Suchý <msuchy@redhat.com> 3.45.0-3
|
|||
- run gem spec inside of SC (msuchy@redhat.com)
|
|||
* Thu Mar 14 2013 Miroslav Suchý <msuchy@redhat.com> 3.45.0-2
|
|||
- new package built with tito
|
|||
* Thu Mar 07 2013 Alejandro Pérez <aeperezt@fedoraproject.org> - 3.45.0-1
|
|||
- Initial package
|