diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-04-18 18:37:17 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-04-18 18:37:17 +0000 |
commit | bd63562f985b4630adcc87a9877c38c972804263 (patch) | |
tree | 95160f336dbab8af5b7e59db7e5b0d55b6fc18ca | |
parent | d377b33323e1d2a6210eef51dbdea4d2213005b8 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-contents.spec | 71 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 73 insertions, 0 deletions
@@ -0,0 +1 @@ +/contents-0.0.1.gem diff --git a/rubygem-contents.spec b/rubygem-contents.spec new file mode 100644 index 0000000..bab82eb --- /dev/null +++ b/rubygem-contents.spec @@ -0,0 +1,71 @@ +# Generated from contents-0.0.1.gem by gem2rpm -*- rpm-spec -*- +%global gem_name contents + +Name: rubygem-%{gem_name} +Version: 0.0.1 +Release: 1%{?dist} +Summary: Rails statis pages with slugs, nestings and templates +License: MIT +URL: https://github.com/droptheplot/contents +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby +# BuildRequires: rubygem(sqlite3) +# BuildRequires: rubygem(rails_admin) >= 0.8.1 +# BuildRequires: rubygem(rails_admin) < 0.9 +BuildArch: noarch + +%description +Rails statis pages with slugs, nestings and templates. + + +%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}/ + + + +%check +pushd .%{gem_instdir} +# Run the test suite. +popd + +%files +%dir %{gem_instdir} +%license %{gem_instdir}/MIT-LICENSE +%{gem_instdir}/app +%{gem_instdir}/config +%{gem_instdir}/db +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile + +%changelog +* Mon Apr 18 2022 mockbuilder - 0.0.1-1 +- Initial package @@ -0,0 +1 @@ +10f1e581222b77275f6ebcd94d3219b5 contents-0.0.1.gem |