From 7f0bbd3e3ace9fc87b4dab702e915824b69a0199 Mon Sep 17 00:00:00 2001 From: fyodor Date: Sat, 15 Mar 2008 10:24:49 +0000 Subject: [PATCH] cannot use %configure macro anymore due to lame bug (spec file tries to use noarch-redhat-linux, but config.sub does not currently recognize that) --- zenmap.spec.in | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/zenmap.spec.in b/zenmap.spec.in index 6fa7793b6..01326a354 100644 --- a/zenmap.spec.in +++ b/zenmap.spec.in @@ -43,7 +43,22 @@ from Umit, an Nmap GUI created as part of the Google Summer of Code. %setup -q -n nmap-%{version} %build -%configure --without-openssl --with-zenmap PYTHON="%{__python}" +# Cannot use configure macro because noarch-redhat-linux is not +# recognized by the auto tools in the tarball. Upgrading to the +# latest GNU CVS config.sub/config.guess on 3/15/08 didn't fix it. So +# I'm using this approach, as is done by other projects, such as +# http://mono.ximian.com/monobuild/snapshot/snapshot_packages/noarch/xsp/96614/xsp.spec +# -Fyodor +./configure --prefix=%{_prefix} \ + --libexecdir=%{_prefix}/lib \ + --bindir=%{_prefix}/bin \ + --datadir=%{_prefix}/share \ + --libdir=%{_prefix}/lib \ + --mandir=%{_prefix}/share/man \ + --infodir=%{_prefix}/share/info \ + --sysconfdir=%{_sysconfdir} \ + --without-openssl \ + --with-zenmap PYTHON="%{__python}" make build-zenmap DESTDIR=$RPM_BUILD_ROOT %install