summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2008-11-08 07:35:44 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2008-11-08 07:35:44 (GMT)
commita9638d4e961be2307d16df34451ff785ed1a93a9 (patch)
tree9429bfc81299ac600e756a10fb9955807c8914e6
parentadd909d9f8b0cefffacfd3b10682acb1291000be (diff)
downloadperl-Kolab-a9638d4e961be2307d16df34451ff785ed1a93a9.tar.gz
Move split install instructions from the spec file to the Makefile as per comment by Richard Bos.
-rw-r--r--perl-kolab.spec15
1 files changed, 6 insertions, 9 deletions
diff --git a/perl-kolab.spec b/perl-kolab.spec
index 158645b..c177f44 100644
--- a/perl-kolab.spec
+++ b/perl-kolab.spec
@@ -72,16 +72,13 @@ AutoReqProv: no
%install
%{l_prefix}/bin/perl-openpkg prepare
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} -A "--config \"%{l_prefix}/etc/kolab\" --bin \"%{l_prefix}/bin\"" configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} -A \
+ "--config \"%{l_prefix}/etc/kolab\" --bin \"%{l_prefix}/bin\" --sbin \"%{l_prefix}/sbin\" --etc \"%{l_prefix}/etc\"" \
+ configure build install
+ cd %{V_package}-%{V_source_tag}
+ make install_sbin install_etc
+ cd ..
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
- mkdir -p $RPM_BUILD_ROOT/%{l_prefix}/sbin
- for SBIN in kolabd kolabcheckperm kolabconf kolab_bootstrap; do \
- mv $RPM_BUILD_ROOT/%{l_prefix}/bin/$SBIN $RPM_BUILD_ROOT/%{l_prefix}/sbin/$SBIN; \
- chmod 744 $RPM_BUILD_ROOT/%{l_prefix}/sbin/$SBIN; \
- sed -i -e "s#/bin/$SBIN#/sbin/$SBIN#" perl-openpkg-files; \
- done
- mkdir -p $RPM_BUILD_ROOT/%{l_prefix}/etc/kolab
- cp $RPM_BUILD_DIR/%{V_package}-%{V_version}/%{V_package}-%{V_source_tag}/data/quotawarning.txt $RPM_BUILD_ROOT/%{l_prefix}/etc/kolab
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
%files -f files