| 1 | # |
|---|
| 2 | # |
|---|
| 3 | # |
|---|
| 4 | # |
|---|
| 5 | # |
|---|
| 6 | # |
|---|
| 7 | |
|---|
| 8 | %define _prefix /opt/eduCommons-3.2.1-rc1 |
|---|
| 9 | |
|---|
| 10 | Summary: eduCommons-3.2.1-rc1 |
|---|
| 11 | Name: eduCommons |
|---|
| 12 | Version: 3.2.1 |
|---|
| 13 | Release: rc1 |
|---|
| 14 | License: GPL |
|---|
| 15 | Group: eduCommons |
|---|
| 16 | URL: http://educommons.com/downloads |
|---|
| 17 | Source0: %{name}-%{version}-rc1.tar.gz |
|---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|---|
| 19 | Requires: gcc python-devel python-setuptools tkinter tcl-devel tk-devel freetype-devel zlib-devel libjpeg-devel libxml2-devel libxslt-devel |
|---|
| 20 | |
|---|
| 21 | %description |
|---|
| 22 | |
|---|
| 23 | eduCommons is a content management system designed specifically to |
|---|
| 24 | support OpenCourseWare projects. eduCommons will help you develop |
|---|
| 25 | and manage an open access collection of course materials. It is |
|---|
| 26 | built around a workflow process that guides content developers |
|---|
| 27 | through the process of publishing materials in an openly accessible |
|---|
| 28 | format. |
|---|
| 29 | |
|---|
| 30 | %prep |
|---|
| 31 | %setup -q -n eduCommons-%{version}-rc1 |
|---|
| 32 | #python bootstrap.py |
|---|
| 33 | |
|---|
| 34 | chmod 644 parts/zope2/lib/python/ZODB/scripts/*.py |
|---|
| 35 | chmod 644 parts/zope2/lib/python/ZEO/scripts/*.py |
|---|
| 36 | chmod 644 parts/zope2/lib/python/ZEO/zeoctl.py |
|---|
| 37 | chmod 644 parts/zope2/utilities/ZODBTools/*.py |
|---|
| 38 | chmod 644 eggs/Products.kupu*/Products/kupu/python/nationalizer.py |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | %build |
|---|
| 44 | #./bin/buildout -c deployment.cfg |
|---|
| 45 | |
|---|
| 46 | %install |
|---|
| 47 | rm -rf $RPM_BUILD_ROOT |
|---|
| 48 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
|---|
| 49 | cp -r * $RPM_BUILD_ROOT%{_prefix} |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | %clean |
|---|
| 53 | rm -rf $RPM_BUILD_ROOT |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | %files |
|---|
| 57 | %defattr(-,root,root,-) |
|---|
| 58 | %doc %{_prefix}/README.txt |
|---|
| 59 | %{_prefix}/bootstrap.py |
|---|
| 60 | %{_prefix}/buildout.cfg |
|---|
| 61 | %{_prefix}/deployment.cfg |
|---|
| 62 | %{_prefix}/tests.cfg |
|---|
| 63 | %{_prefix}/bin |
|---|
| 64 | %attr (755,educommons,educommons) %{_prefix}/var |
|---|
| 65 | %{_prefix}/eggs |
|---|
| 66 | %{_prefix}/parts |
|---|
| 67 | %{_prefix}/fake-eggs |
|---|
| 68 | %{_prefix}/products |
|---|
| 69 | #%exclude %{_prefix}/bootstrap.pyc |
|---|
| 70 | #%exclude %{_prefix}/bootstrap.pyo |
|---|
| 71 | %exclude %{_prefix}/develop-eggs |
|---|
| 72 | %exclude %{_prefix}/downloads |
|---|
| 73 | %exclude %{_prefix}/src |
|---|
| 74 | %exclude %{_prefix}/bin/instance |
|---|
| 75 | |
|---|
| 76 | %pre |
|---|
| 77 | /usr/sbin/useradd -c "eduCommons" -d %{_prefix} -M -r -s /sbin/nologin educommons |
|---|
| 78 | |
|---|
| 79 | %preun |
|---|
| 80 | |
|---|
| 81 | |
|---|
| 82 | %post |
|---|
| 83 | echo "Completing post install ..." |
|---|
| 84 | cd %{_prefix} >& /dev/null |
|---|
| 85 | /usr/bin/python2.4 bootstrap.py -oN -c deployment.cfg |
|---|
| 86 | bin/buildout -oN -v plonesite:enabled=true -c deployment.cfg |
|---|
| 87 | echo "Done." |
|---|
| 88 | |
|---|
| 89 | %postun |
|---|
| 90 | /usr/sbin/userdel educommons |
|---|
| 91 | |
|---|
| 92 | %changelog |
|---|
| 93 | * Wed Mar 11 2009 Brent Lambert <brent@enpraxis.net> - 3.2-1 |
|---|
| 94 | - Initial build. |
|---|
| 95 | |
|---|