diff -r d3f49ec0c5cd -r 45eaa38991fd davical/davical.spec --- a/davical/davical.spec Thu Sep 15 19:31:49 2011 +0200 +++ b/davical/davical.spec Thu Sep 15 19:34:00 2011 +0200 @@ -22,9 +22,9 @@ ## # package version -%define V_opkg 0.9.9.3 -%define V_davical 0.9.9.3 -%define V_awl 0.45 +%define V_opkg 0.9.9.5 +%define V_davical 0.9.9.5 +%define V_awl 0.47 # package information Name: davical @@ -37,7 +37,7 @@ Group: Network License: GPL Version: %{V_opkg} -Release: 20101124 +Release: 20110915 # package options %define with_ssl no @@ -65,8 +65,12 @@ PreReq: apache-php::with_pgsql = yes PreReq: apache-php::with_gettext = yes PreReq: apache-php::with_iconv = yes +PreReq: yaml, yaml::with_perl = yes +PreReq: perl-dbi PreReq: postgresql PreReq: apg +AutoReq: no +AutoReqProv: no %description The DAViCal CalDAV Server is a repository for calendar, schedule, @@ -89,11 +93,17 @@ %setup -q -c %setup -q -T -D -a 1 %patch -p0 + %{l_shtool} subst \ + -e 's;../awl/VERSION;../awl-%{V_awl}/VERSION;' \ + davical-%{V_davical}/scripts/build-always.sh %build cd davical-%{V_davical} && %{l_make} %{l_mflags} htdocs/always.php %install + # remove build cruft + rm -rf $RPM_BUILD_ROOT + # create installation hierarchy %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/sbin \ @@ -111,7 +121,6 @@ awl-%{V_awl}/dba \ awl-%{V_awl}/inc \ $RPM_BUILD_ROOT%{l_prefix}/lib/davical/awl/ - rm -f davical-%{V_davical}/inc/always.php.in %{l_shtool} subst %{l_value -s -a} \ davical-%{V_davical}/htdocs/always.php cp -r \ @@ -146,6 +155,10 @@ %{SOURCE davical-setup.sh} \ $RPM_BUILD_ROOT%{l_prefix}/sbin/davical-setup + # remove intermediate headers and other unused files + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/davical/awl/inc/*.in + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/davical/davical/inc/*.in + # determine installation files %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \