diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-13 08:09:49 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-13 08:09:49 +0000 |
commit | 71764162040c369c61dbd9047ca352f809185060 (patch) | |
tree | 505dd1007fd51a25008687c384b10dd8438b1678 | |
parent | cdf95be19969a95528964aa32dc3b02a79ed2a59 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-easy_transilien.spec | 76 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -0,0 +1 @@ +/easy_transilien-1.0.1.gem diff --git a/rubygem-easy_transilien.spec b/rubygem-easy_transilien.spec new file mode 100644 index 0000000..0ea795f --- /dev/null +++ b/rubygem-easy_transilien.spec @@ -0,0 +1,76 @@ +# Generated from easy_transilien-1.0.1.gem by gem2rpm -*- rpm-spec -*- +%global gem_name easy_transilien + +Name: rubygem-%{gem_name} +Version: 1.0.1 +Release: 1%{?dist} +Summary: See https://github.com/ook/easy_transilien +License: MIT +URL: https://github.com/ook/easy_transilien +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby +BuildArch: noarch + +%description +Access SNCF Transilien micro-services datan the easy way: enable access to +their theoric offer. + + +%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} +%exclude %{gem_instdir}/.gitignore +%{gem_instdir}/.ruby-version +%exclude %{gem_instdir}/.travis.yml +%{gem_instdir}/Guardfile +%license %{gem_instdir}/LICENSE.txt +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%exclude %{gem_instdir}/.rspec +%doc %{gem_instdir}/Changelog.md +%{gem_instdir}/Gemfile +%{gem_instdir}/Gemfile.lock +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%{gem_instdir}/easy_transilien.gemspec +%{gem_instdir}/spec + +%changelog +* Mon Sep 13 2021 mockbuilder - 1.0.1-1 +- Initial package @@ -0,0 +1 @@ +e037adecb1d45a5e11167f2d2d75eb3e easy_transilien-1.0.1.gem |