Browse Source

updated spec file and database sample config file

pull/1/head
Vaidas Jablonskis 12 years ago
parent
commit
1445e56f8b
  1. 12
      config/database.mysql.sample.yml
  2. 18
      entrydns.spec

12
config/database.mysql.sample.yml

@ -4,8 +4,8 @@ development:
reconnect: false reconnect: false
database: entrydns_development database: entrydns_development
pool: 5 pool: 5
username: root username: entrydns
password: root password: entrydns
host: localhost host: localhost
# Warning: The database defined as "test" will be erased and # Warning: The database defined as "test" will be erased and
@ -17,8 +17,8 @@ test:
reconnect: false reconnect: false
database: entrydns_test database: entrydns_test
pool: 5 pool: 5
username: root username: entrydns
password: root password: entrydns
host: localhost host: localhost
production: production:
@ -27,6 +27,6 @@ production:
reconnect: false reconnect: false
database: entrydns_production database: entrydns_production
pool: 5 pool: 5
username: root username: entrydns
password: root password: entrydns
host: localhost host: localhost

18
entrydns.spec

@ -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

Loading…
Cancel
Save