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