/[smecontribs]/rpms/jeta-h3/contribs7/jeta-h3.spec
ViewVC logotype

Contents of /rpms/jeta-h3/contribs7/jeta-h3.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Tue Nov 25 16:20:12 2008 UTC (15 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +0 -0 lines
Restore

1 # $Id: jeta-h3.spec,v 1.2 2008/04/02 15:03:55 slords Exp $
2 # Authority: mrjhb3
3 # Name: John H. Bennett III
4
5 %define apachedir /etc/httpd
6 %define apacheuser www
7 %define apachegroup www
8 %define contentdir /home/httpd
9
10 Summary: The web-based file manager for Horde.
11 Name: jeta-h3
12 Version: 1.0
13 Release: 1%{?dist}
14 License: LGPL
15 Group: Applications/Horde
16 Source: ftp://ftp.horde.org/pub/jeta/tarballs/jeta-h3-%{version}.tar.gz
17 URL: http://www.horde.org/
18 BuildArchitectures: noarch
19 BuildRoot: /tmp/horde-root
20 AutoReq: no
21 Requires: horde >= 3.0
22 Requires: php >= 4.3.0
23 Requires: httpd >= 2.0.46
24 Prereq: /usr/bin/perl
25
26 %description
27 Jeta is the Horde module that provides a Java SSH interface to login
28 to the webserver (or another server with the use of additional relay software).
29
30 The Horde Project writes web applications in PHP and releases them under
31 Open Source licenses. For more information (including help with Horde
32 and its modules) please visit http://www.horde.org/.
33
34 This package contains customizations for SME Server
35 and will probably not work properly on other Linux systems.
36
37 %prep
38 %setup -q -n %{name}-%{version}
39
40 %build
41
42 %install
43 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
44 mkdir -p $RPM_BUILD_ROOT%{apachedir}/conf
45 mkdir -p $RPM_BUILD_ROOT%{contentdir}/html/horde/jeta
46 cp -pR * $RPM_BUILD_ROOT%{contentdir}/html/horde/jeta
47 chmod go-rwx $RPM_BUILD_ROOT%{contentdir}/html/horde/jeta/test.php
48 cd $RPM_BUILD_ROOT%{contentdir}/html/horde/jeta/config
49 for d in *.dist; do
50 d0=`basename $d .dist`
51 if [ ! -f "$d0" ]; then
52 cp -p $d $d0
53 fi
54 done
55
56 %clean
57 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
58
59 %post
60
61 %postun
62
63 %files
64 %defattr(-,root,root)
65 # Include top level with %dir so not all files are sucked in
66 %dir %{contentdir}/html/horde/jeta
67 # Include top-level files by hand
68 %{contentdir}/html/horde/jeta/*.php
69 # Include these dirs so that all files _will_ get sucked in
70 %{contentdir}/html/horde/jeta/lib
71 %{contentdir}/html/horde/jeta/locale
72 %{contentdir}/html/horde/jeta/po
73 %{contentdir}/html/horde/jeta/templates
74 %{contentdir}/html/horde/jeta/themes
75 # Mark documentation files with %doc and %docdir
76 %doc %{contentdir}/html/horde/jeta/COPYING
77 %doc %{contentdir}/html/horde/jeta/README
78 %docdir %{contentdir}/html/horde/jeta/docs
79 %{contentdir}/html/horde/jeta/docs
80 # Mark configuration files with %config and use secure permissions
81 # (note that .dist files are considered software; don't mark %config)
82 %attr(750,root,%{apachegroup}) %dir %{contentdir}/html/horde/jeta/config
83 %defattr(640,root,%{apachegroup})
84 %{contentdir}/html/horde/jeta/config/.htaccess
85 %{contentdir}/html/horde/jeta/config/*.dist
86 %{contentdir}/html/horde/jeta/jar/*.jar
87 %{contentdir}/html/horde/jeta/jar/*.conf
88 %config %{contentdir}/html/horde/jeta/config/*.php
89 %config %{contentdir}/html/horde/jeta/config/*.xml
90
91 %changelog
92 * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
93 - Clean up spec so package can be built by koji/plague
94
95 * Sat Mar 31 2007 John H. Bennett III <bennettj@johnbennettservices.com> 1.0-1
96 - Initial Release
97

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed