From 1dbfc5601456d39e5769bfe2f1002a578fb97c75 Mon Sep 17 00:00:00 2001 From: Trond Danielsen Date: Mar 02 2007 15:25:42 +0000 Subject: auto-import avrdude-5.3.1-4 on branch devel from avrdude-5.3.1-4.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..ddf9e5a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +avrdude-5.3.1.tar.gz diff --git a/avrdude.spec b/avrdude.spec new file mode 100644 index 0000000..0897ee4 --- /dev/null +++ b/avrdude.spec @@ -0,0 +1,90 @@ +Name: avrdude +Version: 5.3.1 +Release: 4%{?dist} +Summary: Software for programming Atmel AVR Microcontroller + +Group: Applications/Engineering +License: GPL +URL: http://www.bsdhome.com/avrdude/ +Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: flex +BuildRequires: bison +BuildRequires: readline-devel +BuildRequires: ncurses-devel +BuildRequires: libusb-devel +BuildRequires: texi2html +BuildRequires: texinfo-tex +Requires(post): /sbin/install-info +Requires(preun): /sbin/install-info + + +%description +AVRDUDE is a program for programming Atmel's AVR CPU's. It can program the +Flash and EEPROM, and where supported by the serial programming protocol, it +can program fuse and lock bits. AVRDUDE also supplies a direct instruction +mode allowing one to issue any programming instruction to the AVR chip +regardless of whether AVRDUDE implements that specific feature of a +particular chip. + + +%prep +%setup -q +chmod -x safemode.c doc/TODO +sed -i 's|/usr/local/etc/avrdude.conf|/etc/avrdude/avrdude.conf|g' doc/avrdude.texi avrdude.1 +sed -i 's|/etc/avrdude.conf|/etc/avrdude/avrdude.conf|g' doc/avrdude.texi avrdude.1 + + +%build +%configure --enable-doc --sysconfdir=%{_sysconfdir}/%{name} +make + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +mv $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version} installed-docs +rm -f $RPM_BUILD_ROOT%{_infodir}/dir + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : + + +%preun +if [ $1 = 0 ]; then + /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : +fi + + +%files +%defattr(-,root,root,-) +%doc README AUTHORS ChangeLog* COPYING NEWS doc/TODO installed-docs/* +%config(noreplace) %{_sysconfdir}/%{name} +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.gz +%{_infodir}/%{name}.info.gz + + +%changelog +* Thu Feb 29 2007 Trond Danielsen - 5.3.1-4 +- Updated list of files. +- Corrected sed line in prep section. + +* Wed Feb 28 2007 Trond Danielsen - 5.3.1-3 +- Added missing BuildRequires. +- Enable generation of documentation. +- Updated path to avrdude.conf in info page. + +* Wed Feb 28 2007 Trond Danielsen - 5.3.1-2 +- Added missing BuildRequires readline-devel and ncurses-devel. +- Changed config file to noreplace and moved to separate folder. +- Corrected permission for file debuginfo package. + +* Wed Feb 28 2007 Trond Danielsen - 5.3.1-1 +- Initial version. diff --git a/sources b/sources index e69de29..dd79dd1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +58c2be9f7a864b930ed9e6f1858f5cc7 avrdude-5.3.1.tar.gz