Mailinglist Archive: opensuse-packaging (220 mails)

< Previous Next >
Re: [opensuse-packaging] Adding man pages problem
  • From: "Dominique Leuenberger" <Dominique.Leuenberger@xxxxxxxxxxxxx>
  • Date: Mon, 21 Sep 2009 15:50:04 +0200
  • Message-id: <4AB7A0AC0200002900035A8E@xxxxxxxxxxxxxxxxxxx>
Hi,

On 9/21/2009 at 13:25, houghi <houghi@xxxxxxxxxx> wrote:
I am trying to make an rpm of storeBackup and am unable to implement the
man pages. Wat am I doing wrong?
[...]
%install
#
install -d ${RPM_BUILD_ROOT}
\
${RPM_BUILD_ROOT}/usr/lib/storeBackup/
\
${RPM_BUILD_ROOT}/usr/bin/
\
${RPM_BUILD_ROOT}/usr/share/doc/packages/storeBackup/
\
${RPM_BUILD_ROOT}/etc/cron.daily/
\
${RPM_BUILD_ROOT}/etc/storebackup.d/
#
cp -a %{S:1} ./README.SUSE
cp -a %{S:2} ./doc/
cp -aRpv bin/ lib/
${RPM_BUILD_ROOT}/usr/lib/storeBackup/
cp -a correct.sh
${RPM_BUILD_ROOT}/usr/lib/storeBackup/bin
cp -a cron-storebackup
${RPM_BUILD_ROOT}/etc/cron.daily/storebackup
ln -sf /usr/lib/storeBackup/bin/llt
${RPM_BUILD_ROOT}/usr/bin/llt
ln -sf
/usr/lib/storeBackup/bin/multitail.pl
${RPM_BUILD_ROOT}/usr/bin/multitai
l.pl
ln -sf
/usr/lib/storeBackup/bin/storeBackupCheckBackup.pl ${RPM_BUILD_ROOT}/usr
/bin/storeBackupCheckBackup.pl
ln -sf
/usr/lib/storeBackup/bin/storeBackupConvertBackup.pl ${RPM_BUILD_ROOT}/u
sr/bin/storeBackupConvertBackup.pl
ln -sf
/usr/lib/storeBackup/bin/storeBackupDel.pl
${RPM_BUILD_ROOT}/usr/bin/sto
reBackupDel.pl
ln -sf
/usr/lib/storeBackup/bin/storeBackup_du.pl
${RPM_BUILD_ROOT}/usr/bin/sto
reBackup_du.pl
ln -sf
/usr/lib/storeBackup/bin/storeBackupls.pl
${RPM_BUILD_ROOT}/usr/bin/stor
eBackupls.pl
ln -sf
/usr/lib/storeBackup/bin/storeBackupMount.pl
${RPM_BUILD_ROOT}/usr/bin/s
toreBackupMount.pl
ln -sf
/usr/lib/storeBackup/bin/storeBackup.pl
${RPM_BUILD_ROOT}/usr/bin/storeB
ackup.pl
ln -sf
/usr/lib/storeBackup/bin/storeBackupRecover.pl
${RPM_BUILD_ROOT}/usr/bin
/storeBackupRecover.pl
ln -sf
/usr/lib/storeBackup/bin/storeBackupSearch.pl
${RPM_BUILD_ROOT}/usr/bin/
storeBackupSearch.pl
ln -sf
/usr/lib/storeBackup/bin/storeBackupUpdateBackup.pl ${RPM_BUILD_ROOT}/us
r/bin/storeBackupUpdateBackup.pl
ln -sf
/usr/lib/storeBackup/bin/storeBackupVersions.pl
${RPM_BUILD_ROOT}/usr/bi
n/storeBackupVersions.pl
ln -sf
/usr/lib/storeBackup/bin/storeBackup.pl
${RPM_BUILD_ROOT}/usr/bin/storeB
ackup
%{?suse_check}


A long install section, but at no point in time are you actually copying the
man pages to their destination.
as the entire install is rather manual, you have to take care of copying your
man folder to %{rpmbuildroot}%{_mandir}

Then I assume it will work for you.

Dominique
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
References