diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-08-23 23:41:31 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-08-23 23:41:31 +0000 |
commit | 839c1fc76508a4893cad4f963d99bd01ca75190d (patch) | |
tree | 74ea5e9dab581b25cf76134bd85ae88043962bb0 | |
parent | c84702bb68574bade878e7e84e87e583aafb95e9 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-has_niklas_left_yet.spec | 80 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 82 insertions, 0 deletions
@@ -0,0 +1 @@ +/has_niklas_left_yet-0.0.3.gem diff --git a/rubygem-has_niklas_left_yet.spec b/rubygem-has_niklas_left_yet.spec new file mode 100644 index 0000000..6ae82f2 --- /dev/null +++ b/rubygem-has_niklas_left_yet.spec @@ -0,0 +1,80 @@ +# Generated from has_niklas_left_yet-0.0.3.gem by gem2rpm -*- rpm-spec -*- +%global gem_name has_niklas_left_yet + +Name: rubygem-%{gem_name} +Version: 0.0.3 +Release: 1%{?dist} +Summary: Countdown to Niklas leaving +License: MIT +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby +# BuildRequires: rubygem(rspec) +# BuildRequires: rubygem(delorean) +BuildArch: noarch + +%description +A gem to help me make some friends which +countdowns how long Niklas has left in the +office. + + +%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}/has_niklas_left_yet +%exclude %{gem_instdir}/.gitignore +%license %{gem_instdir}/LICENSE.txt +%{gem_instdir}/bin +%{gem_libdir} +%{gem_instdir}/tasks +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%{gem_instdir}/Gemfile +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%{gem_instdir}/has_niklas_left_yet.gemspec +%{gem_instdir}/spec + +%changelog +* Mon Aug 23 2021 mockbuilder - 0.0.3-1 +- Initial package @@ -0,0 +1 @@ +a57874b643bb09c4bb28e9643f70d06f has_niklas_left_yet-0.0.3.gem |