Initial import (#1460662).

f38
Jun Aruga 8 years ago
parent d4a4f8be25
commit fb234ddf19

3
.gitignore vendored

@ -0,0 +1,3 @@
/mustermann-1.0.0-mustermann-contrib.tgz
/mustermann-1.0.0-support.tgz
/mustermann-1.0.0.gem

@ -0,0 +1,94 @@
# Generated from mustermann-1.0.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name mustermann
# Circular dependency with rubygem-sinatra
%{?_with_bootstrap: %global bootstrap 1}
Name: rubygem-%{gem_name}
Version: 1.0.0
Release: 1%{?dist}
Summary: Use patterns like regular expressions
License: MIT
URL: https://github.com/sinatra/mustermann
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Support and mustermann-contrib routines required by test suite.
# git clone https://github.com/sinatra/mustermann.git && cd mustermann
# git checkout v1.0.0 && tar czvf mustermann-1.0.0-support.tgz support/
Source1: mustermann-1.0.0-support.tgz
# tar czvf mustermann-1.0.0-mustermann-contrib.tgz mustermann-contrib/
Source2: mustermann-1.0.0-mustermann-contrib.tgz
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby >= 2.2.0
BuildRequires: rubygem(rspec)
BuildRequires: rubygem(rspec-its)
%if ! 0%{?bootstrap}
BuildRequires: rubygem(sinatra)
%endif
BuildRequires: rubygem(rack-test)
BuildArch: noarch
%description
library implementing patterns that behave like regular expressions.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version} -b 1 -b 2
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 compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%if ! 0%{?bootstrap}
# Run the test suite
%check
# We don't ship tool.
sed -i "/^require 'tool\/warning_filter'/ s/^/#/" \
%{_builddir}/support/lib/support/env.rb
# We don't test coverage.
sed -i "/^require 'support\/coverage'/ s/^/#/" \
%{_builddir}/support/lib/support.rb
pushd .%{gem_instdir}
rspec -I%{_builddir}/{support,mustermann-contrib}/lib spec
popd
%endif
%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%exclude %{gem_instdir}/mustermann.gemspec
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%{gem_instdir}/bench
%{gem_instdir}/spec
%changelog
* Fri Jun 09 2017 Jun Aruga <jaruga@redhat.com> - 1.0.0-1
- Initial package

@ -0,0 +1,3 @@
SHA512 (mustermann-1.0.0-mustermann-contrib.tgz) = 6b560ea312c861ae4526733e96abf64dd2e42cdcb5babff46a384ea0712b8b8db7bfd0ed1d736670b32f35311afe8b18c095d25f3c3fb7b8977b94f5199e1082
SHA512 (mustermann-1.0.0-support.tgz) = 5ac7bdc90ebff73e57b5f893b516a3249ff7802b9b2c29c9705360428a6741ef5410dd9791e1c8add181bb8dc32555de1cb3513235839541f19ea7e1f38546a8
SHA512 (mustermann-1.0.0.gem) = eaccd4784373d03f9fabfa645e5c1272b29f5b2fb54942bf36d0f0cb033fdd50ac34ee2cf4c5928f20c6cf25d2a5fd9442ed56ebdce93ca8a3c9efff7014256b
Loading…
Cancel
Save