]> git.pld-linux.org Git - packages/ruby-mixlib-config.git/blame - ruby-mixlib-config.spec
- ruby 2.0 rebuild
[packages/ruby-mixlib-config.git] / ruby-mixlib-config.spec
CommitLineData
f9f2d55b
ER
1#
2# Conditional build:
3%bcond_without tests # build without tests
4
1e41923d
ER
5%define pkgname mixlib-config
6Summary: Simple ruby config mix-in
7Name: ruby-%{pkgname}
492d07f6 8Version: 2.1.0
a42297fb 9Release: 2
1e41923d
ER
10License: Apache v2.0
11Group: Development/Languages
12Source0: http://gems.rubyforge.org/gems/%{pkgname}-%{version}.gem
492d07f6 13# Source0-md5: ca4a97d3f5eeeb09afeb7fb5b884305f
1e41923d
ER
14URL: http://github.com/opscode/mixlib-config
15BuildRequires: rpm-rubyprov
f9f2d55b 16BuildRequires: rpmbuild(macros) >= 1.665
8c126815
ER
17%if %{with tests}
18BuildRequires: ruby-rspec
19%endif
1e41923d
ER
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24A class based config mix-in, similar to the one found in Chef.
25
26%package doc
27Summary: Documentation for %{name}
28Group: Documentation
29Requires: %{name} = %{version}-%{release}
30
31%description doc
32This package contains documentation for %{name}.
33
34%prep
35%setup -q
36
37%build
f9f2d55b
ER
38%__gem_helper spec
39
1e41923d
ER
40%if %{with tests}
41rspec
42%endif
43
44%install
45rm -rf $RPM_BUILD_ROOT
f9f2d55b 46install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
1e41923d 47cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
f9f2d55b 48cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
1e41923d
ER
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%files
54%defattr(644,root,root,755)
8c126815 55%doc README.md NOTICE
1e41923d 56%{ruby_vendorlibdir}/mixlib/config.rb
8c126815 57%{ruby_vendorlibdir}/mixlib/config
f9f2d55b 58%{ruby_specdir}/%{pkgname}-%{version}.gemspec
1e41923d
ER
59
60# FIXME, who owns the dir?
61%dir %{ruby_vendorlibdir}/mixlib
This page took 0.055535 seconds and 4 git commands to generate.