|
# This package contains macros that provide functionality relating to
|
|
# Software Collections. These macros are not used in default
|
|
# Fedora builds, and should not be blindly copied or enabled.
|
|
# Specifically, the "scl" macro must not be defined in official Fedora
|
|
# builds. For more information, see:
|
|
# http://docs.fedoraproject.org/en-US/Fedora_Contributor_Documentation
|
|
# /1/html/Software_Collections_Guide/index.html
|
|
|
|
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
%{!?scl:%global pkg_name %{name}}
|
|
|
|
%global gem_name foreman_memcache
|
|
|
|
%global foreman_dir /usr/share/foreman
|
|
%global foreman_bundlerd_dir %{foreman_dir}/bundler.d
|
|
%global foreman_pluginconf_dir %{foreman_dir}/config/settings.plugins.d
|
|
|
|
Summary: Adds memcache integeration to foreman
|
|
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
Version: 0.0.6
|
|
Release: 1%{?foremandist}%{?dist}
|
|
Group: Applications/System
|
|
License: GPLv3
|
|
URL: http://github.com/theforeman/foreman_memcache
|
|
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
|
|
|
Requires: foreman >= 1.2.0
|
|
Requires: %{?scl_prefix_ror}rubygem(dalli)
|
|
|
|
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
Requires: %{?scl_prefix_ruby}rubygems
|
|
|
|
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
BuildRequires: %{?scl_prefix_ruby}rubygems
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
Provides: foreman-plugin-memcache
|
|
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}}
|
|
|
|
%description
|
|
Adds memcache integeration to foreman.
|
|
|
|
%package doc
|
|
BuildArch: noarch
|
|
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc}
|
|
Summary: Documentation for rubygem-%{gem_name}
|
|
|
|
%description doc
|
|
This package contains documentation for rubygem-%{gem_name}.
|
|
|
|
%prep
|
|
%setup -n %{pkg_name}-%{version} -q -c -T
|
|
mkdir -p .%{gem_dir}
|
|
%{?scl:scl enable %{scl} "}
|
|
gem install --local --install-dir .%{gem_dir} \
|
|
--force %{SOURCE0} --no-rdoc --no-ri
|
|
%{?scl:"}
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
mkdir -p %{buildroot}%{foreman_bundlerd_dir}
|
|
cat <<GEMFILE > %{buildroot}%{foreman_bundlerd_dir}/%{gem_name}.rb
|
|
gem '%{gem_name}'
|
|
GEMFILE
|
|
|
|
mkdir -p %{buildroot}%{foreman_pluginconf_dir}
|
|
mv %{buildroot}/%{gem_instdir}/%{gem_name}.yaml.example %{buildroot}%{foreman_pluginconf_dir}/
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%{gem_instdir}/lib
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
%{foreman_bundlerd_dir}/%{gem_name}.rb
|
|
%doc %{foreman_pluginconf_dir}/%{gem_name}.yaml.example
|
|
%doc %{gem_instdir}/LICENSE
|
|
|
|
%exclude %{gem_dir}/cache/%{gem_name}-%{version}.gem
|
|
|
|
%files doc
|
|
%doc %{gem_instdir}/LICENSE
|
|
%doc %{gem_instdir}/README.md
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%changelog
|
|
* Thu Apr 21 2016 Dominic Cleal <dominic@cleal.org> 0.0.3-4
|
|
- Rebuild tfm against sclo-ror42 (dominic@cleal.org)
|
|
|
|
* Thu Dec 24 2015 Dominic Cleal <dcleal@redhat.com> 0.0.3-3
|
|
- Replace ruby(abi) for ruby22 rebuild (dcleal@redhat.com)
|
|
- Add foremandist to more plugins (dcleal@redhat.com)
|
|
|
|
* Wed Aug 26 2015 Dominic Cleal <dcleal@redhat.com> 0.0.3-2
|
|
- Converted to tfm SCL (dcleal@redhat.com)
|
|
|
|
* Tue Sep 17 2013 Dominic Cleal <dcleal@redhat.com> 0.0.3-1
|
|
- new package built with tito
|