]> git.pld-linux.org Git - packages/anyterm.git/blame - anyterm.spec
- Epoch: 0, rel 0.1 if it doesn't work
[packages/anyterm.git] / anyterm.spec
CommitLineData
57ac7731 1%define apxs /usr/sbin/apxs
2Summary: Terminal emulator in a web browser
3Name: anyterm
4Version: 1.1.4
e1dd02cd
ER
5Release: 0.1
6Epoch: 0
57ac7731 7License: GPL
8Group: Networking/Daemons
9Source0: http://anyterm.org/download/%{name}-%{version}.tbz2
10# Source0-md5: cf841703b7438866e573f5a33137ff6f
8785aef2 11Patch0: %{name}-makefile.patch
57ac7731 12URL: http://anyterm.org/
13BuildRequires: apache-devel >= 2.0.52-2
14BuildRequires: apr-devel
15BuildRequires: rote-devel >= 0.2.8
8785aef2 16BuildRequires: rpmbuild(macros) >= 1.194
57ac7731 17BuildRequires: %{apxs}
18Requires: apache >= 2.0.52-2
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
e1dd02cd 21%define _httpdir %{_datadir}/%{name}
8785aef2
ER
22%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
23%define _sysconfdir /etc/httpd
57ac7731 24
25%description
26An apache module plus scripts to make a terminal within a web browser.
27
28%prep
29%setup -q
30%patch0 -p1
31
32%build
33rm -rf $RPM_BUILD_ROOT
34cd apachemod
35%{__make} \
8785aef2 36 INCLUDES='-I%{_includedir}/apr-util' \
57ac7731 37 APXS2=apxs \
38 APR_CONFIG=apr-1-config
39cd ..
40cd anygetty
41%{__make}
42cd ..
43
44%install
45rm -rf $RPM_BUILD_ROOT
46install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/httpd.conf,%{_pkglibdir},%{_mandir}/man8,%{_httpdir}}
47
48cat > $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/70_anyterm.conf <<END
49LoadModule anyterm modules/%{name}.so
50Alias /%{name} "%{_httpdir}/%{name}"
8785aef2 51anyterm_command '%{_sbindir}/anygetty --remotehost "Anyterm: %h"'
57ac7731 52END
53
54install apachemod/.libs/%{name}.so $RPM_BUILD_ROOT%{_pkglibdir}/%{name}.so
55cp -a browser $RPM_BUILD_ROOT/%{_httpdir}/%{name}
56install anygetty/anygetty $RPM_BUILD_ROOT/%{_sbindir}
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
57ac7731 63%doc README
8785aef2 64%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*
57ac7731 65%attr(755,root,root) %{_pkglibdir}/%{name}.so
66%attr(755,root,root) %{_sbindir}/anygetty
67%{_httpdir}/%{name}
68
69%post
8785aef2
ER
70%banner %{name} <<EOF
71For full function, setuid %{_sbindir}/anygetty.
72EOF
This page took 0.08702 seconds and 4 git commands to generate.