File ruby-augeas.spec of Package ruby-augeas
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
Name: ruby-augeas
Version: 0.3.0
Release: 4
Summary: Ruby bindings for Augeas
Group: Development/Languages
License: LGPLv2+
URL: http://augeas.net
Source0: http://augeas.net/download/ruby/ruby-augeas-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ruby ruby-devel
BuildRequires: augeas-devel >= 0.5.1
BuildRequires: pkgconfig
Requires: libaugeas0 >= 0.5.1
Provides: ruby(augeas) = %{version}
%description
Ruby bindings for augeas.
%prep
%setup -q
%build
export CFLAGS="$RPM_OPT_FLAGS"
cd ext/augeas
ruby extconf.rb
make
%install
rm -rf %{buildroot}
install -d -m0755 %{buildroot}%{ruby_sitelib}
install -d -m0755 %{buildroot}%{ruby_sitearch}
install -p -m0644 lib/augeas.rb %{buildroot}%{ruby_sitelib}
install -p -m0755 ext/augeas/_augeas.so %{buildroot}%{ruby_sitearch}
%check
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING README.rdoc NEWS
%{ruby_sitelib}/augeas.rb
%{ruby_sitearch}/_augeas.so
%changelog
* Wed Aug 12 2009 David Lutterkort <lutter@redhat.com> - 0.3.0-1
- New version
* Thu Dec 18 2008 David Lutterkort <lutter@redhat.com> - 0.2.0-3
- Fix busted build section
* Thu Dec 18 2008 David Lutterkort <lutter@redhat.com> - 0.2.0-2
- Replace use of rake by direct extconf/make invocation since there is no
rake in EL-4
* Tue Aug 26 2008 David Lutterkort <dlutter@redhat.com> - 0.2.0-1
- New version
* Fri May 9 2008 David Lutterkort <dlutter@redhat.com> - 0.1.0-1
- Fixed up in accordance with Fedora guidelines
* Mon Mar 3 2008 Bryan Kearney <bkearney@redhat.com> - 0.0.1-1
- Initial specfile