summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2021-09-13 05:12:07 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2021-09-13 05:12:07 +0000
commit9c825c43e5e5e36bbda551cb6d0f2c393d536fd1 (patch)
treef90e95addc744059e8a44f70db90add34ac649fe
parente58ab2682bd5569f0279d1df33c5eaa17d09952c (diff)
automatic import of rubygem-cuba-generatorHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--rubygem-cuba-generator.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f4c77d4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cuba-generator-0.0.7.gem
diff --git a/rubygem-cuba-generator.spec b/rubygem-cuba-generator.spec
new file mode 100644
index 0000000..3f1fdb6
--- /dev/null
+++ b/rubygem-cuba-generator.spec
@@ -0,0 +1,78 @@
+# Generated from cuba-generator-0.0.7.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name cuba-generator
+
+Name: rubygem-%{gem_name}
+Version: 0.0.7
+Release: 1%{?dist}
+Summary: Application Generator for Cuba framework
+License: MIT
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+# BuildRequires: rubygem(rspec) >= 3.1.0
+# BuildRequires: rubygem(rspec) < 3.2
+BuildArch: noarch
+
+%description
+Helps create cuba projects through a minimalist generator.
+
+
+%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}
+# rspec spec
+popd
+
+%files
+%dir %{gem_instdir}
+%{_bindir}/cuba
+%exclude %{gem_instdir}/.gitignore
+%exclude %{gem_instdir}/.travis.yml
+%license %{gem_instdir}/LICENSE.txt
+%{gem_instdir}/bin
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%{gem_instdir}/Gemfile
+%doc %{gem_instdir}/README.md
+%{gem_instdir}/Rakefile
+%{gem_instdir}/cuba-generator.gemspec
+%{gem_instdir}/spec
+
+%changelog
+* Mon Sep 13 2021 mockbuilder - 0.0.7-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..b750194
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7dd790c3ab16aa2f5eb3f77a41e153c5 cuba-generator-0.0.7.gem