1dbfc56
Name:           avrdude
32a27fc
Version:        5.5
bdefedf
Release:        3%{?dist}
1dbfc56
Summary:        Software for programming Atmel AVR Microcontroller
1dbfc56
1dbfc56
Group:          Applications/Engineering
32a27fc
License:        GPLv2+
f0a8d61
URL:            http://www.nongnu.org/avrdude
1dbfc56
Source0:        http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
f0a8d61
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
f0a8d61
%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
32a27fc
iconv -f ISO88591 -t UTF8 < ChangeLog-2003 > ChangeLog-2003~
32a27fc
mv ChangeLog-2003~ ChangeLog-2003
32a27fc
iconv -f ISO88591 -t UTF8 < NEWS > NEWS~
32a27fc
mv NEWS~ NEWS
32a27fc
32a27fc
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,-)
32a27fc
%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
bdefedf
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.5-3
bdefedf
- Autorebuild for GCC 4.3
bdefedf
f0a8d61
* Fri Jan 11 2008 Trond Danielsen <trond.danielsen@gmail.com> - 5.5-2
f0a8d61
- Added patch for 64-bit systems.
f0a8d61
- Corrected the URL to the avrude homepage.
f0a8d61
32a27fc
* Sat Dec 29 2007 Trond Danielsen <trond.danielsen@gmail.com> - 5.5-1
32a27fc
- New upstream version
32a27fc
- Fixed minor rpmlint warning.
32a27fc
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.