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