summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2021-09-15 21:17:12 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2021-09-15 21:17:12 +0000
commit4f4e193ebfcb2c5d82f8c92af4b844bf4ea42bad (patch)
treef6437ed42109d3a607603f430fbd373479775985
parent75bb57f9f0fd317aed0d38250d628be401f6c6ff (diff)
automatic import of rubygem-source-toolsHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--rubygem-source-tools.spec77
-rw-r--r--sources1
3 files changed, 79 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..387b2ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/source-tools-0.6.1.gem
diff --git a/rubygem-source-tools.spec b/rubygem-source-tools.spec
new file mode 100644
index 0000000..40f0713
--- /dev/null
+++ b/rubygem-source-tools.spec
@@ -0,0 +1,77 @@
+# Generated from source-tools-0.6.1.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name source-tools
+
+Name: rubygem-%{gem_name}
+Version: 0.6.1
+Release: 1%{?dist}
+Summary: source code tools collection
+License: Apache License 2.0
+URL: https://github.com/godfat/source-tools
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+BuildArch: noarch
+
+%description
+source code tools collection.
+
+
+%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}/source-tools
+%exclude %{gem_instdir}/.gitignore
+%{gem_instdir}/.gitmodules
+%{gem_instdir}/CHANGES.md
+%{gem_instdir}/TODO.md
+%{gem_instdir}/bin
+%{gem_libdir}
+%{gem_instdir}/task
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.md
+%{gem_instdir}/Rakefile
+%{gem_instdir}/source-tools.gemspec
+
+%changelog
+* Wed Sep 15 2021 mockbuilder - 0.6.1-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..897d1e0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6f0cc8ed1ffb83d88ea87008c3469b46 source-tools-0.6.1.gem