/[smecontribs]/rpms/trean/contribs7/trean.spec
ViewVC logotype

Annotation of /rpms/trean/contribs7/trean.spec

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


Revision 1.2 - (hide annotations) (download)
Wed Apr 2 15:04:00 2008 UTC (16 years, 8 months ago) by slords
Branch: MAIN
Changes since 1.1: +4 -0 lines
Add Id, Authority, Name

1 slords 1.2 # $Id$
2     # Authority: mrjhb3
3     # Name: John H. Bennett III
4    
5 slords 1.1 %define apachedir /etc/httpd
6     %define apacheuser www
7     %define apachegroup www
8     %define contentdir /home/httpd
9    
10     Summary: A bookmark application for use under the horde framework.
11     Name: trean
12     Version: 0.1
13     Release: 0%{?dist}
14     License: LGPL
15     Group: Applications/Horde
16     Source: ftp://ftp.horde.org/pub/trean/tarballs/trean-%{version}.tar.gz
17     Vendor: The Horde Project
18     URL: http://www.horde.org/
19     BuildArchitectures: noarch
20     BuildRoot: /tmp/horde-root
21     AutoReq: no
22     Requires: horde >= 3.0
23     Requires: php >= 4.3.0
24     Requires: httpd >= 2.0.46
25     Prereq: /usr/bin/perl
26    
27     %description
28     The Trean (Bookmarks) application allows you to store, organize and manage,
29     and most importantly access your web browser bookmarks on-line and in one
30     central place accessible from any web browser.
31    
32     The Horde Project writes web applications in PHP and releases them under
33     Open Source licenses. For more information (including help with Horde
34     and its modules) please visit http://www.horde.org/.
35    
36     This package contains customizations for SME Server
37     and will probably not work properly on other Linux systems.
38    
39     %prep
40    
41     %setup -q -n %{name}-%{version}
42    
43     %build
44    
45     %install
46     [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
47     mkdir -p $RPM_BUILD_ROOT%{apachedir}/conf
48     mkdir -p $RPM_BUILD_ROOT%{contentdir}/html/horde/trean
49     cp -pR * $RPM_BUILD_ROOT%{contentdir}/html/horde/trean
50     cd $RPM_BUILD_ROOT%{contentdir}/html/horde/trean/config
51    
52    
53     for d in *.dist; do
54     d0=`basename $d .dist`
55     if [ ! -f "$d0" ]; then
56     cp -p $d $d0
57     fi
58     done
59    
60     %clean
61     [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
62    
63     %post
64    
65     %postun
66    
67     %files
68     %defattr(-,root,root)
69     # Include top level with %dir so not all files are sucked in
70     %dir %{contentdir}/html/horde/trean
71     # Include top-level files by hand
72     %{contentdir}/html/horde/trean/*.php
73     # Include these dirs so that all files _will_ get sucked in
74     %{contentdir}/html/horde/trean/lib
75     %{contentdir}/html/horde/trean/locale
76     %{contentdir}/html/horde/trean/po
77     %{contentdir}/html/horde/trean/templates
78     %{contentdir}/html/horde/trean/themes
79     %{contentdir}/html/horde/trean/scripts
80     # Mark documentation files with %doc and %docdir
81     #%doc %{contentdir}/html/horde/trean/COPYING
82     %doc %{contentdir}/html/horde/trean/LICENSE
83     %doc %{contentdir}/html/horde/trean/README
84     %docdir %{contentdir}/html/horde/trean/docs
85     %{contentdir}/html/horde/trean/docs
86     # Mark configuration files with %config and use secure permissions
87     # (note that .dist files are considered software; don't mark %config)
88     %attr(750,root,%{apachegroup}) %dir %{contentdir}/html/horde/trean/config
89     %defattr(640,root,%{apachegroup})
90     %{contentdir}/html/horde/trean/config/.htaccess
91     %{contentdir}/html/horde/trean/config/*.dist
92     %config %{contentdir}/html/horde/trean/config/*.php
93     %config %{contentdir}/html/horde/trean/config/*.xml
94     #%config %{contentdir}/html/horde/trean/config/*.txt
95    
96     %changelog
97     * Sun Jun 04 2006 John H. Bennett III <bennettj@johnbennettservices.com>
98     - [0.0.1-1sme01]
99     - Initial Release from CVS 2006-06-04
100    

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