From 976525564a96fcaa9b8fb298baae9f3b232b4a91 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Wed, 6 Jan 2021 15:24:32 +0100 Subject: [PATCH] Initial package. --- .gitignore | 2 ++ README.md | 3 -- rubygem-webrick.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++ sources | 2 ++ 4 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rubygem-webrick.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16b465d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/webrick-*.gem +/webrick-*-tests.txz diff --git a/README.md b/README.md deleted file mode 100644 index 341d052..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rubygem-webrick - -The rubygem-webrick package diff --git a/rubygem-webrick.spec b/rubygem-webrick.spec new file mode 100644 index 0000000..c42dfa6 --- /dev/null +++ b/rubygem-webrick.spec @@ -0,0 +1,71 @@ +# Generated from webrick-1.7.0.gem by gem2rpm -*- rpm-spec -*- +%global gem_name webrick + +Name: rubygem-%{gem_name} +Version: 1.7.0 +Release: 1%{?dist} +Summary: HTTP server toolkit +License: Ruby and BSD-2-Clause +URL: https://github.com/ruby/webrick +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# Test suite is not packaged with the gem, you may check out it like so: +# git clone --no-checkout https://github.com/ruby/webrick +# cd webrick && git archive -v -o webrick-1.7.0-tests.txz v1.7.0 test +Source1: %{gem_name}-%{version}-tests.txz + +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby >= 2.3.0 +BuildArch: noarch + +%description +WEBrick is an HTTP server toolkit that can be configured as an HTTPS server, a +proxy server, and a virtual-host server. + + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name}. + +%prep +%setup -q -n %{gem_name}-%{version} -b1 + +%build +gem build ../%{gem_name}-%{version}.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +pushd .%{gem_instdir} +# Symlink the test suite. +ln -s %{_builddir}/test . + +ruby -Ilib:test:test/lib -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' +popd + +%files +%dir %{gem_instdir} +%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}/webrick.gemspec + +%changelog +* Fri Dec 18 2020 Pavel Valena - 1.7.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..745978d --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (webrick-1.7.0.gem) = 5f242b50300046fe7c22ecd1640a73e5815e05a72bedfebe6bc39c24c92bd61abdd180860de0d194c0eebbc640b507b6892de181d3b577c5372ace0ca6faf2a3 +SHA512 (webrick-1.7.0-tests.txz) = e8955759dc2460bd6d0747300583bfe73131f38236e4a8be1659505c2b85e118c1e8e4e9a8e47c59d122f4cdcdaf21d31465ea6e4245600f86e0890c0d9bffcc