|
|
|
@ -21,17 +21,8 @@ BuildRequires: mysql-devel >= 5.5
|
|
|
|
|
BuildRequires: rubygems-devel >= 1.8 |
|
|
|
|
BuildRequires: libxml2-devel |
|
|
|
|
BuildRequires: libxslt-devel |
|
|
|
|
BuildRequires: rubygem-rake >= 0.9.6 |
|
|
|
|
#BuildRequires: rubygem-therubyracer >= 0.10.2 |
|
|
|
|
#BuildRequires: rubygem-compass >= 0.12.2 |
|
|
|
|
#BuildRequires: rubygem-sass-rails >= 3.2.5 |
|
|
|
|
Requires: ruby(abi) = 1.9.1 |
|
|
|
|
Requires: rubygem-nokogiri >= 0.3.3 |
|
|
|
|
Requires: rubygem-tzinfo >= 0.3.29 |
|
|
|
|
Requires: rubygem-erubis >= 2.1.7 |
|
|
|
|
Requires: rubygem-rdoc >= 3.12 |
|
|
|
|
Requires: rubygem-rake >= 0.9.6 |
|
|
|
|
Requires: rubygem-rack >= 1.4.0 |
|
|
|
|
BuildRequires: mysql-server |
|
|
|
|
Requires: ruby(abi) = 1.9.1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description |
|
|
|
@ -45,15 +36,18 @@ DNS needs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
bundle install --path assests_tmp/ --without development test production |
|
|
|
|
cp config/database.mysql.sample.yml config/database.yml |
|
|
|
|
bundle install --without development test |
|
|
|
|
bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile |
|
|
|
|
rm -rf .bundle |
|
|
|
|
bundle install --path vendor/ --without development test |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
# clean not required files and directories |
|
|
|
|
rm -rf test doc spec Capfile Gemfile Gemfile.lock Guardfile Rakefile .git \ |
|
|
|
|
.bundle .gitignore .rspec .rvmrc vendor/ruby/1.9.1/cache/* |
|
|
|
|
.bundle .gitignore .rspec .rvmrc vendor/ruby/1.9.1/cache/* \ |
|
|
|
|
config/database.yml |
|
|
|
|
|
|
|
|
|
find vendor/ -type f -wholename "*/cache/*.gem" -delete |
|
|
|
|
find . -type f -name ".git*" -delete |
|
|
|
|