From 90a70c39e84b45fde1125b0167bbf062cca57df4 Mon Sep 17 00:00:00 2001 From: lingsheng Date: Thu, 23 Sep 2021 18:58:18 +0800 Subject: [PATCH] Fix exec permission in ruby/2.5.0/bin, change require to mariadb-server --- obs-bundled-gems.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/obs-bundled-gems.spec b/obs-bundled-gems.spec index 2ba5480..b8b1d1b 100644 --- a/obs-bundled-gems.spec +++ b/obs-bundled-gems.spec @@ -19,7 +19,7 @@ %global rack_version 2.0.8 Name: obs-bundled-gems Version: 2.10.1 -Release: 2 +Release: 3 Summary: The Open Build Service -- Bundled Gems License: GPL-2.0-only OR GPL-3.0-only URL: http://www.openbuildservice.org @@ -38,7 +38,7 @@ denpendent gems, and add them to spec file. Summary: Holding dependencies required to run the OBS frontend Requires: build >= 20170315 Requires: memcached >= 1.4 -Requires: mariadb +Requires: mariadb-server Requires: obs-bundled-gems = %{version} Requires: sphinx >= 2.1.8 Requires: perl(GD) @@ -117,8 +117,8 @@ for bin in %{buildroot}%_libdir/obs-api/ruby/*/bin/*; do sed -i -e 's,/usr/bin/env ruby.ruby2.5,/usr/bin/ruby.ruby2.5,' $bin done -# remove exec bit from all other files still containing /usr/bin/env - mostly helper scripts -find %{buildroot} -type f -print0 | xargs -0 grep -l /usr/bin/env | while read file; do +# remove exec bit from all other files still containing /usr/bin/env except ruby/2.5.0/bin - mostly helper scripts +find %{buildroot} -type f -print0 | xargs -0 grep -l /usr/bin/env | grep -v ruby/2.5.0/bin| while read file; do chmod a-x $file done @@ -132,6 +132,9 @@ done %doc README %changelog +* Thu Sep 23 2021 lingsheng 2.10.1-3 +- Fix exec permission in ruby/2.5.0/bin, change require to mariadb-server + * Wed Jun 9 2021 zhaomengchao 2.10.1-2 - fix obs-bundled-gems compilation failed.