Revision 7be6b39c
Added by Eric Helms almost 8 years ago
rubygem-hammer_cli_csv.spec | ||
---|---|---|
1 |
%global gemname hammer_cli_csv |
|
1 |
%global gem_name hammer_cli_csv
|
|
2 | 2 |
%global confdir hammer |
3 | 3 |
|
4 |
%global geminstdir %{gem_dir}/gems/%{gemname}-%{version} |
|
5 |
|
|
6 | 4 |
Summary: CSV input/output command plugin for the Hammer CLI |
7 |
Name: rubygem-%{gemname} |
|
5 |
Name: rubygem-%{gem_name}
|
|
8 | 6 |
Version: 1.0.0 |
9 | 7 |
Release: 5%{?dist} |
10 | 8 |
Group: Development/Languages |
11 | 9 |
License: GPLv3 |
12 | 10 |
URL: https://github.com/Katello/hammer-cli-csv |
13 |
Source0: %{gemname}-%{version}.gem |
|
14 |
Source1: csv.yml |
|
11 |
Source0: %{gem_name}-%{version}.gem |
|
15 | 12 |
|
16 | 13 |
%if 0%{?rhel} == 6 |
17 | 14 |
Requires: ruby(abi) |
... | ... | |
24 | 21 |
BuildRequires: rubygems-devel |
25 | 22 |
BuildRequires: ruby |
26 | 23 |
BuildArch: noarch |
27 |
Provides: rubygem(%{gemname}) = %{version} |
|
24 |
Provides: rubygem(%{gem_name}) = %{version}
|
|
28 | 25 |
|
29 | 26 |
%description |
30 | 27 |
CSV input/output command plugin for the Hammer CLI. |
... | ... | |
46 | 43 |
|
47 | 44 |
%install |
48 | 45 |
mkdir -p %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d |
49 |
install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/csv.yml
|
|
46 |
install -m 755 .%{gem_instdir}/config/csv.yml %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/csv.yml
|
|
50 | 47 |
mkdir -p %{buildroot}%{gem_dir} |
51 | 48 |
cp -pa .%{gem_dir}/* \ |
52 | 49 |
%{buildroot}%{gem_dir}/ |
53 | 50 |
|
54 | 51 |
%files |
55 |
%dir %{geminstdir} |
|
56 |
%{geminstdir}/lib |
|
52 |
%dir %{gem_instdir}
|
|
53 |
%{gem_instdir}/lib
|
|
57 | 54 |
%config(noreplace) %{_sysconfdir}/%{confdir}/cli.modules.d/csv.yml |
58 |
%exclude %{gem_dir}/cache/%{gemname}-%{version}.gem |
|
59 |
%{gem_dir}/specifications/%{gemname}-%{version}.gemspec |
|
55 |
%exclude %{gem_dir}/cache/%{gem_name}-%{version}.gem
|
|
56 |
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
|
|
60 | 57 |
|
61 | 58 |
%files doc |
62 |
%doc %{gem_dir}/doc/%{gemname}-%{version} |
|
59 |
%doc %{gem_dir}/doc/%{gem_name}-%{version} |
|
60 |
%doc %{gem_instdir}/config |
|
63 | 61 |
|
64 | 62 |
%changelog |
65 | 63 |
* Thu Mar 05 2015 Eric D. Helms <ericdhelms@gmail.com> 1.0.0-5 |
Also available in: Unified diff
Refs #9848: Move config file to config directory and provide via gem