# HG changeset patch # User Michael Schloh von Bennewitz # Date 1364745310 -7200 # Node ID b3f4be54aeb45fb8cbe474d51d1db897aa865f79 # Parent d07f45deec02f652e7989326fdaf1439f0e2329a Import new package spec for introduction into repository as a first cut. diff -r d07f45deec02 -r b3f4be54aeb4 chiliproj/Gemfile.lock --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/chiliproj/Gemfile.lock Sun Mar 31 17:55:10 2013 +0200 @@ -0,0 +1,112 @@ +GEM + remote: https://rubygems.org/ + specs: + actionmailer (2.3.18) + actionpack (= 2.3.18) + actionpack (2.3.18) + activesupport (= 2.3.18) + rack (~> 1.1.0) + activerecord (2.3.18) + activesupport (= 2.3.18) + activeresource (2.3.18) + activesupport (= 2.3.18) + activesupport (2.3.18) + acts-as-taggable-on (2.1.0) + rails + capybara (1.1.4) + mime-types (>= 1.16) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + selenium-webdriver (~> 2.0) + xpath (~> 0.1.4) + childprocess (0.3.9) + ffi (~> 1.0, >= 1.0.11) + coderay (1.0.9) + daemons (1.1.9) + edavis10-object_daddy (0.4.3) + eventmachine (1.0.3) + fastercsv (1.5.5) + ffi (1.6.0) + gravatarify (3.0.0) + i18n (0.4.2) + json (1.7.7) + liquid (2.3.0) + metaclass (0.0.1) + mime-types (1.21) + mocha (0.12.1) + metaclass (~> 0.0.1) + multi_json (1.7.2) + mysql (2.9.1) + mysql2 (0.2.18) + net-ldap (0.3.1) + nokogiri (1.5.9) + pg (0.15.0) + rack (1.1.6) + rack-test (0.6.2) + rack (>= 1.0) + rails (2.3.18) + actionmailer (= 2.3.18) + actionpack (= 2.3.18) + activerecord (= 2.3.18) + activeresource (= 2.3.18) + activesupport (= 2.3.18) + rake (>= 0.8.3) + rake (10.0.4) + rdoc (4.0.1) + json (~> 1.4) + rmagick (2.13.2) + ruby-openid (2.1.8) + rubytree (0.5.3) + rubyzip (0.9.9) + selenium-webdriver (2.31.0) + childprocess (>= 0.2.5) + multi_json (~> 1.0) + rubyzip + websocket (~> 1.0.4) + shoulda (2.10.3) + sqlite3 (1.3.7) + sqlite3-ruby (1.2.5) + test-unit (2.5.4) + thin (1.5.1) + daemons (>= 1.0.9) + eventmachine (>= 0.12.6) + rack (>= 1.0.0) + tzinfo (0.3.37) + websocket (1.0.7) + xpath (0.1.4) + nokogiri (~> 1.3) + +PLATFORMS + ruby + +DEPENDENCIES + activerecord-jdbcmysql-adapter + activerecord-jdbcpostgresql-adapter + activerecord-jdbcsqlite3-adapter + acts-as-taggable-on (= 2.1.0) + capybara (< 2.0.0) + coderay (~> 1.0.0) + edavis10-object_daddy + fastercsv (~> 1.5.0) + gravatarify (~> 3.0.0) + i18n (~> 0.4.2) + jruby-openssl + json (~> 1.7.7) + liquid (~> 2.3.0) + mocha (= 0.12.1) + mysql + mysql2 (~> 0.2.7) + net-ldap (~> 0.3.1) + pg + rails (= 2.3.18) + rdoc (>= 2.4.2) + rmagick (>= 1.15.17) + ruby-openid (~> 2.1.4) + rubytree (~> 0.5.2) + shoulda (~> 2.10.3) + sqlite3 + sqlite3-ruby (< 1.3) + test-unit + thin + tzinfo (~> 0.3.31) diff -r d07f45deec02 -r b3f4be54aeb4 chiliproj/chiliproj.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/chiliproj/chiliproj.spec Sun Mar 31 17:55:10 2013 +0200 @@ -0,0 +1,354 @@ +## +## chiliproj.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2013 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# 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 +# FIXME: bundle exec rails s +# FIXME: w3m http://localhost:3000/ +# FIXME: log in with Login: admin and Password: admin + +# package version +%define V_pref 427 +%define V_rake 10.0.4 +%define V_activesupport 2.3.18 +%define V_rack 1.1.6 +%define V_actionpack 2.3.18 +%define V_actionmailer 2.3.18 +%define V_activerecord 2.3.18 +%define V_activeresource 2.3.18 +%define V_rails 2.3.18 +%define V_actsastaggable 2.1.0 +%define V_coderay 1.0.9 +%define V_daemons 1.1.9 +%define V_eventmachine 1.0.3 +%define V_gravatarify 3.0.0 +%define V_i18n 0.4.2 +%define V_json 1.7.7 +%define V_liquid 2.3.0 +%define V_mysql2 0.2.18 +%define V_netldap 0.3.1 +%define V_rdoc 4.0.1 +%define V_rubyopenid 2.1.8 +%define V_rubytree 0.5.3 +%define V_sqlite3 1.3.7 +%define V_thin 1.5.1 +%define V_tzinfo 0.3.37 +%define V_bundler 1.3.4 + +# package information +Name: chiliproj +Summary: Comprehensive Rails-based Project Manager +URL: http://www.chiliproject.org/ +Vendor: Felix Schaefer et al. +Packager: Michael Schloh von Bennewitz +Distribution: Europalab Networks Production +Class: EVAL +Group: Calendar +License: GPL +Version: 20130328 +Release: 20120800 + +# list of sources +Source0: http://www.chiliproject.org/attachments/download/%{V_pref}/chiliproject-%{version}.tar.bz2 +Source1: rc.chiliproj +Source2: Gemfile.lock +Source3: http://rubygems.org/downloads/rake-%{V_rake}.gem +Source4: http://rubygems.org/downloads/activesupport-%{V_activesupport}.gem +Source5: http://rubygems.org/downloads/rack-%{V_rack}.gem +Source6: http://rubygems.org/downloads/actionpack-%{V_actionpack}.gem +Source7: http://rubygems.org/downloads/actionmailer-%{V_actionmailer}.gem +Source8: http://rubygems.org/downloads/activerecord-%{V_activerecord}.gem +Source9: http://rubygems.org/downloads/activeresource-%{V_activeresource}.gem +Source10: http://rubygems.org/downloads/rails-%{V_rails}.gem +Source11: http://rubygems.org/downloads/acts-as-taggable-on-%{V_actsastaggable}.gem +Source12: http://rubygems.org/downloads/coderay-%{V_coderay}.gem +Source13: http://rubygems.org/downloads/daemons-%{V_daemons}.gem +Source14: http://rubygems.org/downloads/eventmachine-%{V_eventmachine}.gem +Source15: http://rubygems.org/downloads/gravatarify-%{V_gravatarify}.gem +Source16: http://rubygems.org/downloads/i18n-%{V_i18n}.gem +Source17: http://rubygems.org/downloads/json-%{V_json}.gem +Source18: http://rubygems.org/downloads/liquid-%{V_liquid}.gem +Source19: http://rubygems.org/downloads/mysql2-%{V_mysql2}.gem +Source20: http://rubygems.org/downloads/net-ldap-%{V_netldap}.gem +Source21: http://rubygems.org/downloads/rdoc-%{V_rdoc}.gem +Source22: http://rubygems.org/downloads/ruby-openid-%{V_rubyopenid}.gem +Source23: http://rubygems.org/downloads/rubytree-%{V_rubytree}.gem +Source24: http://rubygems.org/downloads/sqlite3-%{V_sqlite3}.gem +Source25: http://rubygems.org/downloads/thin-%{V_thin}.gem +Source26: http://rubygems.org/downloads/tzinfo-%{V_tzinfo}.gem +Source27: http://rubygems.org/downloads/bundler-%{V_bundler}.gem + +# build information +BuildPreReq: OpenPKG, openpkg >= 20100101, ruby < 2.0.0, ruby-rails, ruby-thin +PreReq: OpenPKG, openpkg >= 20100101, ruby < 2.0.0, ruby-rails, ruby-thin + +%description + ChiliProject is a web based project management system. It supports + your team throughout the complete project life cycle, from setting + up and discussing a project plan, over tracking issues and reporting + work progress to collaboratively sharing knowledge. + +%track + prog chiliproj:chiliproj = { + version = %{version} + url = http://www.chiliproject.org/attachments/download/ + regex = (\d+) + url = http://www.chiliproject.org/attachments/download/__NEWVER__/ + regex = chiliproject-(__VER__)\.tar.bz2 + } + prog chiliproj:rake = { + version = %{V_rake} + url = http://rubygems.org/gems/rake + regex = rake-(__VER__)\.gem + } + prog chiliproj:activesupport = { + version = %{V_activesupport} + url = http://rubygems.org/gems/activesupport + regex = activesupport-(__VER__)\.gem + } + prog chiliproj:rack = { + version = %{V_rack} + url = http://rubygems.org/gems/rack + regex = rack-(__VER__)\.gem + } + prog chiliproj:actionpack = { + version = %{V_actionpack} + url = http://rubygems.org/gems/actionpack + regex = actionpack-(__VER__)\.gem + } + prog chiliproj:actionmailer = { + version = %{V_actionmailer} + url = http://rubygems.org/gems/actionmailer + regex = actionmailer-(__VER__)\.gem + } + prog chiliproj:activerecord = { + version = %{V_activerecord} + url = http://rubygems.org/gems/activerecord + regex = activerecord-(__VER__)\.gem + } + prog chiliproj:activeresource = { + version = %{V_activeresource} + url = http://rubygems.org/gems/activeresource + regex = activeresource-(__VER__)\.gem + } + prog chiliproj:rails = { + version = %{V_rails} + url = http://rubygems.org/gems/rails + regex = rails-(__VER__)\.gem + } + prog chiliproj:actsastaggable = { + version = %{V_actsastaggable} + url = http://rubygems.org/gems/acts-as-taggable-on + regex = acts-as-taggable-on-(__VER__)\.gem + } + prog chiliproj:coderay = { + version = %{V_coderay} + url = http://rubygems.org/gems/coderay + regex = coderay-(__VER__)\.gem + } + prog chiliproj:daemons = { + version = %{V_daemons} + url = http://rubygems.org/gems/daemons + regex = daemons-(__VER__)\.gem + } + prog chiliproj:eventmachine = { + version = %{V_eventmachine} + url = http://rubygems.org/gems/eventmachine + regex = eventmachine-(__VER__)\.gem + } + prog chiliproj:gravatarify = { + version = %{V_gravatarify} + url = http://rubygems.org/gems/gravatarify + regex = gravatarify-(__VER__)\.gem + } + prog chiliproj:i18n = { + version = %{V_i18n} + url = http://rubygems.org/gems/i18n + regex = i18n-(__VER__)\.gem + } + prog chiliproj:json = { + version = %{V_json} + url = http://rubygems.org/gems/json + regex = json-(__VER__)\.gem + } + prog chiliproj:liquid = { + version = %{V_liquid} + url = http://rubygems.org/gems/liquid + regex = liquid-(__VER__)\.gem + } + prog chiliproj:mysql2 = { + version = %{V_mysql2} + url = http://rubygems.org/gems/mysql2 + regex = mysql2-(__VER__)\.gem + } + prog chiliproj:netldap = { + version = %{V_netldap} + url = http://rubygems.org/gems/net-ldap + regex = net-ldap-(__VER__)\.gem + } + prog chiliproj:rdoc = { + version = %{V_rdoc} + url = http://rubygems.org/gems/rdoc + regex = rdoc-(__VER__)\.gem + } + prog chiliproj:rubyopenid = { + version = %{V_rubyopenid} + url = http://rubygems.org/gems/ruby-openid + regex = ruby-openid-(__VER__)\.gem + } + prog chiliproj:rubytree = { + version = %{V_rubytree} + url = http://rubygems.org/gems/rubytree + regex = rubytree-(__VER__)\.gem + } + prog chiliproj:sqlite3 = { + version = %{V_sqlite3} + url = http://rubygems.org/gems/sqlite3 + regex = sqlite3-(__VER__)\.gem + } + prog chiliproj:thin = { + version = %{V_thin} + url = http://rubygems.org/gems/thin + regex = thin-(__VER__)\.gem + } + prog chiliproj:tzinfo = { + version = %{V_tzinfo} + url = http://rubygems.org/gems/tzinfo + regex = tzinfo-(__VER__)\.gem + } + prog chiliproj:bundler = { + version = %{V_bundler} + url = http://rubygems.org/gems/bundler + regex = bundler-(__VER__)\.gem + } + +%prep + %setup -q -n chiliproject-%{version} + %{l_shtool} subst \ + -e 's;# \(ENV\[.RAILS_ENV.\] ||= .production.\);\1;' \ + config/environment.rb + +%build + +%install + RUBY_VERSION=`%{l_prefix}/bin/gem which rubygems | sed -e 's;.*/\([^/]*\)/rubygems\.rb$;\1;'` + export GEM_HOME=$RPM_BUILD_ROOT%{l_prefix}/lib/chiliproj/gems/$RUBY_VERSION + %{l_shtool} mkdir -f -p -m 755 $GEM_HOME + %{l_shtool} mkdir -f -p public/plugin_assets + %{l_tar} cf - . | %{l_tar} xf - -C $RPM_BUILD_ROOT%{l_prefix}/lib/chiliproj + %{l_prefix}/bin/gem install --local %{SOURCE3} + %{l_prefix}/bin/gem install --local %{SOURCE4} + %{l_prefix}/bin/gem install --local %{SOURCE5} + %{l_prefix}/bin/gem install --local %{SOURCE6} + %{l_prefix}/bin/gem install --local %{SOURCE7} + %{l_prefix}/bin/gem install --local %{SOURCE8} + %{l_prefix}/bin/gem install --local %{SOURCE9} + %{l_prefix}/bin/gem install --local %{SOURCE10} + %{l_prefix}/bin/gem install --local %{SOURCE11} + %{l_prefix}/bin/gem install --local %{SOURCE12} + %{l_prefix}/bin/gem install --local %{SOURCE13} + %{l_prefix}/bin/gem install --local %{SOURCE14} + %{l_prefix}/bin/gem install --local %{SOURCE15} + %{l_prefix}/bin/gem install --local %{SOURCE16} + %{l_prefix}/bin/gem install --local %{SOURCE17} + %{l_prefix}/bin/gem install --local %{SOURCE18} + %{l_prefix}/bin/gem install --local %{SOURCE19} + %{l_prefix}/bin/gem install --local %{SOURCE20} + %{l_prefix}/bin/gem install --local %{SOURCE21} + %{l_prefix}/bin/gem install --local %{SOURCE22} + %{l_prefix}/bin/gem install --local %{SOURCE23} + %{l_prefix}/bin/gem install --local %{SOURCE24} + %{l_prefix}/bin/gem install --local %{SOURCE25} + %{l_prefix}/bin/gem install --local %{SOURCE27} + + # install configuration + ( cd $RPM_BUILD_ROOT%{l_prefix}/lib/chiliproj + %{l_shtool} mkdir -f -p -m 755 .bundle + cp %{SOURCE Gemfile.lock} . + echo 'gem "thin"' >>Gemfile + cp config/configuration.yml.example config/configuration.yml + cp config/additional_environment.rb.example config/additional_environment.rb + echo "ENV['GEM_PATH'] = '%{l_prefix}/lib/ruby/gems/$RUBY_VERSION:%{l_prefix}/lib/chiliproj/gems/$RUBY_VERSION'" >>config/additional_environment.rb + #echo 'config.action_controller.session = { :key => "_chiliproject_session", :secret => "54bbf51a99cbce2a8881af4fa0fa23895e071f8c8c4773e76b09388135bd9d3671534bf4db20c9f3" }' >>config/additional_environment.rb + cat >config/database.yml <.bundle/config </dev/null 2>&1 && \ + # chili_active="yes" + echo "chili_enable=\"$chili_enable\"" + echo "chili_usable=\"$chili_usable\"" + echo "chili_active=\"$chili_active\"" + +%start -u @l_nusr@ + rcService chiliproj enable yes || exit 0 + rcService chiliproj active yes && exit 0 + PATH=$PATH:@l_gempath@/bin bundle exec thin -e production -a $chili_host start + +%stop -u @l_nusr@ + rcService chiliproj enable yes || exit 0 + rcService chiliproj active no && exit 0 + # send kill -TERM to pid + +%restart -u @l_nusr@ + rcService chiliproj enable yes || exit 0 + rcService chiliproj active no && exit 0 + # do stop sleep start + +%daily -u @l_nusr@ + rcService chiliproj enable yes || exit 0 +# shtool rotate -f \ +# -n ${chili_log_numfiles} -s ${chili_log_minsize} -d \ +# -z ${chili_log_complevel} -m 664 -o @l_rusr@ -g @l_rgrp@ \ +# -P "${chili_log_prolog}" \ +# -E "${chili_log_epilog}; rc chiliproj logrel" \ +# @l_prefix@/lib/chiliproj/log/chiliproject.log +