3 %bcond_with tests # build without tests
5 %define pkgname mixlib-cli
6 Summary: Simple Ruby mix-in for CLI interfaces
11 Group: Development/Languages
12 Source0: http://gems.rubyforge.org/gems/%{pkgname}-%{version}.gem
13 # Source0-md5: d025beeb0f66c64633f9c27888aa42f3
14 # Patch to silence mixlib-cli tests;
15 # see http://tickets.opscode.com/browse/MIXLIB-8
16 Patch0: mixlib-cli-silence-tests.patch
17 URL: http://github.com/opscode/mixlib-cli
18 BuildRequires: rpm-rubyprov
19 BuildRequires: rpmbuild(macros) >= 1.665
21 BuildRequires: ruby-rake
22 BuildRequires: ruby-rdoc
23 BuildRequires: ruby-rspec
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 A simple mix-in for CLI interfaces, including option parsing.
32 Summary: Documentation for %{name}
34 Requires: %{name} = %{version}-%{release}
37 This package contains documentation for %{name}.
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
54 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
55 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{ruby_vendorlibdir}/mixlib/cli.rb
64 %{ruby_vendorlibdir}/mixlib/cli
65 %{ruby_specdir}/%{pkgname}-%{version}.gemspec
67 # FIXME, who owns the dir?
68 %dir %{ruby_vendorlibdir}/mixlib
72 %defattr(644,root,root,755)