parent
e78d18eb8e
commit
8dbcdf9f35
@ -0,0 +1 @@
|
|||||||
|
ruby-augeas-0.1.0.tgz
|
@ -0,0 +1,56 @@
|
|||||||
|
%{!?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.1.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Ruby bindings for Augeas
|
||||||
|
Group: Development/Languages
|
||||||
|
|
||||||
|
License: LGPLv2+
|
||||||
|
URL: http://augeas.net
|
||||||
|
Source0: ruby-augeas-0.1.0.tgz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
BuildRequires: ruby ruby-devel rubygem(rake)
|
||||||
|
BuildRequires: augeas-devel >= 0.0.6
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
Requires: ruby(abi) = 1.8
|
||||||
|
Provides: ruby(augeas) = %{version}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Ruby bindings for augeas.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
rake build
|
||||||
|
|
||||||
|
%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
|
||||||
|
rake test
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc COPYING README.rdoc
|
||||||
|
%{ruby_sitelib}/augeas.rb
|
||||||
|
%{ruby_sitearch}/_augeas.so
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Mar 3 2008 Bryan Kearney <bkearney@redhat.com> - 0.0.1-1
|
||||||
|
- Initial specfile
|
||||||
|
|
Loading…
Reference in new issue