Hi,

I would like to submit a patch to a bug in the snavigator.spec that
prevents command line options from being passed to snavigator.

I would also like to contribute a spec to insight. 

I must say that I've found very strange that insight isn't included in
RHL while ddd is, specially considering that insight is even maintained
by sources.redhat.com folks. 

In fact I was unable to find any insight RPM anywhere, that why I've
made this one, based on gdb.spec and snavigator.spec, and eventually
found the bug on snavigator.spec.

Of course, if you really want to incorporate them on RHL you can do
whatever you want with these files and change them anyway you want.

Regards,

Jose Fonseca

PS: This is the second email I send to this list. From the first one I've received an 
automated reply saying that it was required approval from the list moderator, but it 
was never posted and I didn't received further reply. If the list is not moderated 
this should be clearly stated.
%define insightdir %{_libexecdir}/insight

Summary: Insight is a graphical user interface to GDB written in Tcl/Tk.
Name: insight
Version: 5.1
Release: 1
Copyright: GPL
Group: Development/Debuggers
Source: ftp://sources.redhat.com/pub/gdb/releases/insight-%{version}.tar.bz2
Buildroot: %{_tmppath}/%{name}-%{version}-root

%description
Insight is a graphical user interface to GDB, the GNU Debugger written in Tcl/Tk.

%prep
%setup -q


%build
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;
./configure %{_target_platform} --prefix=%{insightdir}
make
cp gdb/README gdb/NEWS gdb/gdbtk/README.GDBTK .


%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{insightdir} install

mkdir -p $RPM_BUILD_ROOT%{_bindir}

cat << EOF > $RPM_BUILD_ROOT%{_bindir}/insight
#!/bin/sh
exec %{insightdir}/bin/gdb \$@
EOF

chmod 755 $RPM_BUILD_ROOT%{_bindir}/insight

rm -rf $RPM_BUILD_ROOT%{insightdir}/include
rm -rf $RPM_BUILD_ROOT%{insightdir}/lib
rm -rf $RPM_BUILD_ROOT%{insightdir}/man


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%doc COPYING COPYING.LIB README NEWS README.GDBTK
%{_bindir}/insight
%{insightdir}


%changelog
* Fri Dec  7 2001 Jose Fonseca <[EMAIL PROTECTED]>
- adapted from gdb.spec and snavigator.spec
*** snavigator.spec.old	Wed Dec 12 18:14:56 2001
--- snavigator.spec	Wed Dec 12 18:15:08 2001
***************
*** 43,47 ****
  cat << EOF > $RPM_BUILD_ROOT%{_bindir}/snavigator
  #!/bin/sh
! exec %{SNdir}/bin/snavigator $@
  EOF
  
--- 43,47 ----
  cat << EOF > $RPM_BUILD_ROOT%{_bindir}/snavigator
  #!/bin/sh
! exec %{SNdir}/bin/snavigator \$@
  EOF
  

Reply via email to