package init
This commit is contained in:
parent
ca3ce8a586
commit
4402590c00
64
rubygem-sys-uname.spec
Normal file
64
rubygem-sys-uname.spec
Normal 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
BIN
sys-uname-1.2.2.gem
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user