Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37513954
en ru br
Репозитории ALT

Группа :: Разработка/Ruby
Пакет: gem-setup

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define        pkgname setup

Name:          gem-%pkgname
Version:       5.999.6
Release:       alt7
Summary:       Ruby's Classic Site Installer
Group:         Development/Ruby
License:       BSD-2-Clause
Url:           https://github.com/rubyworks/setup
Vcs:           https://github.com/majioa/setup.git
Packager:      Ruby Maintainers Team <ruby at packages.altlinux.org>
BuildArch:     noarch

Source:        %name-%version.tar
Patch:         patch.patch

BuildRequires(pre): rpm-build-ruby

Requires:      chrpath
Requires:      setup-rb

%description
Every well practiced Rubyist is aware of Minero Aoki's ever setup.rb script.
It's how most of us used to install our Ruby programs before RubyGems came
along. And it's still mighty useful in certain scenarios, not the least of
which is the job of the distro package maintainer.

Ruby Setup converts setup.rb into a stand-alone application. No longer
requiring the distribution of the setup.rb script with every Ruby package.
Just instruct one's users to install Ruby Setup (gem install setup) and go from
there. As long as a project is setup.rb compliant, as most are, then there is
little to nothing it's developer must do.


%package       -n setup-rb
Summary:       Executable file for %gemname gem
Summary(ru_RU.UTF-8): п≤я│п©п╬п╩п╫я▐п╪п╨п╟ п╢п╩я▐ я│п╟п╪п╬я├п╡п╣я┌п╟ %gemname
Group:         Development/Ruby
BuildArch:     noarch

%description   -n setup-rb
Executable file for %gemname gem.

%description   -n setup-rb -l ru_RU.UTF8
п≤я│п©п╬п╩п╫я▐п╪п╨п╟ п╢п╩я▐ %gemname я│п╟п╪п╬я├п╡п╣я┌п╟.


%package       doc
Summary:       Documentation files for %gemname gem
Summary(ru_RU.UTF-8): п╓п╟п╧п╩я▀ я│п╡п╣п╢п╣п╫п╦п╧ п╢п╩я▐ я│п╟п╪п╬я├п╡п╣я┌п╟ %gemname
Group:         Development/Documentation
BuildArch:     noarch

%description   doc
Documentation files for %gemname gem.

%description   doc -l ru_RU.UTF8
п╓п╟п╧п╩я▀ я│п╡п╣п╢п╣п╫п╦п╧ п╢п╩я▐ я│п╟п╪п╬я├п╡п╣я┌п╟ %gemname.


%prep
%setup
%patch -p1
sed "/version/i \$:.unshift('/usr/src/RPM/BUILD/gem-setup-5.999.4/lib')" -i bin/setup.rb

%build
export PATH=$PATH:$(pwd)/bin
%__setup_rb build --use=setup --alias=setup-rb --version-replace=%version

%install
export PATH=$PATH:$(pwd)/bin
%__setup_rb install --install_prefix=%buildroot

%check
export PATH=$PATH:$(pwd)/bin
%__setup_rb test

%files
%doc README* HISTORY*
%ruby_gemspec
%ruby_gemlibdir

%files         -n setup-rb
%doc README*
%_bindir/setup.rb

%files         doc
%ruby_gemdocdir


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin