diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..903b524 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +uisp-20050207.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..d857429 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +b1e499d5a1011489635c1a0e482b1627 uisp-20050207.tar.gz diff --git a/uisp-20050207-m168-stk500-extendedFuseSupport.patch b/uisp-20050207-m168-stk500-extendedFuseSupport.patch new file mode 100644 index 0000000..d34cf92 --- /dev/null +++ b/uisp-20050207-m168-stk500-extendedFuseSupport.patch @@ -0,0 +1,30 @@ +diff -cr uisp-20050207/src/Avr.C uisp-20050207-m168/src/Avr.C +*** uisp-20050207/src/Avr.C Tue Feb 8 00:55:08 2005 +--- uisp-20050207-m168/src/Avr.C Mon Mar 28 02:17:52 2005 +*************** +*** 101,106 **** +--- 101,107 ---- + { "ATmega163", 0x94, 0x02, 16384, 128, 512, 15000, 3800, AVR_M163 }, + { "ATmega16", 0x94, 0x03, 16384, 128, 512, 4500, 9000, AVR_M163 }, + { "ATmega162", 0x94, 0x04, 16384, 128, 512, 4500, 9000, AVR_M128 }, ++ { "ATmega168", 0x94, 0x06, 16384, 128, 512, 4500, 4000, AVR_M128 }, + { "ATmega169", 0x94, 0x05, 16384, 128, 512, 4500, 9000, AVR_M128 }, + + { "ATmega323", 0x95, 0x01, 32768, 128, 1024, 15000, 3800, AVR_M163 }, +diff -cr uisp-20050207/src/Stk500.C uisp-20050207-m168/src/Stk500.C +*** uisp-20050207/src/Stk500.C Tue Dec 28 16:54:12 2004 +--- uisp-20050207-m168/src/Stk500.C Mon Mar 28 02:21:32 2005 +*************** +*** 215,220 **** +--- 215,225 ---- + {0x42, 0x83, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x03, 0xff, 0xff, 0xff, + 0xff, {0x00, 0x80}, {0x02, 0x00}, {0x00, 0x00, 0x40, 0x00}, 0x20} + }, ++ {"ATmega168", ++ {0x04, 0xD7, 0xA0, 0x01}, ++ {0x42, 0x86, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x03, 0xff, 0xff, 0xff, ++ 0xff, {0x00, 0x80}, {0x02, 0x00}, {0x00, 0x00, 0x40, 0x00}, 0x20} ++ }, + {"ATmega169", + {0x04, 0xD7, 0xA0, 0x01}, + {0x42, 0x84, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x03, 0xff, 0xff, 0xff, diff --git a/uisp-configure-c99.patch b/uisp-configure-c99.patch new file mode 100644 index 0000000..e74be34 --- /dev/null +++ b/uisp-configure-c99.patch @@ -0,0 +1,49 @@ +Avoid historic C99 incompatibilities. No need to upstream this +because re-running autoconf with a moderately recent version +will fix this. + +diff --git a/configure b/configure +index e7c4d8c370d8168d..e3670ac596caed52 100755 +--- a/configure ++++ b/configure +@@ -3053,7 +3053,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + for ac_declaration in \ +- '' \ ++ '#include ' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ +@@ -3652,8 +3652,8 @@ main () + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) +- exit(2); +- exit (0); ++ return 2; ++ return 0; + } + _ACEOF + rm -f conftest$ac_exeext +@@ -4939,7 +4939,7 @@ main() + double value; + value = strtod (string, &term); + if (value != 69 || term != (string + 4)) +- exit (1); ++ return 1; + } + + { +@@ -4949,9 +4949,9 @@ main() + char *term; + strtod (string, &term); + if (term != string && *(term - 1) == 0) +- exit (1); ++ return 1; + } +- exit (0); ++ return 0; + } + + _ACEOF diff --git a/uisp.spec b/uisp.spec new file mode 100644 index 0000000..acda7aa --- /dev/null +++ b/uisp.spec @@ -0,0 +1,160 @@ +Name: uisp +Version: 20050207 +Release: 34%{?dist} +Summary: Universal In-System Programmer for Atmel AVR and 8051 + + +License: GPLv2+ +URL: http://www.nongnu.org/uisp +Source0: http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.gz +Patch0: uisp_Werror.patch +Patch1: uisp-20050207-m168-stk500-extendedFuseSupport.patch +Patch2: uisp-configure-c99.patch + + +BuildRequires: make +BuildRequires: gcc-c++ +%description +Uisp is utility for downloading/uploading programs to AVR devices. Can also be +used for some Atmel 8051 type devices. In addition, uisp can erase the device, +write lock bits, verify and set the active segment. + +For use with the following hardware to program the devices: + pavr http://avr.jpk.co.nz/pavr/pavr.html + stk500 Atmel STK500 + dapa Direct AVR Parallel Access + stk200 Parallel Starter Kit STK200, STK300 + abb Altera ByteBlasterMV Parallel Port Download Cable + avrisp Atmel AVR ISP (?) + bsd http://www.bsdhome.com/avrprog/ (parallel) + fbprg http://ln.com.ua/~real/avreal/adapters.html (parallel) + dt006 http://www.dontronics.com/dt006.html (parallel) + dasa serial (RESET=RTS SCK=DTR MOSI=TXD MISO=CTS) + dasa2 serial (RESET=!TXD SCK=RTS MOSI=DTR MISO=CTS) + + +%prep +%setup -q +%patch0 -p0 +%patch1 -p1 +%patch2 -p1 + +%build +%configure +make + +%install +rm INSTALL +make install DESTDIR=$RPM_BUILD_ROOT DOC_INST_DIR=$RPM_BUILD_ROOT/%{_pkgdocdir} + + +%files +%doc AUTHORS CHANGES CHANGES.old COPYING ChangeLog* TODO +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.gz + + +%changelog +* Sat Jan 21 2023 Fedora Release Engineering - 20050207-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Dec 17 2022 Florian Weimer - 20050207-33 +- Port configure script to C99 + +* Sat Jul 23 2022 Fedora Release Engineering - 20050207-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 20050207-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 20050207-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 20050207-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 20050207-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jan 31 2020 Fedora Release Engineering - 20050207-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jul 27 2019 Fedora Release Engineering - 20050207-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 03 2019 Fedora Release Engineering - 20050207-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 20050207-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 20050207-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 20050207-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 20050207-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 20050207-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 17 2016 Lucian Langa - 20050207-19 +- cleanup up specfile +- fix build break + +* Fri Feb 05 2016 Fedora Release Engineering - 20050207-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 20050207-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 20050207-16 +- Rebuilt for GCC 5 C++11 ABI change + +* Mon Aug 18 2014 Fedora Release Engineering - 20050207-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 20050207-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Lucian Langa - 20050207-13 +- specify doc install dir, fixes FTBFS + +* Sun Aug 04 2013 Fedora Release Engineering - 20050207-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 20050207-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 20050207-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 20050207-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 20050207-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Dec 12 2010 Lucian Langa - 20050207-7 +- add atmega168 support (upstream #4041) + +* Sun Jul 26 2009 Fedora Release Engineering - 20050207-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 20050207-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Sep 8 2008 Tom "spot" Callaway - 20050207-4 +- fix patch + +* Mon Sep 8 2008 Tom "spot" Callaway - 20050207-3 +- fix license tag + +* Wed Feb 20 2008 Fedora Release Engineering - 20050207-2 +- Autorebuild for GCC 4.3 + +* Mon Mar 12 2007 Trond Danielsen - 20050207-1 +- Initial version. +- Summary and description taken from spec file included in uisp. diff --git a/uisp_Werror.patch b/uisp_Werror.patch new file mode 100644 index 0000000..8638c93 --- /dev/null +++ b/uisp_Werror.patch @@ -0,0 +1,24 @@ +diff -u ../uisp-20050207/src/Makefile.am src/Makefile.am +--- ../uisp-20050207/src/Makefile.am 2002-10-31 00:22:07.000000000 +0100 ++++ src/Makefile.am 2007-03-12 14:30:56.000000000 +0100 +@@ -31,7 +31,7 @@ + # Turn on all warnings and consider them errors. This kinda forces you to have + # to use gcc, but I'd rather have all warnings eliminated. + +-AM_CXXFLAGS = -Wall -Werror ++AM_CXXFLAGS = -Wall + + bin_PROGRAMS = uisp + uisp_SOURCES = \ +diff -u ../uisp-20050207/src/Makefile.in src/Makefile.in +--- ../uisp-20050207/src/Makefile.in 2005-02-07 22:48:13.000000000 +0100 ++++ src/Makefile.in 2007-03-12 14:31:08.000000000 +0100 +@@ -145,7 +145,7 @@ + + # Turn on all warnings and consider them errors. This kinda forces you to have + # to use gcc, but I'd rather have all warnings eliminated. +-AM_CXXFLAGS = -Wall -Werror ++AM_CXXFLAGS = -Wall + + bin_PROGRAMS = uisp + uisp_SOURCES = \