1 |
unnilennium |
1.3 |
# $Id: smeserver-ajaxterm.spec,v 1.2 2013/02/06 16:19:42 unnilennium Exp $ |
2 |
unnilennium |
1.1 |
# Authority: mweinber |
3 |
|
|
# Name: Michael Weinberger |
4 |
|
|
|
5 |
|
|
Summary: ajaxterm is a web-based terminal |
6 |
|
|
%define realname smeserver-ajaxterm |
7 |
|
|
%define version 1.0.5 |
8 |
unnilennium |
1.3 |
%define release 4 |
9 |
unnilennium |
1.1 |
Name: %{realname} |
10 |
|
|
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
BuildArch: noarch |
13 |
|
|
License: GPL |
14 |
|
|
Group: System Environment/Libraries |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
|
|
Source1: Ajaxterm-0.10.tar.gz |
17 |
|
|
Patch0: smeserver-ajaxterm-1.0.5-DocumentationFromSpecFile.patch |
18 |
unnilennium |
1.3 |
Patch1: smeserver-ajaxterm-1.0.5-patch1.patch |
19 |
unnilennium |
1.1 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
20 |
|
|
URL: http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm |
21 |
|
|
Requires: smeserver-release > 7.1.3 |
22 |
|
|
BuildRequires: e-smith-devtools |
23 |
unnilennium |
1.2 |
BuildRequires: python2-devel python-setuptools |
24 |
unnilennium |
1.1 |
|
25 |
|
|
%changelog |
26 |
unnilennium |
1.3 |
* Wed Feb 06 2013 JP Pialasse <tests@pialasse.com> 1.0.5-4 |
27 |
|
|
- fix user ajaxterm [SME: 6442] |
28 |
|
|
- creating default database |
29 |
|
|
|
30 |
unnilennium |
1.2 |
* Tue Feb 05 2013 JP Pialasse <tests@pialasse.com> 1.0.5-3 |
31 |
|
|
- import into SME8 tree [SME: 7309] |
32 |
|
|
- fix brp-python in spec file |
33 |
|
|
|
34 |
unnilennium |
1.1 |
* Sat Mar 01 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.5-2 |
35 |
|
|
- Moved documentation from spec file |
36 |
|
|
- Changed description (copied from http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm) |
37 |
|
|
- Fixed whitelines in changelog between entries |
38 |
|
|
|
39 |
|
|
* Fri Feb 29 2008 Michael Weinberger <mweinber@neddix.de> 1.0.5-1 |
40 |
|
|
Fix spec file |
41 |
|
|
|
42 |
|
|
* Thu Nov 15 2007 Michael Weinberger <mweinber@neddix.de> |
43 |
|
|
Version 1.0.5 |
44 |
|
|
Bug fix: SysV start: do not fall back do user root if user ajaxterm does not exist |
45 |
|
|
added config properties 'width' and 'height' |
46 |
|
|
|
47 |
|
|
* Thu Nov 15 2007 Michael Weinberger <mweinber@neddix.de> |
48 |
|
|
Version 1.0.4 |
49 |
|
|
added config property basicAuthUsers |
50 |
|
|
|
51 |
|
|
* Wed Nov 14 2007 Michael Weinberger <mweinber@neddix.de> |
52 |
|
|
Version 1.0.3 |
53 |
|
|
added config properties allowOnlyLocalhost and servicePort |
54 |
|
|
login with 'su' when localhost, otherwise with ssh |
55 |
|
|
Promtps for SSHPort at ssh login |
56 |
|
|
|
57 |
|
|
%description |
58 |
|
|
Ajaxterm is a web based terminal. It was totally inspired and works almost exactly like http://anyterm.org/ except it's much easier to install (see comparaison with anyterm below). |
59 |
|
|
|
60 |
unnilennium |
1.3 |
%pre |
61 |
|
|
if ! /usr/bin/id ajaxterm &>/dev/null; then |
62 |
|
|
/usr/sbin/useradd -c 'Ajaxterm User' -s /sbin/nologin -r -d /opt/ajaxterm ajaxterm &>/dev/null || \ |
63 |
|
|
%logmsg "Unexpected error adding user \"ajaxterm\". Abort installation." |
64 |
|
|
fi |
65 |
|
|
|
66 |
unnilennium |
1.1 |
%prep |
67 |
|
|
%setup -n %{realname}-%{version} |
68 |
|
|
%patch0 -p1 |
69 |
unnilennium |
1.3 |
%patch1 -p1 |
70 |
unnilennium |
1.1 |
|
71 |
|
|
%build |
72 |
|
|
|
73 |
|
|
%install |
74 |
|
|
rm -rf $RPM_BUILD_ROOT |
75 |
|
|
tar xzvf $RPM_SOURCE_DIR/Ajaxterm-0.10.tar.gz |
76 |
|
|
mv Ajaxterm-0.10/* root/opt/ajaxterm |
77 |
unnilennium |
1.2 |
rm -rf Ajaxterm-0.10 |
78 |
unnilennium |
1.1 |
ls root/opt/ajaxterm |
79 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
80 |
|
|
rm -f %{name}-%{version}-filelist |
81 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
82 |
|
|
--dir /opt/ajaxterm 'attr(0750,ajaxterm,www)' \ |
83 |
|
|
--file /opt/ajaxterm/ 'attr(0640,ajaxterm,www)' \ |
84 |
|
|
--file /opt/ajaxterm/ajaxterm.py 'attr(0550,ajaxterm,www)' \ |
85 |
|
|
--file /opt/ajaxterm/login.pl 'attr(0550,ajaxterm,www)' \ |
86 |
unnilennium |
1.2 |
--dir /usr/share/doc/smeserver-ajaxterm-1.0.5 'attr(0755,root,root)' \ |
87 |
unnilennium |
1.1 |
>> %{name}-%{version}-filelist |
88 |
unnilennium |
1.2 |
find $RPM_BUILD_ROOT -depth -type l -print |
89 |
|
|
# following make 4 files listed twice, and show no more |
90 |
|
|
#find $RPM_BUILD_ROOT -depth -type l -print |\ |
91 |
|
|
# sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist |
92 |
|
|
cat %{name}-%{version}-filelist |
93 |
|
|
/usr/lib/rpm/brp-python-bytecompile |
94 |
unnilennium |
1.1 |
|
95 |
|
|
%clean |
96 |
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT |
97 |
|
|
|
98 |
|
|
%files -f %{name}-%{version}-filelist |
99 |
|
|
%defattr(-,root,root) |
100 |
unnilennium |
1.2 |
#following make folder listed twice |
101 |
|
|
#%attr(0755,root,root) %doc %dir /usr/share/doc/smeserver-ajaxterm-1.0.5/ |
102 |
|
|
|
103 |
|
|
|