Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/installs/rpm/exe.spec
blob: bca08e7b773cf936d1f9d184b06beb9ddcd12056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
%define ver 0.95.1

%define pyver  %(%{__python} -c 'import sys ; print sys.version[:3]')

Summary: eXe eLearning XHTML editor
Name: exe
Version: %{?clversion}%{!?clversion:%{ver}}
Release: %{?clrelease}%{?dist:%{dist}}%{!?clrelease:1%{?dist:%{dist}}}
Source0: exe-%{version}-source.tgz
License: GPL
Group: Applications/Editors
Vendor: The eXeLearning Project <exe@exelearning.org>
Url: http://exelearning.org/
BuildRoot: %{_tmppath}/exe-buildroot
Prefix: %{_prefix}
ExclusiveArch: i386
BuildRequires: python-devel
BuildRequires: python >= 2.4
Requires: python-imaging, python-zope-interface
Requires: firefox
Obsoletes: exe-twisted

%description
eXe, the eLearning XHTML editor, is an authoring environment which enables
teachers to publish web content in standard package formats (like IMS
Content Packages and SCORM) without the need to become proficient in HTML
or XML markup.  Content generated using eXe can be used by any Learning
Management System.

%prep
%setup -n exe
# remove the other platform binaries
rm -f exe/webui/templates/mimetex.64.cgi exe/webui/templates/mimetex.exe
rm -f exe/webui/templates/mimetex-darwin.cgi
rm -f exe/msvcr71.dll
rm -f twisted/spread/cBanana.so
rm -f twisted/protocols/_c_urlarg.so

%build
rm -rf $RPM_BUILD_ROOT
python rpm-setup.py build

%install
python rpm-setup.py install --root=$RPM_BUILD_ROOT
cp -a twisted nevow formless $RPM_BUILD_ROOT%{_datadir}/exe
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
cp exe.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cp exe.desktop $RPM_BUILD_ROOT%{_datadir}/applications/
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mime/packages/
cp exe.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages/
rm -f $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/site-packages/exe-*.egg-info

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%attr(755,root,root) %{_datadir}/exe/templates/mimetex.cgi
%{_bindir}/exe
%{_libdir}/python%{pyver}/site-packages/exe
%{_datadir}/exe
%{_datadir}/icons/hicolor/48x48/apps/exe.png
%config %{_datadir}/mime/packages/exe.xml
%config %{_datadir}/applications/exe.desktop
%doc COPYING NEWS README

%post
/usr/bin/update-mime-database /usr/share/mime &> /dev/null

%changelog
* Tue Nov 18 2008 Jim Tittsler <jim@exelearning.org>
- update spec file to work with Fedora 9

* Mon Jul 09 2007 Jim Tittsler <jim@exelearning.org>
- update spec file to work with Fedora 7
- use files list instead of recording INSTALLED_FILES in setup.py to catch .pyo files

* Mon May 28 2007 Jim Tittsler <jim@exelearning.org>
- add desktop file and icon
- add MIME type and .elp glob to associate file types

* Thu May 24 2007 Jim Tittsler <jim@exelearning.org>
- remove temp_print_dirs workaround from datadir/exe

* Tue May 22 2007 Jim Tittsler <jim@exelearning.org>
- optional clversion and clrelease defines to improve automation
- remove more spurious binaries for other platforms
- require firefox

* Mon May 21 2007 Jim Tittsler <jim@exelearning.org>
- make 'Release:' distribution specific

* Wed May 09 2007 Jim Tittsler <jim@exelearning.org>
- bring up to date, including our custom twisted/nevow