diff --git a/rubygem-sys-uname.spec b/rubygem-sys-uname.spec new file mode 100644 index 0000000..d47e74a --- /dev/null +++ b/rubygem-sys-uname.spec @@ -0,0 +1,64 @@ +%global gem_name sys-uname +Name: rubygem-%{gem_name} +Version: 1.2.2 +Release: 1 +Summary: An interface for returning uname (platform) information +License: ASL 2.0 +URL: http://github.com/djberg96/sys-uname +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) rubygems-devel ruby rubygem(rspec) rubygem(ffi) +BuildArch: noarch +%description +The sys-uname library provides an interface for gathering information +about your current platform. The library is named after the Unix 'uname' +command but also works on MS Windows. Available information includes +OS name, OS version, system name and so on. Additional information is +available for certain platforms. + +%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 +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} +rspec spec +popd + +%files +%dir %{gem_instdir} +%{gem_instdir}/CHANGES.md +%license %{gem_instdir}/LICENSE +%{gem_instdir}/MANIFEST.md +%exclude %{gem_instdir}/certs +%{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}/examples +%{gem_instdir}/spec +%{gem_instdir}/sys-uname.gemspec + +%changelog +* Mon Jan 9 2023 liyanan - 1.2.2-1 +- package init diff --git a/sys-uname-1.2.2.gem b/sys-uname-1.2.2.gem new file mode 100644 index 0000000..c0f861b Binary files /dev/null and b/sys-uname-1.2.2.gem differ