!1 package init

From: @lyn1001 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
This commit is contained in:
openeuler-ci-bot 2023-01-19 06:39:55 +00:00 committed by Gitee
commit 3b50027cf8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 64 additions and 0 deletions

64
rubygem-sys-uname.spec Normal file
View File

@ -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 <liyanan32@h-partners.com> - 1.2.2-1
- package init

BIN
sys-uname-1.2.2.gem Normal file

Binary file not shown.