Hey Chitlesh,
I have created a SPEC file that seems to work okay against the 0.1.0
release of OpenOCD. Once a 0.2 gets a bit closer, or even on SVN head
for testing, I'll look at the spec file again. I had to use chrpath to
fix some rpath issues, so I hope that's okay. These are the only
remaining errors I have from rpmlint on the final rpm package:
openocd.x86_64: E: statically-linked-binary
/usr/lib64/openocd/ecos/at91eb40a.elf
openocd.x86_64: E: missing-PT_GNU_STACK-section
/usr/lib64/openocd/ecos/at91eb40a.elf
openocd.x86_64: W: devel-file-in-non-devel-package
/usr/share/openocd/contrib/libdcc/example.c
openocd.x86_64: W: devel-file-in-non-devel-package
/usr/share/openocd/contrib/libdcc/dcc_stdio.c
openocd.x86_64: W: devel-file-in-non-devel-package
/usr/share/openocd/contrib/libdcc/dcc_stdio.h
openocd.x86_64: W: file-not-utf8 /usr/share/info/openocd.info.gz
1 packages and 0 specfiles checked; 2 errors, 4 warnings.
I'm not sure if the first two need to be fixed. They are meant for an
embedded systems, I think. If anyone in OpenOCD land knows what these
files are for, I'd be grateful to learn about them :). Thanks for the
help. I've attached the current spec file.
// Dean Glazeski
Name: openocd
Version: 0.1.0
Release: 1%{?dist}
Summary: Debugging, in-system programming and boundary-scan testing for
embedded devices
Group: Development/Tools
License: GPLv2
URL: http://openocd.berlios.de/web/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: chrpath
%description
The Open On-Chip Debugger (OpenOCD) provides debugging, in-system programming
and boundary-scan testing for embedded devices. Various different boards,
targets, and interfaces are supported to ease development time.
Install OpenOCD if you are looking for an open source solution for hardware
debugging.
%prep
%setup -q
%build
%configure --enable-parport --enable-parport_ppdev --enable-ft2232_libftdi
--enable-ep93xx --enable-at91rm9200 --enable-usbprog --enable-presto_libftdi
--enable-jlink --enable-vsllink --enable-rlink --enable-dummy --enable-gw16012
--enable-amtjtagaccel
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
rm -f %{buildroot}/%{_infodir}/dir
chrpath --delete %{buildroot}/%{_bindir}/openocd
%post
if [ -x /sbin/install-info ]; then
/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir
fi
%preun
if [ -x /sbin/install-info ]; then
/sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir
fi
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README COPYING AUTHORS ChangeLog NEWS TODO
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_infodir}/%{name}.info.gz
%{_mandir}/man1/*
%changelog
* Tue Mar 17 2009 Dean Glazeski <dnglaze at gmail.com> 0.1.0-1
- Created initial package for Fedora
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development