Skip to content

Commit

Permalink
new, version 0.8.3
Browse files Browse the repository at this point in the history
fails to build with heimdal
timfel/krb5-auth#8
  • Loading branch information
glensc committed Mar 20, 2016
0 parents commit e8f2247
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions ruby-timfel-krb5-auth.spec
@@ -0,0 +1,47 @@
%define pkgname timfel-krb5-auth
Summary: Kerberos binding for Ruby
Name: ruby-%{pkgname}
Version: 0.8.3
Release: 0.1
License: LGPL
Group: Development/Languages
Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
# Source0-md5: bf75dfd837c153f34566f4244b5ca081
URL: https://github.com/timfel/krb5-auth
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.656
BuildRequires: ruby-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Kerberos binding for Ruby.

%prep
%setup -q -n %{pkgname}-%{version}

%build
# write .gemspec
%__gem_helper spec

cd ext
%{__ruby} extconf.rb
%{__make} \
CC="%{__cc}" \
LDFLAGS="%{rpmldflags}" \
CFLAGS="%{rpmcflags} -fPIC"

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README
%{ruby_vendorlibdir}/%{pkgname}.rb
%{ruby_vendorlibdir}/%{pkgname}
%{ruby_specdir}/%{pkgname}-%{version}.gemspec

0 comments on commit e8f2247

Please sign in to comment.