1dbfc56
Name:           avrdude
62eab2f
Version:        5.5
79a9448
Release:        2%{?dist}
1dbfc56
Summary:        Software for programming Atmel AVR Microcontroller
1dbfc56
1dbfc56
Group:          Applications/Engineering
62eab2f
License:        GPLv2+
79a9448
URL:            http://www.nongnu.org/avrdude
1dbfc56
Source0:        http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
79a9448
Patch0: 	avrdude-5.5.usbtiny.64bit.patch
1dbfc56
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1dbfc56
1dbfc56
BuildRequires:  flex
1dbfc56
BuildRequires:  bison
1dbfc56
BuildRequires:  readline-devel
1dbfc56
BuildRequires:  ncurses-devel
1dbfc56
BuildRequires:  libusb-devel
1dbfc56
BuildRequires:  texi2html
1dbfc56
BuildRequires:  texinfo-tex
01796c2
BuildRequires:  tetex-dvips
1dbfc56
Requires(post): /sbin/install-info
1dbfc56
Requires(preun): /sbin/install-info
1dbfc56
1dbfc56
1dbfc56
%description
1dbfc56
AVRDUDE is a program for programming Atmel's AVR CPU's. It can program the 
1dbfc56
Flash and EEPROM, and where supported by the serial programming protocol, it 
1dbfc56
can program fuse and lock bits. AVRDUDE also supplies a direct instruction 
1dbfc56
mode allowing one to issue any programming instruction to the AVR chip 
1dbfc56
regardless of whether AVRDUDE implements that specific feature of a 
1dbfc56
particular chip.
1dbfc56
1dbfc56
1dbfc56
%prep
1dbfc56
%setup -q
79a9448
%patch0 -p1
1dbfc56
chmod -x safemode.c doc/TODO
1dbfc56
sed -i 's|/usr/local/etc/avrdude.conf|/etc/avrdude/avrdude.conf|g' doc/avrdude.texi avrdude.1
1dbfc56
sed -i 's|/etc/avrdude.conf|/etc/avrdude/avrdude.conf|g' doc/avrdude.texi avrdude.1
62eab2f
iconv -f ISO88591 -t UTF8 < ChangeLog-2003 > ChangeLog-2003~
62eab2f
mv ChangeLog-2003~ ChangeLog-2003
62eab2f
iconv -f ISO88591 -t UTF8 < NEWS > NEWS~
62eab2f
mv NEWS~ NEWS
62eab2f
62eab2f
1dbfc56
1dbfc56
1dbfc56
%build
1dbfc56
%configure --enable-doc --sysconfdir=%{_sysconfdir}/%{name}
1dbfc56
make
1dbfc56
1dbfc56
1dbfc56
%install
1dbfc56
rm -rf $RPM_BUILD_ROOT
1dbfc56
make install DESTDIR=$RPM_BUILD_ROOT
1dbfc56
mv $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version} installed-docs
1dbfc56
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
1dbfc56
1dbfc56
1dbfc56
%clean
1dbfc56
rm -rf $RPM_BUILD_ROOT
1dbfc56
1dbfc56
1dbfc56
%post
1dbfc56
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
1dbfc56
1dbfc56
1dbfc56
%preun
1dbfc56
if [ $1 = 0 ]; then
1dbfc56
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
1dbfc56
fi
1dbfc56
1dbfc56
1dbfc56
%files
1dbfc56
%defattr(-,root,root,-)
62eab2f
%doc README AUTHORS ChangeLog* COPYING NEWS doc/TODO installed-docs/*
1dbfc56
%config(noreplace) %{_sysconfdir}/%{name}
1dbfc56
%{_bindir}/%{name}
1dbfc56
%{_mandir}/man1/%{name}.1.gz
1dbfc56
%{_infodir}/%{name}.info.gz
1dbfc56
1dbfc56
1dbfc56
%changelog
79a9448
* Fri Jan 11 2008 Trond Danielsen <trond.danielsen@gmail.com> - 5.5-2
79a9448
- Added patch for 64-bit systems.
79a9448
- Corrected the URL to the avrude homepage.
79a9448
62eab2f
* Sat Dec 29 2007 Trond Danielsen <trond.danielsen@gmail.com> - 5.5-1
62eab2f
- New upstream version
62eab2f
- Fixed minor rpmlint warning.
62eab2f
0d8950d
* Fri Mar 02 2007 Trond Danielsen <trond.danielsen@gmail.com> - 5.3.1-5
01796c2
- Added missing BuildRequire tetex-dvips.
01796c2
1dbfc56
* Thu Feb 29 2007 Trond Danielsen <trond.danielsen@gmail.com> - 5.3.1-4
1dbfc56
- Updated list of files.
1dbfc56
- Corrected sed line in prep section.
1dbfc56
1dbfc56
* Wed Feb 28 2007 Trond Danielsen <trond.danielsen@gmail.com> - 5.3.1-3
1dbfc56
- Added missing BuildRequires.
1dbfc56
- Enable generation of documentation.
1dbfc56
- Updated path to avrdude.conf in info page.
1dbfc56
1dbfc56
* Wed Feb 28 2007 Trond Danielsen <trond.danielsen@gmail.com> - 5.3.1-2
1dbfc56
- Added missing BuildRequires readline-devel and ncurses-devel.
1dbfc56
- Changed config file to noreplace and moved to separate folder.
1dbfc56
- Corrected permission for file debuginfo package.
1dbfc56
1dbfc56
* Wed Feb 28 2007 Trond Danielsen <trond.danielsen@gmail.com> - 5.3.1-1
1dbfc56
- Initial version.