Group :: Desenvolvimento/Ruby
RPM: gem-foreman-discovery
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define gemname foreman_discovery
Name: gem-foreman-discovery
Version: 21.0.3
Release: alt1.1
Summary: MaaS Discovery Plugin for Foreman
License: GPL-3.0
Group: Development/Ruby
Url: https://github.com/theforeman/foreman_discovery
Vcs: https://github.com/theforeman/foreman_discovery.git
Packager: Pavel Skrylev <majioa at altlinux.org>
BuildArch: noarch
Source: %name-%version.tar
Source1: public.tar
Patch: fix-engine.patch
BuildRequires(pre): rpm-build-ruby
%add_findreq_skiplist %ruby_gemslibdir/**/*
%add_findprov_skiplist %ruby_gemslibdir/**/*
%ruby_alias_names foreman_discovery,foreman-discovery
Provides: gem(foreman_discovery) = 21.0.3
%description
A plugin to enable Metal-as-a-Service discovery functionality in foreman.
%package -n gem-foreman-discovery-doc
Version: 21.0.3
Release: alt1.1
Summary: MaaS Discovery Plugin for Foreman documentation files
Summary(ru_RU.UTF-8): Файлы сведений для самоцвета foreman_discovery
Group: Development/Documentation
BuildArch: noarch
Requires: gem(foreman_discovery) = 21.0.3
%description -n gem-foreman-discovery-doc
MaaS Discovery Plugin for Foreman documentation files.
A plugin to enable Metal-as-a-Service discovery functionality in foreman.
%description -n gem-foreman-discovery-doc -l ru_RU.UTF-8
Файлы сведений для самоцвета foreman_discovery.
%package -n gem-foreman-discovery-devel
Version: 21.0.3
Release: alt1.1
Summary: MaaS Discovery Plugin for Foreman development package
Summary(ru_RU.UTF-8): Файлы для разработки самоцвета foreman_discovery
Group: Development/Ruby
BuildArch: noarch
Requires: gem(foreman_discovery) = 21.0.3
%description -n gem-foreman-discovery-devel
MaaS Discovery Plugin for Foreman development package.
A plugin to enable Metal-as-a-Service discovery functionality in foreman.
%description -n gem-foreman-discovery-devel -l ru_RU.UTF-8
Файлы для разработки самоцвета foreman_discovery.
%prep
%setup
%setup -a 1
%autopatch
%build
%ruby_build
%install
%ruby_install
install -d %buildroot%_datadir/foreman/
cp -rp public %buildroot%_datadir/foreman/
%check
%ruby_test
%files
%doc README.md
%ruby_gemspec
%ruby_gemlibdir
%_datadir/foreman/public
%files -n gem-foreman-discovery-doc
%doc README.md
%ruby_gemdocdir
%files -n gem-foreman-discovery-devel
%doc README.md
%changelog
…
Todas as alterações você pod ver aqui
Name: gem-foreman-discovery
Version: 21.0.3
Release: alt1.1
Summary: MaaS Discovery Plugin for Foreman
License: GPL-3.0
Group: Development/Ruby
Url: https://github.com/theforeman/foreman_discovery
Vcs: https://github.com/theforeman/foreman_discovery.git
Packager: Pavel Skrylev <majioa at altlinux.org>
BuildArch: noarch
Source: %name-%version.tar
Source1: public.tar
Patch: fix-engine.patch
BuildRequires(pre): rpm-build-ruby
%add_findreq_skiplist %ruby_gemslibdir/**/*
%add_findprov_skiplist %ruby_gemslibdir/**/*
%ruby_alias_names foreman_discovery,foreman-discovery
Provides: gem(foreman_discovery) = 21.0.3
%description
A plugin to enable Metal-as-a-Service discovery functionality in foreman.
%package -n gem-foreman-discovery-doc
Version: 21.0.3
Release: alt1.1
Summary: MaaS Discovery Plugin for Foreman documentation files
Summary(ru_RU.UTF-8): Файлы сведений для самоцвета foreman_discovery
Group: Development/Documentation
BuildArch: noarch
Requires: gem(foreman_discovery) = 21.0.3
%description -n gem-foreman-discovery-doc
MaaS Discovery Plugin for Foreman documentation files.
A plugin to enable Metal-as-a-Service discovery functionality in foreman.
%description -n gem-foreman-discovery-doc -l ru_RU.UTF-8
Файлы сведений для самоцвета foreman_discovery.
%package -n gem-foreman-discovery-devel
Version: 21.0.3
Release: alt1.1
Summary: MaaS Discovery Plugin for Foreman development package
Summary(ru_RU.UTF-8): Файлы для разработки самоцвета foreman_discovery
Group: Development/Ruby
BuildArch: noarch
Requires: gem(foreman_discovery) = 21.0.3
%description -n gem-foreman-discovery-devel
MaaS Discovery Plugin for Foreman development package.
A plugin to enable Metal-as-a-Service discovery functionality in foreman.
%description -n gem-foreman-discovery-devel -l ru_RU.UTF-8
Файлы для разработки самоцвета foreman_discovery.
%prep
%setup
%setup -a 1
%autopatch
%build
%ruby_build
%install
%ruby_install
install -d %buildroot%_datadir/foreman/
cp -rp public %buildroot%_datadir/foreman/
%check
%ruby_test
%files
%doc README.md
%ruby_gemspec
%ruby_gemlibdir
%_datadir/foreman/public
%files -n gem-foreman-discovery-doc
%doc README.md
%ruby_gemdocdir
%files -n gem-foreman-discovery-devel
%doc README.md
%changelog
…
Todas as alterações você pod ver aqui