Fix for bug that prevented RPMs building on x86_64: wrong path to brp-compress.
authorrsiddall <rsiddall>
Thu, 8 Nov 2007 02:15:47 +0000 (02:15 +0000)
committerrsiddall <rsiddall>
Thu, 8 Nov 2007 02:15:47 +0000 (02:15 +0000)
install/rpm/freeside.spec

index 57d9e18..1e1b91c 100644 (file)
@@ -31,6 +31,8 @@ Requires: tetex-latex
 %define        fs_selfservice_user     fs_selfservice
 %define        fs_cron_user            fs_daily
 
+%define _rpmlibdir     /usr/lib/rpm
+
 %description
 Freeside is a flexible ISP billing system written by Ivan Kohler
 
@@ -181,7 +183,7 @@ eval `perl '-V:installarchlib'`
 %makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix}
 %{__rm} -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist`
 
-[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress
+[ -x %{_rpmlibdir}/brp-compress ] && %{_rpmlibdir}/brp-compress
 
 find $RPM_BUILD_ROOT%{_prefix} -type f -print | \
        grep -v '/etc/freeside/conf' | \
@@ -199,7 +201,7 @@ cd fs_selfservice/FS-SelfService
 %makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix}
 %{__rm} -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist`
 
-[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress
+[ -x %{_rpmlibdir}/brp-compress ] && %{_rpmlibdir}/brp-compress
 
 find $RPM_BUILD_ROOT%{_prefix} -type f -print | \
        grep -v '/etc/freeside/conf' | \