summaryrefslogtreecommitdiff
path: root/gtkdbi.spec
diff options
context:
space:
mode:
authorivan <ivan>2002-01-10 16:11:20 +0000
committerivan <ivan>2002-01-10 16:11:20 +0000
commit8cb39114b5aa93a59c0cfbbb4b231674c0540003 (patch)
tree5aca07674e80f1c3ff6d32f9b43f57134be8ad83 /gtkdbi.spec
checking gtkdbi into cvsHEADSTARTmaster
Diffstat (limited to 'gtkdbi.spec')
-rw-r--r--gtkdbi.spec78
1 files changed, 78 insertions, 0 deletions
diff --git a/gtkdbi.spec b/gtkdbi.spec
new file mode 100644
index 0000000..9a8b15a
--- /dev/null
+++ b/gtkdbi.spec
@@ -0,0 +1,78 @@
+%define ver 0.01
+%define rel 1
+%define name gtkdbi
+%define rlname %{name}
+%define source0 http://www.420.am/gtkdbi/%{name}-%{ver}.tar.gz
+%define url http://www.420.am/gtkdbi/
+%define group Application
+%define copy GPL or Artistic
+%define filelst %{name}-%{ver}-files
+%define confdir /etc
+%define prefix /usr
+%define arch noarch
+
+Summary: No description
+
+Name: %name
+Version: %ver
+Release: %rel
+Copyright: %{copy}
+Packager: Ivan Kohler <ivan-gtkdbi\@420.am>
+Source: %{source0}
+URL: %{url}
+Group: %{group}
+BuildArch: %{arch}
+BuildRoot: /var/tmp/%{name}-%{ver}
+
+%description
+No description
+
+%prep
+%setup -n %{rlname}-%{ver}
+
+%build
+if [ $(perl -e 'print index($INC[0],"%{prefix}/lib/perl");') -eq 0 ];then
+ # package is to be installed in perl root
+ inst_method="makemaker-root"
+ CFLAGS=$RPM_OPT_FLAGS perl Makefile.PL PREFIX=%{prefix}
+else
+ # package must go somewhere else (eg. /opt), so leave off the perl
+ # versioning to ease integration with automatic profile generation scripts
+ # if this is really a perl-version dependant package you should not omiss
+ # the version info...
+ inst_method="makemaker-site"
+ CFLAGS=$RPM_OPT_FLAGS perl Makefile.PL PREFIX=%{prefix} LIB=%{prefix}/lib/perl5
+fi
+
+echo $inst_method > inst_method
+
+# get number of processors for parallel builds on SMP systems
+numprocs=`cat /proc/cpuinfo | grep processor | wc | cut -c7`
+if [ "x$numprocs" = "x" -o "x$numprocs" = "x0" ]; then
+ numprocs=1
+fi
+
+make "MAKE=make -j$numprocs"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+if [ "$(cat inst_method)" = "makemaker-root" ];then
+ make UNINST=1 PREFIX=$RPM_BUILD_ROOT%{prefix} install
+elif [ "$(cat inst_method)" = "makemaker-site" ];then
+ make UNINST=1 PREFIX=$RPM_BUILD_ROOT%{prefix} LIB=$RPM_BUILD_ROOT%{prefix}/lib/perl5 install
+fi
+
+%__os_install_post
+find $RPM_BUILD_ROOT -type f -print|sed -e "s@^$RPM_BUILD_ROOT@@g" > %{filelst}
+
+%files -f %{filelst}
+%defattr(-, root, root)
+%doc Documentation/*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%changelog
+* Tue Oct 23 2001 - Ivan Kohler <ivan-gtkdbi\@420.am>
+ This file was created by Glade::PerlSource