ruby-augeas/ruby-augeas-0.3.spec

Name: ruby-augeas
Summary: Ruby bindings for Augeas
Version: 0.3.0
Release: 2
License: LGPLv2+
Group: Development/Languages
URL: http://augeas.net/
Description: Ruby bindings for Augeas.

CentOS 7 x86_64

The build could not start because the following file is missing: ruby-augeas-0.3.0.tgz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: ruby-augeas-0.3.0.tgz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: shuff
#
# ExclusiveDist: el6
#

%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}

%global rubyabi 1.8

Summary: Ruby bindings for Augeas
Name: ruby-augeas
Version: 0.3.0
Release: 2%{?dist}
Group: Development/Languages
License: LGPLv2+
URL: http://augeas.net/

Source: http://augeas.net/download/ruby/ruby-augeas-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-root

BuildRequires: augeas-devel >= 0.5.1
BuildRequires: pkgconfig
BuildRequires: ruby
BuildRequires: ruby-devel
BuildRequires: rubygem(rake)

Requires: ruby(abi) = %{rubyabi}
Requires: augeas-libs >= 0.5.1

Provides: ruby(augeas) = %{version}

%description
Ruby bindings for Augeas.

%prep
%setup

%build
export CFLAGS="$RPM_OPT_FLAGS"
rake build

%install
%{__rm} -rf %{buildroot}

# gotta do it by hand
%{__install} -m0755 -d %{buildroot}%{ruby_sitearch}
%{__install} -m0755 -d %{buildroot}%{ruby_sitelib}
%{__install} -m0644 ext/augeas/_augeas.so %{buildroot}%{ruby_sitearch}
%{__install} -m0644 lib/augeas.rb %{buildroot}%{ruby_sitelib}

%check
rake test

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, -)
%doc COPYING NEWS README.rdoc
%{ruby_sitearch}/*
%{ruby_sitelib}/*

%changelog
* Tue Jun 28 2011 Yury V. Zaytsev <yury@shurup.com> - 0.3.0-2
- Rebuild for RHEL6, versions 0.4.0+ are RFX-ed.

* Mon Jan 31 2011 Steve Huff <shuff@vecna.org> - 0.3.0-1
- Initial package (ported from EPEL).