davical/davical.spec

changeset 700
2164082fa57f
parent 396
610cba0674b9
child 703
6e3df34ead39
equal deleted inserted replaced
8:ad89366e635d 9:4388fb6d0af8
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package version 24 # package version
25 %define V_opkg 0.9.9.7 25 %define V_opkg 1.1.1
26 %define V_davical 0.9.9.7 26 %define V_davical 1.1.1
27 %define V_awl 0.49 27 %define V_awl 0.53
28 28
29 # package information 29 # package information
30 Name: davical 30 Name: davical
31 Summary: CalDAV Server 31 Summary: CalDAV Server
32 URL: http://rscds.sourceforge.net/ 32 URL: http://rscds.sourceforge.net/
35 Distribution: OpenPKG Community 35 Distribution: OpenPKG Community
36 Class: EVAL 36 Class: EVAL
37 Group: Network 37 Group: Network
38 License: GPL 38 License: GPL
39 Version: %{V_opkg} 39 Version: %{V_opkg}
40 Release: 20111130 40 Release: 20120800
41 41
42 # package options 42 # package options
43 %define with_ssl no 43 %define with_ssl no
44 44
45 # list of sources 45 # list of sources
50 Source4: davical-setup.sh 50 Source4: davical-setup.sh
51 Source5: rc.davical 51 Source5: rc.davical
52 Patch0: davical.patch 52 Patch0: davical.patch
53 53
54 # build information 54 # build information
55 Prefix: %{l_prefix} 55 BuildPreReq: OpenPKG, openpkg >= 20100101
56 BuildRoot: %{l_buildroot} 56 PreReq: OpenPKG, openpkg >= 20100101
57 BuildPreReq: OpenPKG, openpkg >= 20060823
58 PreReq: OpenPKG, openpkg >= 20060823
59 PreReq: pcre, pcre::with_utf8 57 PreReq: pcre, pcre::with_utf8
60 PreReq: apache 58 PreReq: apache, apg
61 %if "%{with_ssl}" == "yes" 59 %if "%{with_ssl}" == "yes"
62 PreReq: apache::with_mod_ssl = yes, x509 60 PreReq: apache::with_mod_ssl = yes, x509
63 %endif 61 %endif
64 PreReq: apache-php 62 PreReq: apache-php
65 PreReq: apache-php::with_pgsql = yes 63 PreReq: apache-php::with_pgsql = yes
66 PreReq: apache-php::with_gettext = yes 64 PreReq: apache-php::with_gettext = yes
67 PreReq: apache-php::with_iconv = yes 65 PreReq: apache-php::with_iconv = yes
68 PreReq: yaml, yaml::with_perl = yes 66 PreReq: yaml, yaml::with_perl = yes
69 PreReq: perl-dbi 67 PreReq: perl-dbi
68 PreReq: perl-dbi::with_pgsql = yes
70 PreReq: postgresql 69 PreReq: postgresql
71 PreReq: apg
72 AutoReq: no
73 AutoReqProv: no
74 70
75 %description 71 %description
76 The DAViCal CalDAV Server is a repository for calendar, schedule, 72 The DAViCal CalDAV Server is a repository for calendar, schedule,
77 todo and journal entries which may be accessed with CalDAV capable 73 todo, and journal entries. Its design allows for trivial storage of
78 client software. 74 CalDAV calendars from clients such as Evolution, Sunbird/Lightning,
75 Mulberry, iCal, iPhone, or SOHO Organizer. Calendar data is stored
76 in a central location providing shared calendars, free/busy
77 publication and a basic administration interface.
79 78
80 %track 79 %track
81 prog davical:davical = { 80 prog davical:davical = {
82 version = %{V_davical} 81 version = %{V_davical}
83 url = http://debian.mcmillan.net.nz/packages/davical/ 82 url = http://debian.mcmillan.net.nz/packages/davical/
98 davical-%{V_davical}/scripts/build-always.sh 97 davical-%{V_davical}/scripts/build-always.sh
99 98
100 %build 99 %build
101 ln -s awl-%{V_awl} awl 100 ln -s awl-%{V_awl} awl
102 ( cd davical-%{V_davical} 101 ( cd davical-%{V_davical}
103 %{l_shtool} subst %{l_value -s -a} inc/always.php.in 102 %{l_shtool} subst %{l_value -s -a} \
103 inc/always.php.in \
104 htdocs/always.php
104 %{l_make} %{l_mflags} htdocs/always.php 105 %{l_make} %{l_mflags} htdocs/always.php
105 ) || exit $? 106 ) || exit $?
106 107
107 %install 108 %install
108 # remove build cruft
109 rm -rf $RPM_BUILD_ROOT
110
111 # create installation hierarchy 109 # create installation hierarchy
112 %{l_shtool} mkdir -f -p -m 755 \ 110 %{l_shtool} mkdir -f -p -m 755 \
113 $RPM_BUILD_ROOT%{l_prefix}/sbin \ 111 $RPM_BUILD_ROOT%{l_prefix}/sbin \
114 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ 112 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
115 $RPM_BUILD_ROOT%{l_prefix}/etc/davical \ 113 $RPM_BUILD_ROOT%{l_prefix}/etc/davical \
119 $RPM_BUILD_ROOT%{l_prefix}/var/davical/run \ 117 $RPM_BUILD_ROOT%{l_prefix}/var/davical/run \
120 $RPM_BUILD_ROOT%{l_prefix}/var/davical/log 118 $RPM_BUILD_ROOT%{l_prefix}/var/davical/log
121 119
122 # install program components 120 # install program components
123 find . -name "*.orig" -print | xargs rm -f 121 find . -name "*.orig" -print | xargs rm -f
122 # MSvB: Needed?
123 # %{l_shtool} subst %{l_value -s -a} \
124 # davical-%{V_davical}/htdocs/always.php
124 cp -r \ 125 cp -r \
125 awl-%{V_awl}/dba \ 126 awl-%{V_awl}/dba \
126 awl-%{V_awl}/inc \ 127 awl-%{V_awl}/inc \
127 $RPM_BUILD_ROOT%{l_prefix}/lib/davical/awl/ 128 $RPM_BUILD_ROOT%{l_prefix}/lib/davical/awl/
128 %{l_shtool} subst %{l_value -s -a} \
129 davical-%{V_davical}/htdocs/always.php
130 cp -r \ 129 cp -r \
131 davical-%{V_davical}/dba \ 130 davical-%{V_davical}/dba \
132 davical-%{V_davical}/inc \ 131 davical-%{V_davical}/inc \
133 davical-%{V_davical}/htdocs \ 132 davical-%{V_davical}/htdocs \
134 $RPM_BUILD_ROOT%{l_prefix}/lib/davical/davical/ 133 $RPM_BUILD_ROOT%{l_prefix}/lib/davical/davical/
145 -e "s;@l_hostname@;$l_hostname;g" \ 144 -e "s;@l_hostname@;$l_hostname;g" \
146 -e "s;@l_domainname@;$l_domainname;g" \ 145 -e "s;@l_domainname@;$l_domainname;g" \
147 %{SOURCE davical-apache.conf} \ 146 %{SOURCE davical-apache.conf} \
148 $RPM_BUILD_ROOT%{l_prefix}/etc/davical/ 147 $RPM_BUILD_ROOT%{l_prefix}/etc/davical/
149 148
150 # install run-command script 149 # install runcommand script
151 %if "%{with_ssl}" == "yes" 150 %if "%{with_ssl}" == "yes"
152 with_ssl="-DSSL" 151 with_ssl="-DSSL"
153 %else 152 %else
154 with_ssl="" 153 with_ssl=""
155 %endif 154 %endif
180 '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/davical/*' 179 '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/davical/*'
181 180
182 %files -f files 181 %files -f files
183 182
184 %clean 183 %clean
185 rm -rf $RPM_BUILD_ROOT
186 184
187 %post 185 %post
188 if [ $1 -eq 1 ]; then 186 if [ $1 -eq 1 ]; then
189 # display final hints on initial installation 187 # display final hints on initial installation
190 ( echo "1. To complete this installation of DAViCal please start" 188 ( echo "1. To complete this installation of DAViCal please start"

mercurial