1dbfc56
Name:           avrdude
Hans Ulrich Niedermann 914326b
Version:        5.11
Hans Ulrich Niedermann 914326b
Release:        1%{?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
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
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
Hans Ulrich Niedermann 914326b
* Mon Sep 12 2011 Hans Ulrich Niedermann <hun@n-dimensional.de> - 5.11-1
Hans Ulrich Niedermann 914326b
- Update to avrdude-5.11
Hans Ulrich Niedermann 914326b
Hans Ulrich Niedermann 8fe020e
* Wed Mar 02 2011 Hans Ulrich Niedermann <hun@n-dimensional.de> - 5.10-3
Hans Ulrich Niedermann 8fe020e
- Rebuilt package from fixed sources (unchanged package content)
Hans Ulrich Niedermann 8fe020e
- Unify pkg source in git for el6, f13, f14, f15, rawhide
Hans Ulrich Niedermann 8fe020e
4e13503
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.10-2
4e13503
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4e13503
Bart Vanbrabant 377a493
* Fri Feb 19 2010 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 5.10-1
Bart Vanbrabant 377a493
- New upstream version. Several new devices and programmers supported. Some
Bart Vanbrabant 377a493
  bugfixes and a new features to apply external reset if JTAG ID could not be
Bart Vanbrabant 377a493
  read.
Bart Vanbrabant 377a493
Bart Vanbrabant c446068
* Thu Sep 3 2009 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 5.8-1
Bart Vanbrabant c446068
- New upstream version: See the NEWS file for more information
Bart Vanbrabant c446068
- Removed patch: changes are included in upstream version
a7d84cf
249dd8d
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5-4
249dd8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
249dd8d
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.