|
|
@ -21,17 +21,8 @@ BuildRequires: mysql-devel >= 5.5 |
|
|
|
BuildRequires: rubygems-devel >= 1.8 |
|
|
|
BuildRequires: rubygems-devel >= 1.8 |
|
|
|
BuildRequires: libxml2-devel |
|
|
|
BuildRequires: libxml2-devel |
|
|
|
BuildRequires: libxslt-devel |
|
|
|
BuildRequires: libxslt-devel |
|
|
|
BuildRequires: rubygem-rake >= 0.9.6 |
|
|
|
BuildRequires: mysql-server |
|
|
|
#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: 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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description |
|
|
|
%description |
|
|
@ -45,15 +36,18 @@ DNS needs. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
%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 |
|
|
|
bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile |
|
|
|
|
|
|
|
rm -rf .bundle |
|
|
|
bundle install --path vendor/ --without development test |
|
|
|
bundle install --path vendor/ --without development test |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
%install |
|
|
|
# clean not required files and directories |
|
|
|
# clean not required files and directories |
|
|
|
rm -rf test doc spec Capfile Gemfile Gemfile.lock Guardfile Rakefile .git \ |
|
|
|
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 vendor/ -type f -wholename "*/cache/*.gem" -delete |
|
|
|
find . -type f -name ".git*" -delete |
|
|
|
find . -type f -name ".git*" -delete |
|
|
|