Sun, 31 Mar 2013 17:55:10 +0200
Import new package spec for introduction into repository as a first cut.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/chiliproj/Gemfile.lock Sun Mar 31 17:55:10 2013 +0200 1.3 @@ -0,0 +1,112 @@ 1.4 +GEM 1.5 + remote: https://rubygems.org/ 1.6 + specs: 1.7 + actionmailer (2.3.18) 1.8 + actionpack (= 2.3.18) 1.9 + actionpack (2.3.18) 1.10 + activesupport (= 2.3.18) 1.11 + rack (~> 1.1.0) 1.12 + activerecord (2.3.18) 1.13 + activesupport (= 2.3.18) 1.14 + activeresource (2.3.18) 1.15 + activesupport (= 2.3.18) 1.16 + activesupport (2.3.18) 1.17 + acts-as-taggable-on (2.1.0) 1.18 + rails 1.19 + capybara (1.1.4) 1.20 + mime-types (>= 1.16) 1.21 + nokogiri (>= 1.3.3) 1.22 + rack (>= 1.0.0) 1.23 + rack-test (>= 0.5.4) 1.24 + selenium-webdriver (~> 2.0) 1.25 + xpath (~> 0.1.4) 1.26 + childprocess (0.3.9) 1.27 + ffi (~> 1.0, >= 1.0.11) 1.28 + coderay (1.0.9) 1.29 + daemons (1.1.9) 1.30 + edavis10-object_daddy (0.4.3) 1.31 + eventmachine (1.0.3) 1.32 + fastercsv (1.5.5) 1.33 + ffi (1.6.0) 1.34 + gravatarify (3.0.0) 1.35 + i18n (0.4.2) 1.36 + json (1.7.7) 1.37 + liquid (2.3.0) 1.38 + metaclass (0.0.1) 1.39 + mime-types (1.21) 1.40 + mocha (0.12.1) 1.41 + metaclass (~> 0.0.1) 1.42 + multi_json (1.7.2) 1.43 + mysql (2.9.1) 1.44 + mysql2 (0.2.18) 1.45 + net-ldap (0.3.1) 1.46 + nokogiri (1.5.9) 1.47 + pg (0.15.0) 1.48 + rack (1.1.6) 1.49 + rack-test (0.6.2) 1.50 + rack (>= 1.0) 1.51 + rails (2.3.18) 1.52 + actionmailer (= 2.3.18) 1.53 + actionpack (= 2.3.18) 1.54 + activerecord (= 2.3.18) 1.55 + activeresource (= 2.3.18) 1.56 + activesupport (= 2.3.18) 1.57 + rake (>= 0.8.3) 1.58 + rake (10.0.4) 1.59 + rdoc (4.0.1) 1.60 + json (~> 1.4) 1.61 + rmagick (2.13.2) 1.62 + ruby-openid (2.1.8) 1.63 + rubytree (0.5.3) 1.64 + rubyzip (0.9.9) 1.65 + selenium-webdriver (2.31.0) 1.66 + childprocess (>= 0.2.5) 1.67 + multi_json (~> 1.0) 1.68 + rubyzip 1.69 + websocket (~> 1.0.4) 1.70 + shoulda (2.10.3) 1.71 + sqlite3 (1.3.7) 1.72 + sqlite3-ruby (1.2.5) 1.73 + test-unit (2.5.4) 1.74 + thin (1.5.1) 1.75 + daemons (>= 1.0.9) 1.76 + eventmachine (>= 0.12.6) 1.77 + rack (>= 1.0.0) 1.78 + tzinfo (0.3.37) 1.79 + websocket (1.0.7) 1.80 + xpath (0.1.4) 1.81 + nokogiri (~> 1.3) 1.82 + 1.83 +PLATFORMS 1.84 + ruby 1.85 + 1.86 +DEPENDENCIES 1.87 + activerecord-jdbcmysql-adapter 1.88 + activerecord-jdbcpostgresql-adapter 1.89 + activerecord-jdbcsqlite3-adapter 1.90 + acts-as-taggable-on (= 2.1.0) 1.91 + capybara (< 2.0.0) 1.92 + coderay (~> 1.0.0) 1.93 + edavis10-object_daddy 1.94 + fastercsv (~> 1.5.0) 1.95 + gravatarify (~> 3.0.0) 1.96 + i18n (~> 0.4.2) 1.97 + jruby-openssl 1.98 + json (~> 1.7.7) 1.99 + liquid (~> 2.3.0) 1.100 + mocha (= 0.12.1) 1.101 + mysql 1.102 + mysql2 (~> 0.2.7) 1.103 + net-ldap (~> 0.3.1) 1.104 + pg 1.105 + rails (= 2.3.18) 1.106 + rdoc (>= 2.4.2) 1.107 + rmagick (>= 1.15.17) 1.108 + ruby-openid (~> 2.1.4) 1.109 + rubytree (~> 0.5.2) 1.110 + shoulda (~> 2.10.3) 1.111 + sqlite3 1.112 + sqlite3-ruby (< 1.3) 1.113 + test-unit 1.114 + thin 1.115 + tzinfo (~> 0.3.31)
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/chiliproj/chiliproj.spec Sun Mar 31 17:55:10 2013 +0200 2.3 @@ -0,0 +1,354 @@ 2.4 +## 2.5 +## chiliproj.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2013 Michael Schloh von Bennewitz <michael@schloh.com> 2.7 +## 2.8 +## Permission to use, copy, modify, and distribute this software for 2.9 +## any purpose with or without fee is hereby granted, provided that 2.10 +## the above copyright notice and this permission notice appear in all 2.11 +## copies. 2.12 +## 2.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 2.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2.24 +## SUCH DAMAGE. 2.25 +## 2.26 + 2.27 +# FIXME: GEM_HOME=$HOME/.gem RAILS_ENV=production PATH=$PATH:%{l_prefix}/lib/ruby/gems/1.9.1/bin bundle install --without test development mysql postgres rmagick 2.28 +# FIXME: bundle exec rails s 2.29 +# FIXME: w3m http://localhost:3000/ 2.30 +# FIXME: log in with Login: admin and Password: admin 2.31 + 2.32 +# package version 2.33 +%define V_pref 427 2.34 +%define V_rake 10.0.4 2.35 +%define V_activesupport 2.3.18 2.36 +%define V_rack 1.1.6 2.37 +%define V_actionpack 2.3.18 2.38 +%define V_actionmailer 2.3.18 2.39 +%define V_activerecord 2.3.18 2.40 +%define V_activeresource 2.3.18 2.41 +%define V_rails 2.3.18 2.42 +%define V_actsastaggable 2.1.0 2.43 +%define V_coderay 1.0.9 2.44 +%define V_daemons 1.1.9 2.45 +%define V_eventmachine 1.0.3 2.46 +%define V_gravatarify 3.0.0 2.47 +%define V_i18n 0.4.2 2.48 +%define V_json 1.7.7 2.49 +%define V_liquid 2.3.0 2.50 +%define V_mysql2 0.2.18 2.51 +%define V_netldap 0.3.1 2.52 +%define V_rdoc 4.0.1 2.53 +%define V_rubyopenid 2.1.8 2.54 +%define V_rubytree 0.5.3 2.55 +%define V_sqlite3 1.3.7 2.56 +%define V_thin 1.5.1 2.57 +%define V_tzinfo 0.3.37 2.58 +%define V_bundler 1.3.4 2.59 + 2.60 +# package information 2.61 +Name: chiliproj 2.62 +Summary: Comprehensive Rails-based Project Manager 2.63 +URL: http://www.chiliproject.org/ 2.64 +Vendor: Felix Schaefer et al. 2.65 +Packager: Michael Schloh von Bennewitz 2.66 +Distribution: Europalab Networks Production 2.67 +Class: EVAL 2.68 +Group: Calendar 2.69 +License: GPL 2.70 +Version: 20130328 2.71 +Release: 20120800 2.72 + 2.73 +# list of sources 2.74 +Source0: http://www.chiliproject.org/attachments/download/%{V_pref}/chiliproject-%{version}.tar.bz2 2.75 +Source1: rc.chiliproj 2.76 +Source2: Gemfile.lock 2.77 +Source3: http://rubygems.org/downloads/rake-%{V_rake}.gem 2.78 +Source4: http://rubygems.org/downloads/activesupport-%{V_activesupport}.gem 2.79 +Source5: http://rubygems.org/downloads/rack-%{V_rack}.gem 2.80 +Source6: http://rubygems.org/downloads/actionpack-%{V_actionpack}.gem 2.81 +Source7: http://rubygems.org/downloads/actionmailer-%{V_actionmailer}.gem 2.82 +Source8: http://rubygems.org/downloads/activerecord-%{V_activerecord}.gem 2.83 +Source9: http://rubygems.org/downloads/activeresource-%{V_activeresource}.gem 2.84 +Source10: http://rubygems.org/downloads/rails-%{V_rails}.gem 2.85 +Source11: http://rubygems.org/downloads/acts-as-taggable-on-%{V_actsastaggable}.gem 2.86 +Source12: http://rubygems.org/downloads/coderay-%{V_coderay}.gem 2.87 +Source13: http://rubygems.org/downloads/daemons-%{V_daemons}.gem 2.88 +Source14: http://rubygems.org/downloads/eventmachine-%{V_eventmachine}.gem 2.89 +Source15: http://rubygems.org/downloads/gravatarify-%{V_gravatarify}.gem 2.90 +Source16: http://rubygems.org/downloads/i18n-%{V_i18n}.gem 2.91 +Source17: http://rubygems.org/downloads/json-%{V_json}.gem 2.92 +Source18: http://rubygems.org/downloads/liquid-%{V_liquid}.gem 2.93 +Source19: http://rubygems.org/downloads/mysql2-%{V_mysql2}.gem 2.94 +Source20: http://rubygems.org/downloads/net-ldap-%{V_netldap}.gem 2.95 +Source21: http://rubygems.org/downloads/rdoc-%{V_rdoc}.gem 2.96 +Source22: http://rubygems.org/downloads/ruby-openid-%{V_rubyopenid}.gem 2.97 +Source23: http://rubygems.org/downloads/rubytree-%{V_rubytree}.gem 2.98 +Source24: http://rubygems.org/downloads/sqlite3-%{V_sqlite3}.gem 2.99 +Source25: http://rubygems.org/downloads/thin-%{V_thin}.gem 2.100 +Source26: http://rubygems.org/downloads/tzinfo-%{V_tzinfo}.gem 2.101 +Source27: http://rubygems.org/downloads/bundler-%{V_bundler}.gem 2.102 + 2.103 +# build information 2.104 +BuildPreReq: OpenPKG, openpkg >= 20100101, ruby < 2.0.0, ruby-rails, ruby-thin 2.105 +PreReq: OpenPKG, openpkg >= 20100101, ruby < 2.0.0, ruby-rails, ruby-thin 2.106 + 2.107 +%description 2.108 + ChiliProject is a web based project management system. It supports 2.109 + your team throughout the complete project life cycle, from setting 2.110 + up and discussing a project plan, over tracking issues and reporting 2.111 + work progress to collaboratively sharing knowledge. 2.112 + 2.113 +%track 2.114 + prog chiliproj:chiliproj = { 2.115 + version = %{version} 2.116 + url = http://www.chiliproject.org/attachments/download/ 2.117 + regex = (\d+) 2.118 + url = http://www.chiliproject.org/attachments/download/__NEWVER__/ 2.119 + regex = chiliproject-(__VER__)\.tar.bz2 2.120 + } 2.121 + prog chiliproj:rake = { 2.122 + version = %{V_rake} 2.123 + url = http://rubygems.org/gems/rake 2.124 + regex = rake-(__VER__)\.gem 2.125 + } 2.126 + prog chiliproj:activesupport = { 2.127 + version = %{V_activesupport} 2.128 + url = http://rubygems.org/gems/activesupport 2.129 + regex = activesupport-(__VER__)\.gem 2.130 + } 2.131 + prog chiliproj:rack = { 2.132 + version = %{V_rack} 2.133 + url = http://rubygems.org/gems/rack 2.134 + regex = rack-(__VER__)\.gem 2.135 + } 2.136 + prog chiliproj:actionpack = { 2.137 + version = %{V_actionpack} 2.138 + url = http://rubygems.org/gems/actionpack 2.139 + regex = actionpack-(__VER__)\.gem 2.140 + } 2.141 + prog chiliproj:actionmailer = { 2.142 + version = %{V_actionmailer} 2.143 + url = http://rubygems.org/gems/actionmailer 2.144 + regex = actionmailer-(__VER__)\.gem 2.145 + } 2.146 + prog chiliproj:activerecord = { 2.147 + version = %{V_activerecord} 2.148 + url = http://rubygems.org/gems/activerecord 2.149 + regex = activerecord-(__VER__)\.gem 2.150 + } 2.151 + prog chiliproj:activeresource = { 2.152 + version = %{V_activeresource} 2.153 + url = http://rubygems.org/gems/activeresource 2.154 + regex = activeresource-(__VER__)\.gem 2.155 + } 2.156 + prog chiliproj:rails = { 2.157 + version = %{V_rails} 2.158 + url = http://rubygems.org/gems/rails 2.159 + regex = rails-(__VER__)\.gem 2.160 + } 2.161 + prog chiliproj:actsastaggable = { 2.162 + version = %{V_actsastaggable} 2.163 + url = http://rubygems.org/gems/acts-as-taggable-on 2.164 + regex = acts-as-taggable-on-(__VER__)\.gem 2.165 + } 2.166 + prog chiliproj:coderay = { 2.167 + version = %{V_coderay} 2.168 + url = http://rubygems.org/gems/coderay 2.169 + regex = coderay-(__VER__)\.gem 2.170 + } 2.171 + prog chiliproj:daemons = { 2.172 + version = %{V_daemons} 2.173 + url = http://rubygems.org/gems/daemons 2.174 + regex = daemons-(__VER__)\.gem 2.175 + } 2.176 + prog chiliproj:eventmachine = { 2.177 + version = %{V_eventmachine} 2.178 + url = http://rubygems.org/gems/eventmachine 2.179 + regex = eventmachine-(__VER__)\.gem 2.180 + } 2.181 + prog chiliproj:gravatarify = { 2.182 + version = %{V_gravatarify} 2.183 + url = http://rubygems.org/gems/gravatarify 2.184 + regex = gravatarify-(__VER__)\.gem 2.185 + } 2.186 + prog chiliproj:i18n = { 2.187 + version = %{V_i18n} 2.188 + url = http://rubygems.org/gems/i18n 2.189 + regex = i18n-(__VER__)\.gem 2.190 + } 2.191 + prog chiliproj:json = { 2.192 + version = %{V_json} 2.193 + url = http://rubygems.org/gems/json 2.194 + regex = json-(__VER__)\.gem 2.195 + } 2.196 + prog chiliproj:liquid = { 2.197 + version = %{V_liquid} 2.198 + url = http://rubygems.org/gems/liquid 2.199 + regex = liquid-(__VER__)\.gem 2.200 + } 2.201 + prog chiliproj:mysql2 = { 2.202 + version = %{V_mysql2} 2.203 + url = http://rubygems.org/gems/mysql2 2.204 + regex = mysql2-(__VER__)\.gem 2.205 + } 2.206 + prog chiliproj:netldap = { 2.207 + version = %{V_netldap} 2.208 + url = http://rubygems.org/gems/net-ldap 2.209 + regex = net-ldap-(__VER__)\.gem 2.210 + } 2.211 + prog chiliproj:rdoc = { 2.212 + version = %{V_rdoc} 2.213 + url = http://rubygems.org/gems/rdoc 2.214 + regex = rdoc-(__VER__)\.gem 2.215 + } 2.216 + prog chiliproj:rubyopenid = { 2.217 + version = %{V_rubyopenid} 2.218 + url = http://rubygems.org/gems/ruby-openid 2.219 + regex = ruby-openid-(__VER__)\.gem 2.220 + } 2.221 + prog chiliproj:rubytree = { 2.222 + version = %{V_rubytree} 2.223 + url = http://rubygems.org/gems/rubytree 2.224 + regex = rubytree-(__VER__)\.gem 2.225 + } 2.226 + prog chiliproj:sqlite3 = { 2.227 + version = %{V_sqlite3} 2.228 + url = http://rubygems.org/gems/sqlite3 2.229 + regex = sqlite3-(__VER__)\.gem 2.230 + } 2.231 + prog chiliproj:thin = { 2.232 + version = %{V_thin} 2.233 + url = http://rubygems.org/gems/thin 2.234 + regex = thin-(__VER__)\.gem 2.235 + } 2.236 + prog chiliproj:tzinfo = { 2.237 + version = %{V_tzinfo} 2.238 + url = http://rubygems.org/gems/tzinfo 2.239 + regex = tzinfo-(__VER__)\.gem 2.240 + } 2.241 + prog chiliproj:bundler = { 2.242 + version = %{V_bundler} 2.243 + url = http://rubygems.org/gems/bundler 2.244 + regex = bundler-(__VER__)\.gem 2.245 + } 2.246 + 2.247 +%prep 2.248 + %setup -q -n chiliproject-%{version} 2.249 + %{l_shtool} subst \ 2.250 + -e 's;# \(ENV\[.RAILS_ENV.\] ||= .production.\);\1;' \ 2.251 + config/environment.rb 2.252 + 2.253 +%build 2.254 + 2.255 +%install 2.256 + RUBY_VERSION=`%{l_prefix}/bin/gem which rubygems | sed -e 's;.*/\([^/]*\)/rubygems\.rb$;\1;'` 2.257 + export GEM_HOME=$RPM_BUILD_ROOT%{l_prefix}/lib/chiliproj/gems/$RUBY_VERSION 2.258 + %{l_shtool} mkdir -f -p -m 755 $GEM_HOME 2.259 + %{l_shtool} mkdir -f -p public/plugin_assets 2.260 + %{l_tar} cf - . | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/chiliproj 2.261 + %{l_prefix}/bin/gem install --local %{SOURCE3} 2.262 + %{l_prefix}/bin/gem install --local %{SOURCE4} 2.263 + %{l_prefix}/bin/gem install --local %{SOURCE5} 2.264 + %{l_prefix}/bin/gem install --local %{SOURCE6} 2.265 + %{l_prefix}/bin/gem install --local %{SOURCE7} 2.266 + %{l_prefix}/bin/gem install --local %{SOURCE8} 2.267 + %{l_prefix}/bin/gem install --local %{SOURCE9} 2.268 + %{l_prefix}/bin/gem install --local %{SOURCE10} 2.269 + %{l_prefix}/bin/gem install --local %{SOURCE11} 2.270 + %{l_prefix}/bin/gem install --local %{SOURCE12} 2.271 + %{l_prefix}/bin/gem install --local %{SOURCE13} 2.272 + %{l_prefix}/bin/gem install --local %{SOURCE14} 2.273 + %{l_prefix}/bin/gem install --local %{SOURCE15} 2.274 + %{l_prefix}/bin/gem install --local %{SOURCE16} 2.275 + %{l_prefix}/bin/gem install --local %{SOURCE17} 2.276 + %{l_prefix}/bin/gem install --local %{SOURCE18} 2.277 + %{l_prefix}/bin/gem install --local %{SOURCE19} 2.278 + %{l_prefix}/bin/gem install --local %{SOURCE20} 2.279 + %{l_prefix}/bin/gem install --local %{SOURCE21} 2.280 + %{l_prefix}/bin/gem install --local %{SOURCE22} 2.281 + %{l_prefix}/bin/gem install --local %{SOURCE23} 2.282 + %{l_prefix}/bin/gem install --local %{SOURCE24} 2.283 + %{l_prefix}/bin/gem install --local %{SOURCE25} 2.284 + %{l_prefix}/bin/gem install --local %{SOURCE27} 2.285 + 2.286 + # install configuration 2.287 + ( cd $RPM_BUILD_ROOT%{l_prefix}/lib/chiliproj 2.288 + %{l_shtool} mkdir -f -p -m 755 .bundle 2.289 + cp %{SOURCE Gemfile.lock} . 2.290 + echo 'gem "thin"' >>Gemfile 2.291 + cp config/configuration.yml.example config/configuration.yml 2.292 + cp config/additional_environment.rb.example config/additional_environment.rb 2.293 + echo "ENV['GEM_PATH'] = '%{l_prefix}/lib/ruby/gems/$RUBY_VERSION:%{l_prefix}/lib/chiliproj/gems/$RUBY_VERSION'" >>config/additional_environment.rb 2.294 + #echo 'config.action_controller.session = { :key => "_chiliproject_session", :secret => "54bbf51a99cbce2a8881af4fa0fa23895e071f8c8c4773e76b09388135bd9d3671534bf4db20c9f3" }' >>config/additional_environment.rb 2.295 + cat >config/database.yml <<EOF 2.296 +production: 2.297 + adapter: sqlite3 2.298 + database: db/prod.sqlite 2.299 +EOF 2.300 + # try this block with --- 2.301 + cat >.bundle/config <<EOF 2.302 +--- 2.303 +BUNDLE_WITHOUT: test:de:development:postgres:mysql:rmagick 2.304 +EOF 2.305 + ) || exit $? 2.306 + 2.307 + # install run command script 2.308 + %{l_shtool} mkdir -f -p -m 755 \ 2.309 + $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d 2.310 + %{l_shtool} install -c -m 755 %{l_value -s -a} \ 2.311 + -e 's;@l_gempath@;$RPM_BUILD_ROOT%{l_prefix}/lib/ruby/gems/$RUBY_VERSION;g' \ 2.312 + %{SOURCE rc.chiliproj} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ 2.313 + 2.314 + # clean up white spaces 2.315 + rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/chiliproj/gems/$RUBY_VERSION/gems/rdoc-*/test 2.316 + 2.317 + # problem with typical name 'files', existing in this case 2.318 + %{l_rpmtool} files -v -oaltfiles -r$RPM_BUILD_ROOT \ 2.319 + %{l_files_std} \ 2.320 + '%config %{l_prefix}/lib/chiliproj/config/*' 2.321 + #'%attr(775,%{l_nusr},%{l_mgrp}) %{l_prefix}/lib/chiliproj/files' \ 2.322 + #'%attr(775,%{l_nusr},%{l_mgrp}) %{l_prefix}/lib/chiliproj/files/*' \ 2.323 + #'%attr(775,%{l_nusr},%{l_mgrp}) %{l_prefix}/lib/chiliproj/log' \ 2.324 + #'%attr(775,%{l_nusr},%{l_mgrp}) %{l_prefix}/lib/chiliproj/log/*' \ 2.325 + #'%attr(775,%{l_nusr},%{l_mgrp}) %{l_prefix}/lib/chiliproj/tmp' \ 2.326 + #'%attr(775,%{l_nusr},%{l_mgrp}) %{l_prefix}/lib/chiliproj/tmp/*' \ 2.327 + #'%attr(775,%{l_nusr},%{l_mgrp}) %{l_prefix}/lib/chiliproj/public/plugin_assets' \ 2.328 + #'%attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/lib/chiliproj/public/plugin_assets/*' 2.329 + 2.330 +%files -f altfiles 2.331 + # problem with typical name 'files', existing in this case 2.332 + 2.333 +%clean 2.334 + 2.335 +%post 2.336 + if [ $1 -eq 1 ]; then 2.337 + RUBY_VERSION=`%{l_prefix}/bin/gem which rubygems | sed -e 's;.*/\([^/]*\)/rubygems\.rb$;\1;'` 2.338 + ( cd $RPM_INSTALL_PREFIX/lib/chiliproj 2.339 + # install session 2.340 + $RPM_INSTALL_PREFIX/lib/ruby/gems/$RUBY_VERSION/bin/bundle \ 2.341 + exec rake generate_session_store 2.342 + # create initial database 2.343 + RAILS_ENV=production \ 2.344 + $RPM_INSTALL_PREFIX/lib/ruby/gems/$RUBY_VERSION/bin/bundle \ 2.345 + exec rake db:migrate 2.346 + # insert default configuration into database 2.347 + echo 'en' | \ 2.348 + RAILS_ENV=production \ 2.349 + $RPM_INSTALL_PREFIX/lib/ruby/gems/$RUBY_VERSION/bin/bundle \ 2.350 + exec rake redmine:load_default_data 2.351 + ) || exit $? 2.352 + fi 2.353 + if [ $1 -eq 2 ]; then 2.354 + # after upgrade 2.355 + echo NOOP 2.356 + fi 2.357 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/chiliproj/rc.chiliproj Sun Mar 31 17:55:10 2013 +0200 3.3 @@ -0,0 +1,49 @@ 3.4 +#! @l_prefix@/bin/openpkg rc 3.5 +## 3.6 +## rc.chiliproj -- Run-Commands 3.7 +## 3.8 + 3.9 +%config 3.10 + chili_enable="$openpkg_rc_def" 3.11 + chili_host="localhost" 3.12 + chili_log_prolog="true" 3.13 + chili_log_epilog="true" 3.14 + chili_log_numfiles="10" 3.15 + chili_log_minsize="1M" 3.16 + chili_log_complevel="9" 3.17 + 3.18 +%status -u @l_susr@ -o 3.19 + chili_usable="unknown" 3.20 + #chili_active="no" 3.21 + chili_active="unknown" 3.22 + # rcService chiliproj enable yes && \ 3.23 + # check pid or something >/dev/null 2>&1 && \ 3.24 + # chili_active="yes" 3.25 + echo "chili_enable=\"$chili_enable\"" 3.26 + echo "chili_usable=\"$chili_usable\"" 3.27 + echo "chili_active=\"$chili_active\"" 3.28 + 3.29 +%start -u @l_nusr@ 3.30 + rcService chiliproj enable yes || exit 0 3.31 + rcService chiliproj active yes && exit 0 3.32 + PATH=$PATH:@l_gempath@/bin bundle exec thin -e production -a $chili_host start 3.33 + 3.34 +%stop -u @l_nusr@ 3.35 + rcService chiliproj enable yes || exit 0 3.36 + rcService chiliproj active no && exit 0 3.37 + # send kill -TERM to pid 3.38 + 3.39 +%restart -u @l_nusr@ 3.40 + rcService chiliproj enable yes || exit 0 3.41 + rcService chiliproj active no && exit 0 3.42 + # do stop sleep start 3.43 + 3.44 +%daily -u @l_nusr@ 3.45 + rcService chiliproj enable yes || exit 0 3.46 +# shtool rotate -f \ 3.47 +# -n ${chili_log_numfiles} -s ${chili_log_minsize} -d \ 3.48 +# -z ${chili_log_complevel} -m 664 -o @l_rusr@ -g @l_rgrp@ \ 3.49 +# -P "${chili_log_prolog}" \ 3.50 +# -E "${chili_log_epilog}; rc chiliproj logrel" \ 3.51 +# @l_prefix@/lib/chiliproj/log/chiliproject.log 3.52 +