39 lines
1.1 KiB
RPMSpec
39 lines
1.1 KiB
RPMSpec
%global gem_name cfa
|
|
|
|
Name: rubygem-cfa
|
|
Version: 1.0.2
|
|
Release: 0
|
|
%define mod_name cfa
|
|
%define mod_full_name %{mod_name}-%{version}
|
|
BuildRequires: ruby(release) rubygems-devel rubygem(rspec) >= 3 rubygem(did_you_mean)
|
|
Url: https://github.com/config-files-api/config_files_api
|
|
Source0: https://rubygems.org/gems/%{mod_full_name}.gem
|
|
Summary: CFA (Config Files API) provides an easy way to create models on top
|
|
License: LGPL-3.0-only
|
|
Group: Development/Languages/Ruby
|
|
|
|
%description
|
|
Library offering separation of parsing and file access from the rest of the
|
|
logic for managing configuraton files. It has built-in support for parsing
|
|
using augeas lenses and also for working with files directly in memory.
|
|
|
|
%prep
|
|
%autosetup -n %{mod_full_name} -p1
|
|
gem unpack %{SOURCE0}
|
|
%build
|
|
gem build ../%{mod_full_name}.gemspec
|
|
%install
|
|
%gem_install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%{gem_libdir}
|
|
%{_datadir}/gems/doc/%{mod_full_name}/
|
|
%{_datadir}/gems/gems/%{mod_full_name}/
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
%changelog
|