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

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

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


Revision 1.1 - (hide annotations) (download)
Tue Mar 25 14:53:45 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: jeta-h3-1_0-1_el4_sme
Import on branch contribs7 of package jeta-h3-1.0-1.el4.sme.src.rpm

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

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