diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-08-25 16:05:48 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-08-25 16:05:48 +0000 |
commit | c5198f1ba22f78f0b12f2d8fe48ea0064fd8e64a (patch) | |
tree | 2f5b9c09f90a9ffa2fd8fc1a11172aaff551ed51 | |
parent | 82d6ba5b181c306d8d6479bfe9e1fa50e4b5fa99 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-useragent.spec | 66 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 68 insertions, 0 deletions
@@ -0,0 +1 @@ +/useragent-0.16.10.gem diff --git a/rubygem-useragent.spec b/rubygem-useragent.spec new file mode 100644 index 0000000..38daa78 --- /dev/null +++ b/rubygem-useragent.spec @@ -0,0 +1,66 @@ +# Generated from useragent-0.16.10.gem by gem2rpm -*- rpm-spec -*- +%global gem_name useragent + +Name: rubygem-%{gem_name} +Version: 0.16.10 +Release: 1%{?dist} +Summary: HTTP User Agent parser +License: MIT +URL: https://github.com/gshutler/useragent +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby +# BuildRequires: rubygem(rspec) >= 3.0 +# BuildRequires: rubygem(rspec) < 4 +BuildArch: noarch + +%description +HTTP User Agent parser. + + +%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} +# rspec spec +popd + +%files +%dir %{gem_instdir} +%license %{gem_instdir}/LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.md + +%changelog +* Wed Aug 25 2021 mockbuilder - 0.16.10-1 +- Initial package @@ -0,0 +1 @@ +64c3f5bb7fe3fe5c0c36be5bcb574f17 useragent-0.16.10.gem |