-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruby-augeas.spec
65 lines (48 loc) · 1.65 KB
/
ruby-augeas.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
%{!?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: @VERSION@
Release: 1%{?dist}
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 rubygem(rake)
BuildRequires: augeas-devel >= 0.5.1
BuildRequires: pkgconfig
Requires: ruby(abi) = 1.8
Requires: augeas-libs >= 0.5.1
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 NEWS
%{ruby_sitelib}/augeas.rb
%{ruby_sitearch}/_augeas.so
%changelog
* Wed Aug 12 2009 David Lutterkort <[email protected]> - 0.3.0-1
- New version
* Tue Aug 26 2008 David Lutterkort <[email protected]> - 0.2.0-1
- New version
* Fri May 9 2008 David Lutterkort <[email protected]> - 0.1.0-1
- Fixed up in accordance with Fedora guidelines
* Mon Mar 3 2008 Bryan Kearney <[email protected]> - 0.0.1-1
- Initial specfile