ruby-nokogiri/ruby-nokogiri.spec

58 lines
1.7 KiB
RPMSpec

Name: ruby-nokogiri
Version: 1.13.4
Release: 1mamba
Summary: An HTML, XML, SAX, and Reader parser
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://nokogiri.org
Source: https://rubygems.org/downloads/nokogiri-%{version}.gem
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: liblzma-devel
BuildRequires: libruby-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: ruby-devel
BuildRequires: ruby-mini_portile2
Requires: ruby
%description
An HTML, XML, SAX, and Reader parser.
%prep
%setup -q -c
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')"
gem install --no-user-install --ignore-dependencies -i "%{buildroot}$gemdir" -n "%{buildroot}/usr/bin" %{SOURCE0}
rm -rf %{buildroot}${gemdir}/cache
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/nokogiri
%dir %{_libdir}/ruby/gems/*/extensions/*/*/nokogiri-%{version}
%{_libdir}/ruby/gems/*/extensions/*/*/nokogiri-%{version}/*
%dir %{_libdir}/ruby/gems/*/doc/nokogiri-%{version}
%{_libdir}/ruby/gems/*/doc/nokogiri-%{version}/*
%dir %{_libdir}/ruby/gems/*/gems/nokogiri-%{version}
%{_libdir}/ruby/gems/*/gems/nokogiri-%{version}/*
%{_libdir}/ruby/gems/*/specifications/nokogiri-%{version}.gemspec
%doc nokogiri-%{version}/LICENSE.md
%changelog
* Sun Apr 24 2022 Automatic Build System <autodist@mambasoft.it> 1.13.4-1mamba
- automatic version update by autodist
* Sat Apr 23 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13.3-1mamba
- package created using the webbuild interface