Removes "-o freeside" from install lines in Makefile so that you don't need
authorrsiddall <rsiddall>
Fri, 8 Feb 2008 21:57:41 +0000 (21:57 +0000)
committerrsiddall <rsiddall>
Fri, 8 Feb 2008 21:57:41 +0000 (21:57 +0000)
a freeside user on the build machine.  RPM handles setting the file owner.
This should allow the RPMs to build under mock.

install/rpm/freeside.spec

index 85f790a..9c02c40 100644 (file)
@@ -95,6 +95,7 @@ For security reasons, it is set to conflict with %{name} so you cannot install t
 %{__rm} bin/pod2x # Only useful to Ivan Kohler now
 %{__cp} install/rpm/freeside-install FS/bin
 perl -pi -e 's|/usr/local/bin|%{buildroot}%{_bindir}|g' FS/Makefile.PL
+perl -pi -e 's|\s+-o\s+freeside\s+| |g' Makefile
 perl -ni -e 'print if !/\s+chown\s+/;' Makefile
 
 # Override find-requires/find-provides to supplement Perl requires for HTML::Mason file handler.pl