Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37378695
en ru br
Репозитории ALT
5.1: 2.3.4-alt1
4.1: 2.0.2-alt2
4.0: 1.2.6-alt1
www.altlinux.org/Changes

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

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

%define pkgname rails

Name: ruby-%pkgname
Version: 1.2.6
Release: alt1
Summary: Web-application framework with template engine, control-flow layer, and ORM.
License: MIT
Group: Development/Ruby
Url: http://www.rubyonrails.org

Packager: Ruby Maintainers Team <ruby at packages.altlinux.org>

Source: railties-%version.tar
Patch: railties-%version-%release.patch

BuildArch: noarch

Requires: ruby-railties = %version-%release
Requires: ruby-rake >= 0.7.2

BuildRequires: ruby >= 1.8.1-alt9, libruby-devel

%description
Rails is a framework for building web-application using CGI, FCGI,
mod_ruby, or WEBrick on top of either MySQL, PostgreSQL, SQLite, DB2,
SQL Server, or Oracle with eRuby- or Builder-based templates.

This package contains development tools.

%package -n ruby-railties
Summary: Gluing the Engine to the Rails
Group: Development/Ruby
Requires: ruby-stdlibs >= 1.8.5
Requires: ruby-activesupport = 1.4.4
Requires: ruby-activerecord = 1.15.6
Requires: ruby-actionpack = 1.13.6
Requires: ruby-actionmailer = 1.3.6
Requires: ruby-actionwebservice = 1.2.6

%description -n ruby-railties
Rails is a framework for building web-application using CGI, FCGI,
mod_ruby, or WEBrick on top of either MySQL, PostgreSQL, SQLite, DB2,
SQL Server, or Oracle with eRuby- or Builder-based templates.

This package contains railties module.

%prep
%setup -q -n railties-%version
%patch -p1
find . -type f -print0 |
xargs -r0 %__subst 's,/usr/local/bin/ruby,%_bindir/ruby,' --
%__subst "s, at RAILS_DATADIR at ,%_datadir/%pkgname," lib/rails_generator/generators/applications/app/app_generator.rb

%install
%__mkdir_p %buildroot{%_bindir,%_datadir/%pkgname,%ruby_sitelibdir}
%__cp -rp lib/* %buildroot%ruby_sitelibdir
%__cp -rp bin builtin configs dispatches doc environments helpers html \
fresh_rakefile README \
%buildroot%_datadir/%pkgname
%__install -p -m755 bin/rails %buildroot%_bindir/rails
%__cat <<EOF > %buildroot%ruby_sitelibdir/railties_path.rb
RAILTIES_PATH = "%_datadir/%pkgname"
EOF
#rdoc lib/

%files
%_bindir/*
%_datadir/%pkgname
#ruby_ri_sitedir/

%files -n ruby-railties
%ruby_sitelibdir/*

%changelog

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

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