On Jan 21, 2009, at 10:56 PM, Dean Glazeski wrote:

I've created a spec file that can be used to build Fedora 10, or possibly other OS's, binary and source RPMs. I've attached the spec file. I also wanted to see if somebody was already responsible for this particular package. I can build it and send it to Rick Altherr if no one is currently handling this package type.


Since we've never done a release before, no one has made packages before. Feel free to do so.

Rick

// Dean
Name:           openocd
Version:        0.1.0
Release:        1%{?dist}
Summary: The Open On-Chip Debugger (OpenOCD) aims to provide debugging, in-system programming and boundary-scan testing for embedded devices.

Group:          Applications/Programming
License:        GPL
URL:            http://openocd.berlios.de/web/
Source0:        %{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}- XXXXXX)

%description
This package installs the OpenOCD project.

%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 $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%post
if [ -f %{_infodir}/%{name}.info.gz ]; then
        /sbin/install-info %{_infodir}/%{name}.info.gz --dir=%{_infodir}/dir
fi

%preun
if [ -f %{_infodir}/%{name}.info.gz ]; then
/sbin/install-info %{_infodir}/%{name}.info.gz --dir=%{_infodir}/ dir --delete
fi

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
/usr/bin/openocd
/usr/lib/openocd
/usr/share/openocd
%docdir /usr/share/info
/usr/share/info
%ghost /usr/share/info/dir
%docdir /usr/share/man/man1
/usr/share/man/man1

%changelog


--
Rick Altherr
kc8...@kc8apf.net

"He said he hadn't had a byte in three days. I had a short, so I split it with him."
 -- Unsigned



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to