This repository has been archived by the owner on Oct 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
rubygem-hammer_cli_sam.spec
76 lines (62 loc) · 1.91 KB
/
rubygem-hammer_cli_sam.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
66
67
68
69
70
71
72
73
74
75
76
%global gem_name hammer_cli_sam
%global confdir hammer
%if 0%{?rhel} < 7
%global gem_dir /usr/lib/ruby/gems/1.8
%endif
%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}
Summary: SAM commands for Hammer
Name: rubygem-%{gem_name}
Version: 1.0.1
Release: 1%{?dist}
Group: Development/Languages
License: GPLv3
URL: http://github.com/Katello/hammer-cli-sam
Source0: %{gem_name}-%{version}.gem
%if !( 0%{?rhel} > 6 || 0%{?fedora} > 18 )
Requires: ruby(abi)
%endif
Requires: ruby(rubygems)
Requires: rubygem(hammer_cli) >= 0.1.1
BuildRequires: ruby(rubygems)
%if 0%{?fedora} || 0%{?rhel} > 6
BuildRequires: rubygems-devel
%endif
BuildRequires: ruby
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description
Hammer-CLI-SAM is a Hammer module which provides connectivity to a SAM server.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}
%prep
%setup -q -c -T
mkdir -p .%{gem_dir}
gem install --local --install-dir .%{gem_dir} \
--force %{SOURCE0}
%install
mkdir -p %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d
install -m 755 .%{gem_instdir}/config/sam.yml %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/sam.yml
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%files
%dir %{gem_instdir}
%{gem_instdir}/
%config(noreplace) %{_sysconfdir}/%{confdir}/cli.modules.d/sam.yml
%exclude %{gem_dir}/cache/%{gem_name}-%{version}.gem
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%files doc
%doc %{gem_dir}/doc/%{gem_name}-%{version}
%changelog
* Mon Aug 03 2015 Adam Price <komidore64@gmail.com> 1.0.1-1
- Move config file into config directory and deploy via gem.
(ericdhelms@gmail.com)
* Wed Mar 04 2015 Adam Price <komidore64@gmail.com> 1.0.0-1
- new package built with tito
* Wed Dec 03 2014 Mike McCune - 0.0.1-1
- Initial package