5 %define source0 http://www.420.am/gtkdbi/%{name}-%{ver}.tar.gz
6 %define url http://www.420.am/gtkdbi/
7 %define group Application
8 %define copy GPL or Artistic
9 %define filelst %{name}-%{ver}-files
14 Summary: No description
20 Packager: Ivan Kohler <ivan-gtkdbi\@420.am>
25 BuildRoot: /var/tmp/%{name}-%{ver}
31 %setup -n %{rlname}-%{ver}
34 if [ $(perl -e 'print index($INC[0],"%{prefix}/lib/perl");') -eq 0 ];then
35 # package is to be installed in perl root
36 inst_method="makemaker-root"
37 CFLAGS=$RPM_OPT_FLAGS perl Makefile.PL PREFIX=%{prefix}
39 # package must go somewhere else (eg. /opt), so leave off the perl
40 # versioning to ease integration with automatic profile generation scripts
41 # if this is really a perl-version dependant package you should not omiss
43 inst_method="makemaker-site"
44 CFLAGS=$RPM_OPT_FLAGS perl Makefile.PL PREFIX=%{prefix} LIB=%{prefix}/lib/perl5
47 echo $inst_method > inst_method
49 # get number of processors for parallel builds on SMP systems
50 numprocs=`cat /proc/cpuinfo | grep processor | wc | cut -c7`
51 if [ "x$numprocs" = "x" -o "x$numprocs" = "x0" ]; then
55 make "MAKE=make -j$numprocs"
58 rm -rf $RPM_BUILD_ROOT
60 if [ "$(cat inst_method)" = "makemaker-root" ];then
61 make UNINST=1 PREFIX=$RPM_BUILD_ROOT%{prefix} install
62 elif [ "$(cat inst_method)" = "makemaker-site" ];then
63 make UNINST=1 PREFIX=$RPM_BUILD_ROOT%{prefix} LIB=$RPM_BUILD_ROOT%{prefix}/lib/perl5 install
67 find $RPM_BUILD_ROOT -type f -print|sed -e "s@^$RPM_BUILD_ROOT@@g" > %{filelst}
70 %defattr(-, root, root)
74 rm -rf $RPM_BUILD_ROOT
77 * Tue Oct 23 2001 - Ivan Kohler <ivan-gtkdbi\@420.am>
78 This file was created by Glade::PerlSource