diff --git a/rubygem-rkerberos.spec b/rubygem-rkerberos.spec index e64980b..bece613 100644 --- a/rubygem-rkerberos.spec +++ b/rubygem-rkerberos.spec @@ -14,7 +14,7 @@ Summary: A Ruby interface for the the Kerberos library Name: %{?scl_prefix}rubygem-%{gem_name} Version: 0.1.5 -Release: 1%{?dist} +Release: 2%{?dist} Group: Development/Languages License: Artistic 2.0 URL: http://github.com/domcleal/rkerberos @@ -62,6 +62,17 @@ gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} +# Workaround for the following error on ppc{,64) +#In file included from /usr/include/gssrpc/rpc.h:46:0, +# from /usr/include/kadm5/admin.h:45, +# from ./rkerberos.h:9, +# from ccache.c:1: +#/usr/include/gssrpc/xdr.h:123:38: error: unknown type name 'caddr_t' +# bool_t (*x_getbytes)(struct XDR *, caddr_t, u_int); +sed -i \ + -e '\@CFLAGS@s|-pedantic|\0 -D_DEFAULT_SOURCE|' \ + ext/rkerberos/extconf.rb + %{?scl:scl enable %{scl} "} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %{?scl:"} @@ -130,6 +141,10 @@ popd %changelog +* Thu Jan 12 2017 Mamoru TASAKA - 0.1.5-2 +- F-26: rebuild for ruby24 +- add -D_DEFAULT_SOURCE for now + * Mon Oct 24 2016 Miroslav Suchý 0.1.5-1 - rebase to 0.1.5