From b3045222a2c0f9bc2a9fabe1f776baf8759a8a43 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:33:33 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.8.0-1mamba;Sat Apr 23 2022] --- README.md | 2 ++ ruby-mini_portile2.spec | 53 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 ruby-mini_portile2.spec diff --git a/README.md b/README.md index b198240..b3d46bf 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ruby-mini_portile2 +Simple autoconf builder for developers. + diff --git a/ruby-mini_portile2.spec b/ruby-mini_portile2.spec new file mode 100644 index 0000000..03747c9 --- /dev/null +++ b/ruby-mini_portile2.spec @@ -0,0 +1,53 @@ +Name: ruby-mini_portile2 +Version: 2.8.0 +Release: 1mamba +Summary: Simple autoconf builder for developers +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/flavorjones/mini_portile +Source: https://github.com/flavorjones/mini_portile.git/v%{version}/mini_portile-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: ruby-devel +Requires: ruby + +%description +Simple autoconf builder for developers. + +%prep +%setup -q -n mini_portile-%{version} + +sed -r 's|~>|>=|g' -i mini_portile2.gemspec +sed 's|git ls-files -z|find -type f -print0|' -i mini_portile2.gemspec + +%build +gem build mini_portile2.gemspec + +%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" \ + mini_portile2-%{version}.gem +rm -rf %{buildroot}${gemdir}/cache + +rm -rf %{buildroot}%{_libdir}/ruby/gems/*/gems/mini_portile2-2.8.0/.github + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_libdir}/ruby/gems/*/doc/mini_portile2-%{version} +%{_libdir}/ruby/gems/*/doc/mini_portile2-%{version}/* +%dir %{_libdir}/ruby/gems/*/gems/mini_portile2-%{version} +%{_libdir}/ruby/gems/*/gems/mini_portile2-%{version}/* +%{_libdir}/ruby/gems/*/specifications/mini_portile2-%{version}.gemspec +%doc LICENSE.txt + +%changelog +* Sat Apr 23 2022 Silvan Calarco 2.8.0-1mamba +- package created using the webbuild interface