source: installers/linux/rpms/SPECS/eduCommons-3.2.1-rc1.spec @ 476

Revision 476, 2.2 KB checked in by brent, 4 years ago (diff)

moved plone site creation to post RPM install due to errors when it ran earlier.

Line 
1#
2#
3#
4#
5#
6#
7
8%define _prefix         /opt/eduCommons-3.2.1-rc1
9
10Summary: eduCommons-3.2.1-rc1
11Name: eduCommons
12Version: 3.2.1
13Release: rc1
14License: GPL
15Group: eduCommons
16URL: http://educommons.com/downloads
17Source0: %{name}-%{version}-rc1.tar.gz
18BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
19Requires: gcc python-devel python-setuptools tkinter tcl-devel tk-devel freetype-devel zlib-devel libjpeg-devel libxml2-devel libxslt-devel
20
21%description
22
23eduCommons is a content management system designed specifically to
24support OpenCourseWare projects. eduCommons will help you develop
25and manage an open access collection of course materials. It is
26built around a workflow process that guides content developers
27through the process of publishing materials in an openly accessible
28format.
29
30%prep
31%setup -q -n eduCommons-%{version}-rc1
32#python bootstrap.py
33
34chmod 644 parts/zope2/lib/python/ZODB/scripts/*.py
35chmod 644 parts/zope2/lib/python/ZEO/scripts/*.py
36chmod 644 parts/zope2/lib/python/ZEO/zeoctl.py
37chmod 644 parts/zope2/utilities/ZODBTools/*.py
38chmod 644 eggs/Products.kupu*/Products/kupu/python/nationalizer.py
39
40
41
42
43%build
44#./bin/buildout -c deployment.cfg
45
46%install
47rm -rf $RPM_BUILD_ROOT
48mkdir -p $RPM_BUILD_ROOT%{_prefix}
49cp -r * $RPM_BUILD_ROOT%{_prefix}
50
51
52%clean
53rm -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
83echo "Completing post install ..."
84cd %{_prefix} >& /dev/null
85/usr/bin/python2.4 bootstrap.py -oN -c deployment.cfg
86bin/buildout -oN -v plonesite:enabled=true -c deployment.cfg
87echo "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
Note: See TracBrowser for help on using the repository browser.