diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-04-18 23:05:18 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-04-18 23:05:18 +0000 |
commit | e1c1363b755ecdce19e864e22d98e7dfa1f7130c (patch) | |
tree | ae40fecac4d87d42bdb09e3276184f434eaa23c8 | |
parent | 03009906a9d756e2a9391b74afe91b64c660bfb6 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-droonga-message-pack-packer.spec | 73 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/droonga-message-pack-packer-1.0.2.gem diff --git a/rubygem-droonga-message-pack-packer.spec b/rubygem-droonga-message-pack-packer.spec new file mode 100644 index 0000000..bc6f9ba --- /dev/null +++ b/rubygem-droonga-message-pack-packer.spec @@ -0,0 +1,73 @@ +# Generated from droonga-message-pack-packer-1.0.2.gem by gem2rpm -*- rpm-spec -*- +%global gem_name droonga-message-pack-packer + +Name: rubygem-%{gem_name} +Version: 1.0.2 +Release: 1%{?dist} +Summary: A MessagePack packer for Droonga message +License: LGPL-2.1 +URL: https://github.com/droonga/droonga-message-pack-packer-ruby +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby >= 1.9.3 +# BuildRequires: rubygem(packnga) +# BuildRequires: rubygem(test-unit) +BuildArch: noarch + +%description +This MessagePack packer packs time values into W3C-TDF format string +automatically. Because it is a rule in Droonga message. + + +%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} +# ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' +popd + +%files +%dir %{gem_instdir} +%exclude %{gem_instdir}/.gitignore +%license %{gem_instdir}/LICENSE.txt +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%{gem_instdir}/Gemfile +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%doc %{gem_instdir}/doc +%{gem_instdir}/droonga-message-pack-packer.gemspec +%{gem_instdir}/test + +%changelog +* Mon Apr 18 2022 mockbuilder - 1.0.2-1 +- Initial package @@ -0,0 +1 @@ +59e2a08ac24d235b3c923083c1b6d01f droonga-message-pack-packer-1.0.2.gem |