Browse Source

+ Patch for building as non-root user from Colin Western, plus man pages put right

michael 21 years ago
parent
commit
9be32ff5e7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      install/fpc.spec

+ 2 - 2
install/fpc.spec

@@ -29,7 +29,7 @@ BuildRequires: fpc
 
 # The normal redhat rpm scripts does not recognize properly, what files to strip
 # Hook our own strip command
-%define __strip %{buildroot}/smart_strip.sh
+%define __strip %{_builddir}/%{name}-%{version}/smart_strip.sh
 
 
 %description
@@ -78,7 +78,7 @@ INSTALLOPTS="FPC=${NEWPP} INSTALL_PREFIX=%{buildroot}/usr INSTALL_LIBDIR=%{build
 
 	make demo_install ${INSTALLOPTS} INSTALL_SOURCEDIR=%{buildexampledir}
 	make doc_install ${INSTALLOPTS}
-	make man_install ${INSTALLOPTS} INSTALL_PREFIX=%{buildmandir}
+	make man_install ${INSTALLOPTS} INSTALL_MANDIR=%{buildmandir}
 	
 if [ -z ${NODOCS} ]; then
 	make -C docs pdfinstall DOCINSTALLDIR=%{builddocdir}