summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2021-08-24 12:58:28 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2021-08-24 12:58:28 +0000
commit01cbd38de9250b822611585e2464911167be7734 (patch)
tree8499af85ea4714e87240b66159c7fe45265367be
parent9c82deb201381783b067236b2618f1cec8645fbe (diff)
automatic import of rubygem-multi_timeoutHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--rubygem-multi_timeout.spec71
-rw-r--r--sources1
3 files changed, 73 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..cb417f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/multi_timeout-1.1.0.gem
diff --git a/rubygem-multi_timeout.spec b/rubygem-multi_timeout.spec
new file mode 100644
index 0000000..426bd7b
--- /dev/null
+++ b/rubygem-multi_timeout.spec
@@ -0,0 +1,71 @@
+# Generated from multi_timeout-1.1.0.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name multi_timeout
+
+Name: rubygem-%{gem_name}
+Version: 1.1.0
+Release: 1%{?dist}
+Summary: Use multiple timeouts to soft and then hard kill a command
+License: MIT
+URL: https://github.com/grosser/multi_timeout
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby >= 2.0.0
+BuildArch: noarch
+
+%description
+Use multiple timeouts to soft and then hard kill a command.
+
+
+%package doc
+Summary: Documentation for %{name}
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}.
+
+%prep
+%setup -q -n %{gem_name}-%{version}
+
+%build
+# Create the gem as gem install only works on a gem file
+gem build ../%{gem_name}-%{version}.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}/
+
+
+mkdir -p %{buildroot}%{_bindir}
+cp -a .%{_bindir}/* \
+ %{buildroot}%{_bindir}/
+
+find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
+
+%check
+pushd .%{gem_instdir}
+# Run the test suite.
+popd
+
+%files
+%dir %{gem_instdir}
+%{_bindir}/multi-timeout
+%license %{gem_instdir}/MIT-LICENSE
+%{gem_instdir}/bin
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+
+
+%changelog
+* Tue Aug 24 2021 mockbuilder - 1.1.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..fd4dae3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cdf70c07295d52e6127ea6181022deee multi_timeout-1.1.0.gem