Accepting request 556412 from CrossToolchain:avr

- build with cross-avr-gcc7-bootstrap (bsc#1072028)
- build with cross-avr-gcc7
- symlink /opt/cross/avr/bin to /usr/avr/bin to make gcc use
  avr-as instead of as.
- update to 2.0.0
- remove old gcc-4.7 spec file
- fix prefix
- update some self tests to v2.0 tree structure
- Update to version 1.8.1.
- Drop patches:
  * 41-avr-libc-1.7.1-xmega32X1.patch: introduces just empty header
  * 42-avr-libc-1.7.1-xmega128b1.patch: now upstreamed
- Add PDF doc.
- Add GPG keys.
- Clean spec file.
- add hack to add -pipe to avr-gcc calls
  this avoids changing temporary filenames embedded in binaries and
  thus continous republishing due to changed binaries
- update to 1.8.0, bugfix release, including:
  PSTR() now has const, to be compatible with gcc-4.7.0
  savannah32698-power.patch upstreamed, removed.
- updated logicp to 1.02 to heal poisoned 
  SIG_UART_RECV ==> UART_RX_vect and friends.
- added avr-libc-gcc47.spec to build with the new compiler.
- Make the dependency on cross-avr-binutils unversioned.
- testcase for tn4313 added, non-fatal. Still fails due to missing gcc binutils support
- added savannah32698-power.patch
- update to 1.7.1
  This is primarily a bugfix release, and particularly, it fixes the infamous
  delay.h bug that caused the delay algorithm to be way off
  (https://savannah.nongnu.org/bugs/?30363).
- fixed bnc#233520
- update to 1.7.0
  * New architecture: avrtiny10
  * New devices: atmega3000, attiny84a, atmega325a, atmega3250a,
    atmega329a, atmega3290a, attiny4, attiny5, attiny9, attiny10,
    attiny20, attiny40, ATxmega128A1U, ATxmega64A1U
  * countless bugfixes and other improvements
- moved avr-example sub package into an own package.
  logicp remains here as a pre-install self-test.
- do not require cross-acr-gcc44, we have removed the version number from the package.
- update to 1.6.8
  * Added iox128a1u.h iom16hva2.h iom16hvb.h iom169pa.h iom649p.h iom64hve.h
    iotn261a.h iotn461a.h iotn861a.h iom324pa.h iotn10.h iotn4.h iotn5.h iotn9.h
    iom16a.h iom88pa.h iom644pa.h iotn24a.h iotn44a.h iotn2313a.h iotn4313.h
    iom8u2.h iom16u2.h iom32u2.h iox192d3.h
  * Add support for new devices: ATmega16HVA2, ATmega16HVB, ATmega48A,
    ATmega88A, ATmega168A, ATmega328, ATmega164A, ATmega324A, ATmega644A,
    ATmega165A, ATmega169A, ATmega645A, ATmega6450A, ATmega649A,
    ATmega6490A, ATmega6490P, ATmega645P, ATmega6450P, ATmega329PA.
    ATtiny2313A, ATtiny4313, ATtiny24A, ATtiny44A, ATmega644PA, ATmega88PA,
    ATmega16A, ATtiny261A, ATtiny861A, ATtiny461A, ATmega64HVE, ATmega169PA,
    ATmega649P, ATmega324PA.  ATmega8U2, ATmega16U2, and ATmega32U2.
    ATxmega192D3.
  * Add new functions: strtok_P() and strtok_rP(). memccpy_P().
  * Fix some tests to run with host computer.
  * several bugfixes.
- updated avr_isp.pl to 0.9h, 
  this now better handles a lrger range of dongles.
- moved /usr/share/doc/avr-libc to /usr/share/doc/packages/avr-libc .
- populated /usr/bin/avr* symlinks, adding /opt/cross/bin to PATH no longer needed.
- added an 00_index.html to the user_manual.
- rediffed patch to remove fuzz.
  pampered rpmlint warnings.
- updated avr_common.mk to no longer rename dir if under svn
- update to 1.6.7, 
  new devices  xmega192D3,mega8U2,mega16U2,ATmega32U2.
  various bugfixes. see
  http://cvs.savannah.gnu.org/viewvc/*checkout*/avr-libc/avr-libc/ChangeLog
- updated avr_isp.pl to survive (unsigned char) casts, 
  and give better diagnostics in case something else fails.
- added a symlink so that html doku finds its examples.
- updated to 1.6.6
  Too many small changes to list here. See
  http://cvs.savannah.gnu.org/viewvc/*checkout*/avr-libc/avr-libc/ChangeLog
- update to 1.6.1
  * The fplib/math library is completely rewritten.
  * Functions of numbers to ascii conversion are completely rewritten.
  * Test suite is added to the Avr-libc project.
  * A few new util's headers: util/atomic.h, util/setbaud.h.
  * Many new devices added, many revised.
- update to 1.4.6
  o Exclude 64-bit types for -mint8 (obsoletes no64bit_int.patch)
  o varios bugfixes (upstream #18115, #18385, #18509, #18662,
    #18686, #18688, #18726, #18899, #18903, #18915, #19009, #19050,
    #19060, #19134, #19135, #19280, #19281, #19445, #19495, #19650,
    #19666 #19841)
  o new devices: AT90USB82, AT90USB162, ATmega325P, ATmega3250P,
    ATmega329P, ATmega3290P, AT90PWM1, ATmega8HVA, ATmega16HVA
  o The "largedemo" has been ported to the ATtiny2313.
  o Integrate a copy of the license file into the documentation.
  o Include an alphabetical index of all globals
  o Added 'avr25' architecture.
  o new functions (memchr_P, memcmp_P, memmem, memmem_P, memrchr,
    memrchr_P, strcasestr, strcasestr_P, strchrnul, strchrnul_P,
    strchr_P, strcspn, strcspn_P, strpbrk, strpbrk_P, strrchr_P,
    strsep_P, strspn, strspn_P)
  o Optimized functions (atoi, atol, strchr, strcmp, strcmp_P,
    strlwr, strrev, strsep, strstr, strstr_P, strupr)
- gzipped manpages to make rpmlint happy.
  user-manual moved *into* /usr/share/doc/packages/avr-libc.
- 64bit datatypes on 64bit hosts only fail with -mint8
  Now properly ifdefed.
- update to 1.4.5
  ATmega165P/169P support. Fixes to the HD44780 driver.
  Power Management API. New "asmdemo" example.
  sleep.h: Fix the entry for the ATtiny2313.
  new devices: ATmega2560, ATmega2561.
  fp_split.S: Pop 3 bytes for avr6
  Bugs fixed: 15512 16125 16411 16434 16441 
        16868 17068 17470 17551 17591 17608 
- make test now tests 3 CPUs
- compiling and linking my logicp application 
  as a simple selftest.
- avr-64bit datatypes fail on 64bit hosts.
- update to 1.4.4
  added /opt/cross/share/man/man3/* and /opt/cross/share/doc symlink
- converted neededforbuild to BuildRequires
- update to 1.4.2
- upstreamed patches removed.
- update to 1.4.0
 - add norootforbuild
- update to 1.2.5, fixes many things for atmega48
  e.g. [#105226].
- removed dependency on uisp.
- initial version: avr-libc-1.2.3

OBS-URL: https://build.opensuse.org/request/show/556412
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/avr-libc?expand=0&rev=1
This commit is contained in:
Richard Biener 2017-12-12 12:29:59 +00:00 committed by Git OBS Bridge
commit f9b7d3abfa
15 changed files with 479 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
avr-libc-2.0.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b2dd7fd2eefd8d8646ef6a325f6f0665537e2f604ed02828ced748d49dc85b97
size 3590893

BIN
avr-libc-2.0.0.tar.bz2.sig Normal file

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f1086ff15cbe341eda0286a7191c563a10127343573e01aad66a97924d7b41b5
size 151137

Binary file not shown.

8
avr-libc-rpmlintrc Normal file
View File

@ -0,0 +1,8 @@
# avr-libc.x86_64: W: static-library-without-debuginfo /opt/cross/avr/lib/avr4/libc.a
addFilter("W: static-library-without-debuginfo /")
# They are all false positives.
#avr-libc.noarch: E: arch-independent-package-contains-binary-or-object (Badness: 499) /opt/cross/avr/avr/lib/avr31/libscanf_min.a
setBadness('arch-independent-package-contains-binary-or-object', 0)
addFilter("W: arch-independent-package-contains-binary-or-object ")

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:596d9021e3e997a7eb9395058a00fc9b532f59e084b0e2db13056687baf276e4
size 1637954

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3bb4dbfafe32595f035d3373afb622b68ae8c7a3d4bb2a8ed89ca69edc42e5b0
size 932920

Binary file not shown.

266
avr-libc.changes Normal file
View File

@ -0,0 +1,266 @@
-------------------------------------------------------------------
Tue Dec 12 09:12:18 UTC 2017 - kkaempf@suse.com
- build with cross-avr-gcc7-bootstrap (bsc#1072028)
-------------------------------------------------------------------
Sat Dec 9 09:31:40 UTC 2017 - kkaempf@suse.com
- build with cross-avr-gcc7
-------------------------------------------------------------------
Thu Dec 7 10:11:42 UTC 2017 - kkaempf@suse.com
- symlink /opt/cross/avr/bin to /usr/avr/bin to make gcc use
avr-as instead of as.
-------------------------------------------------------------------
Mon Feb 6 14:03:54 UTC 2017 - duwe@suse.com
- update to 2.0.0
- remove old gcc-4.7 spec file
- fix prefix
- update some self tests to v2.0 tree structure
-------------------------------------------------------------------
Wed Jun 17 18:10:22 CEST 2015 - sbrabec@suse.com
- Update to version 1.8.1.
- Drop patches:
* 41-avr-libc-1.7.1-xmega32X1.patch: introduces just empty header
* 42-avr-libc-1.7.1-xmega128b1.patch: now upstreamed
- Add PDF doc.
- Add GPG keys.
- Clean spec file.
-------------------------------------------------------------------
Tue May 26 18:31:34 UTC 2015 - seife+obs@b1-systems.com
- add hack to add -pipe to avr-gcc calls
this avoids changing temporary filenames embedded in binaries and
thus continous republishing due to changed binaries
-------------------------------------------------------------------
Sat Dec 8 15:58:52 UTC 2012 - jw@suse.com
- update to 1.8.0, bugfix release, including:
PSTR() now has const, to be compatible with gcc-4.7.0
savannah32698-power.patch upstreamed, removed.
- updated logicp to 1.02 to heal poisoned
SIG_UART_RECV ==> UART_RX_vect and friends.
- added avr-libc-gcc47.spec to build with the new compiler.
-------------------------------------------------------------------
Tue Feb 7 16:09:06 UTC 2012 - max@suse.com
- Make the dependency on cross-avr-binutils unversioned.
-------------------------------------------------------------------
Mon Mar 7 20:27:09 UTC 2011 - jw@novell.com
- testcase for tn4313 added, non-fatal. Still fails due to missing gcc binutils support
- added savannah32698-power.patch
- update to 1.7.1
This is primarily a bugfix release, and particularly, it fixes the infamous
delay.h bug that caused the delay algorithm to be way off
(https://savannah.nongnu.org/bugs/?30363).
-------------------------------------------------------------------
Mon Nov 29 12:48:07 UTC 2010 - jw@novell.com
- fixed bnc#233520
-------------------------------------------------------------------
Tue Jun 22 16:12:34 CEST 2010 - max@suse.de
- update to 1.7.0
* New architecture: avrtiny10
* New devices: atmega3000, attiny84a, atmega325a, atmega3250a,
atmega329a, atmega3290a, attiny4, attiny5, attiny9, attiny10,
attiny20, attiny40, ATxmega128A1U, ATxmega64A1U
* countless bugfixes and other improvements
-------------------------------------------------------------------
Tue Mar 23 18:27:57 UTC 2010 - jw@novell.com
- moved avr-example sub package into an own package.
logicp remains here as a pre-install self-test.
-------------------------------------------------------------------
Sun Mar 7 00:45:06 UTC 2010 - jw@novell.com
- do not require cross-acr-gcc44, we have removed the version number from the package.
-------------------------------------------------------------------
Mon Mar 1 22:38:53 UTC 2010 - jw@novell.com
- update to 1.6.8
* Added iox128a1u.h iom16hva2.h iom16hvb.h iom169pa.h iom649p.h iom64hve.h
iotn261a.h iotn461a.h iotn861a.h iom324pa.h iotn10.h iotn4.h iotn5.h iotn9.h
iom16a.h iom88pa.h iom644pa.h iotn24a.h iotn44a.h iotn2313a.h iotn4313.h
iom8u2.h iom16u2.h iom32u2.h iox192d3.h
* Add support for new devices: ATmega16HVA2, ATmega16HVB, ATmega48A,
ATmega88A, ATmega168A, ATmega328, ATmega164A, ATmega324A, ATmega644A,
ATmega165A, ATmega169A, ATmega645A, ATmega6450A, ATmega649A,
ATmega6490A, ATmega6490P, ATmega645P, ATmega6450P, ATmega329PA.
ATtiny2313A, ATtiny4313, ATtiny24A, ATtiny44A, ATmega644PA, ATmega88PA,
ATmega16A, ATtiny261A, ATtiny861A, ATtiny461A, ATmega64HVE, ATmega169PA,
ATmega649P, ATmega324PA. ATmega8U2, ATmega16U2, and ATmega32U2.
ATxmega192D3.
* Add new functions: strtok_P() and strtok_rP(). memccpy_P().
* Fix some tests to run with host computer.
* several bugfixes.
-------------------------------------------------------------------
Sun Feb 7 19:45:35 UTC 2010 - jw@novell.com
- updated avr_isp.pl to 0.9h,
this now better handles a lrger range of dongles.
-------------------------------------------------------------------
Fri Jan 22 15:14:43 CET 2010 - jw@suse.de
- moved /usr/share/doc/avr-libc to /usr/share/doc/packages/avr-libc .
- populated /usr/bin/avr* symlinks, adding /opt/cross/bin to PATH no longer needed.
- added an 00_index.html to the user_manual.
-------------------------------------------------------------------
Tue Jan 19 12:56:05 CET 2010 - jw@suse.de
- rediffed patch to remove fuzz.
pampered rpmlint warnings.
-------------------------------------------------------------------
Sun Aug 9 23:45:30 CEST 2009 - jw@suse.de
- updated avr_common.mk to no longer rename dir if under svn
- update to 1.6.7,
new devices xmega192D3,mega8U2,mega16U2,ATmega32U2.
various bugfixes. see
http://cvs.savannah.gnu.org/viewvc/*checkout*/avr-libc/avr-libc/ChangeLog
-------------------------------------------------------------------
Sat Aug 8 01:14:24 CEST 2009 - jw@suse.de
- updated avr_isp.pl to survive (unsigned char) casts,
and give better diagnostics in case something else fails.
-------------------------------------------------------------------
Thu May 21 01:47:09 CEST 2009 - jw@suse.de
- added a symlink so that html doku finds its examples.
-------------------------------------------------------------------
Sun Apr 26 15:07:32 CEST 2009 - jw@suse.de
- updated to 1.6.6
Too many small changes to list here. See
http://cvs.savannah.gnu.org/viewvc/*checkout*/avr-libc/avr-libc/ChangeLog
-------------------------------------------------------------------
Wed Jan 30 22:05:17 CET 2008 - jw@suse.de
- update to 1.6.1
* The fplib/math library is completely rewritten.
* Functions of numbers to ascii conversion are completely rewritten.
* Test suite is added to the Avr-libc project.
* A few new util's headers: util/atomic.h, util/setbaud.h.
* Many new devices added, many revised.
-------------------------------------------------------------------
Sat Oct 13 16:26:13 CEST 2007 - bwalle@suse.de
- update to 1.4.6
o Exclude 64-bit types for -mint8 (obsoletes no64bit_int.patch)
o varios bugfixes (upstream #18115, #18385, #18509, #18662,
#18686, #18688, #18726, #18899, #18903, #18915, #19009, #19050,
#19060, #19134, #19135, #19280, #19281, #19445, #19495, #19650,
#19666 #19841)
o new devices: AT90USB82, AT90USB162, ATmega325P, ATmega3250P,
ATmega329P, ATmega3290P, AT90PWM1, ATmega8HVA, ATmega16HVA
o The "largedemo" has been ported to the ATtiny2313.
o Integrate a copy of the license file into the documentation.
o Include an alphabetical index of all globals
o Added 'avr25' architecture.
o new functions (memchr_P, memcmp_P, memmem, memmem_P, memrchr,
memrchr_P, strcasestr, strcasestr_P, strchrnul, strchrnul_P,
strchr_P, strcspn, strcspn_P, strpbrk, strpbrk_P, strrchr_P,
strsep_P, strspn, strspn_P)
o Optimized functions (atoi, atol, strchr, strcmp, strcmp_P,
strlwr, strrev, strsep, strstr, strstr_P, strupr)
-------------------------------------------------------------------
Thu Apr 5 18:06:00 CEST 2007 - jw@suse.de
- gzipped manpages to make rpmlint happy.
user-manual moved *into* /usr/share/doc/packages/avr-libc.
-------------------------------------------------------------------
Mon Jan 15 21:42:33 CET 2007 - jw@suse.de
- 64bit datatypes on 64bit hosts only fail with -mint8
Now properly ifdefed.
-------------------------------------------------------------------
Tue Jan 9 13:36:04 CET 2007 - jw@suse.de
- update to 1.4.5
ATmega165P/169P support. Fixes to the HD44780 driver.
Power Management API. New "asmdemo" example.
sleep.h: Fix the entry for the ATtiny2313.
new devices: ATmega2560, ATmega2561.
fp_split.S: Pop 3 bytes for avr6
Bugs fixed: 15512 16125 16411 16434 16441
16868 17068 17470 17551 17591 17608
- make test now tests 3 CPUs
-------------------------------------------------------------------
Tue Jan 9 01:08:50 CET 2007 - jw@suse.de
- compiling and linking my logicp application
as a simple selftest.
- avr-64bit datatypes fail on 64bit hosts.
-------------------------------------------------------------------
Tue May 30 15:31:39 CEST 2006 - jw@suse.de
- update to 1.4.4
added /opt/cross/share/man/man3/* and /opt/cross/share/doc symlink
-------------------------------------------------------------------
Wed Jan 25 21:34:33 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Tue Jan 10 11:52:14 CET 2006 - jw@suse.de
- update to 1.4.2
-------------------------------------------------------------------
Wed Nov 23 20:50:07 CET 2005 - jw@suse.de
- upstreamed patches removed.
- update to 1.4.0
-------------------------------------------------------------------
Wed Oct 5 12:00:13 CEST 2005 - dmueller@suse.de
- add norootforbuild
-------------------------------------------------------------------
Wed Aug 17 17:15:39 CEST 2005 - jw@suse.de
- update to 1.2.5, fixes many things for atmega48
e.g. [#105226].
-------------------------------------------------------------------
Tue May 17 11:44:26 CEST 2005 - jw@suse.de
- removed dependency on uisp.
-------------------------------------------------------------------
Wed May 11 00:21:51 CEST 2005 - jw@suse.de
- initial version: avr-libc-1.2.3

40
avr-libc.keyring Normal file
View File

@ -0,0 +1,40 @@
pub dsa1024/69A85873 2001-12-11
uid [ unknown] Joerg Wunsch <j@uriah.heep.sax.de>
uid [ unknown] Joerg Wunsch <joerg@FreeBSD.org>
uid [ unknown] Joerg Wunsch <j@ida.interface-business.de>
uid [ unknown] Joerg Wunsch <joerg_wunsch@interface-systems.de>
sub elg1024/21DC9924 2001-12-11
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQGiBDwWI2kRBADM4C4YlBiLozC/bZDedK12BMLyfnv9yOppj/doC1cOEaE+xZNQ
7/aDZfhi7FNQzt+ehh52DLihV91G7gOsACtUk3gLR8G+0q6U76dBY/gvAGzCYUu0
bJwlQCcPMysF4sNEwvsuct1fIVAHa+660X6Q+WI+eADIwZyN8wR1GrEqswCg3uGM
xm85EYtxPFx7tyxfA8q/d+MD/i+SPmt9xEZ/KZOMbQVPw/vYmeWW4lVZGG2HLKmH
J2FiAW4YjryoNqhpbbqlJigxf6staqgnQL4uuzBrr6v+OIjbljTHA7fs0WA4mtTX
u7YcAKPXBTztw/O+f3tZz08Ep+AHJ3Q+pTbbRQZpikGGdOpjfLcEyAQBh1rNA3zl
/MiLA/9IL7yfpyiA6cjX+MuUCqlqbPW2awQOCsmDBOcpXdOYC+MsBUhlT7IcFtQd
BUxUiqdIKlRtIT4l4LnqzhL2HASv6Zzc06zGS+tlG6BlpCGlSxz8fp4asbTYdJnp
d7lqme75jOUNjygal5lxJApincaLjv+4IaNUWCC5RjQuRsd3t7QgSm9lcmcgV3Vu
c2NoIDxqb2VyZ0BGcmVlQlNELm9yZz6IXwQTEQIAHwIbAwIeAQIXgAUCQaR6QgcL
CQgHAwIBAxUCAwMWAgEACgkQ9IyoG2moWHNIRwCgnTUFJ1krhK0XISLLossxl68f
S0MAoJEjQcOZTKtIp8S4Dqo7/VJYUVKFtCJKb2VyZyBXdW5zY2ggPGpAdXJpYWgu
aGVlcC5zYXguZGU+iF8EExECAB8CF4AHCwkIBwMCAQMVAgMDFgIBAh4BBQJBpHqj
AhkBAAoJEPSMqBtpqFhzMlgAnigTVSmOOtxzyVwJaZDDxeg9aQB6AJ9rnepmNfxu
7F16wiaVo6US+2p0SrQqSm9lcmcgV3Vuc2NoIDxqQGlkYS5pbnRlcmZhY2UtYnVz
aW5lc3MuZGU+iF8EExECAB8CGwMCHgECF4AFAkGkelUHCwkIBwMCAQMVAgMDFgIB
AAoJEPSMqBtpqFhzgrQAnjpusj+cjM07WYmSXgjY8QXUWmkUAKDJN9He1N83pEew
pJ4p7HnxJeSkSLQwSm9lcmcgV3Vuc2NoIDxqb2VyZ193dW5zY2hAaW50ZXJmYWNl
LXN5c3RlbXMuZGU+iF8EExECAB8CGwMCHgECF4AFAkGkelUHCwkIBwMCAQMVAgMD
FgIBAAoJEPSMqBtpqFhz3+0An1WUSyLW5PtVk8AN2wZOZoIbdpWJAJ9UZjNCICVi
xY7lc+me/lfu7+nCsLkBDQQ8FiNuEAQAnbGJUHM83j9CulgGV2kjOB2n/3t0sRM+
d+tZijBrhsOqSv2c4ld2rPaWyHpwF40ZvgAqYw/XtbTS32kS+DOO4zHQM5yI2OYf
68TaYU6TQrApCYJVPmZcQZRCGl54RF63gPa6GmteYoEUnA03leyQnWzV69A6xR2v
wbfXo1eq8TcAAwUD/3/ITIMjlj8eJDzGHPRaBsoYspKF6nKCvBn3rfduyZm7b+yk
nZKpCYDr/E3jvwM2CfnMJgGXH6xKnL/Nn10Spah2WjDvZ7MppflvBWHwL3J+qz4a
lKtnZDFg+PQnkZCafQI1YOU9Faduttb02fxWp6WKq60RmVbnW3rWOvi1AB+liE4E
GBECAAYFAjwWI24AEgkQ9IyoG2moWHMHZUdQRwABAdBZAJ0YDAgvnRiM486xlWXr
bdGrk3X3ewCgjH5YzTXYNsq3EuV+IBgeOjIa8D0=
=P9RH
-----END PGP PUBLIC KEY BLOCK-----

126
avr-libc.spec Normal file
View File

@ -0,0 +1,126 @@
#
# spec file for package avr-libc
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define into_usr_avr 1
%define doc_vers %{version}
%if %{into_usr_avr}
%define PREFIX /usr/avr
%else
# FIXME:
# okay, FHS 2.2, if you forbid the obvious choices, can you also suggest a better place?
# avr-libc: "/usr/avr/{include,lib,...}" is not allowed anymore in FHS 2.2
# avr-libc: "/usr/local/avr/{include,lib,...}" is not allowed anymore in FHS 2.2
%define PREFIX %{_prefix}
%define PREFIX %{_prefix}/local
%endif
Name: avr-libc
Version: 2.0.0
Release: 0
Summary: The C Runtime Library for AVR Microcontrollers
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: http://savannah.nongnu.org/projects/avr-libc
Source: http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.bz2
Source1: http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.bz2.sig
Source2: http://savannah.nongnu.org/download/%{name}/%{name}-manpages-%{doc_vers}.tar.bz2
Source3: http://savannah.nongnu.org/download/%{name}/%{name}-manpages-%{doc_vers}.tar.bz2.sig
Source4: http://savannah.nongnu.org/download/%{name}/%{name}-user-manual-%{doc_vers}.tar.bz2
Source5: http://savannah.nongnu.org/download/%{name}/%{name}-user-manual-%{doc_vers}.tar.bz2.sig
Source6: http://savannah.nongnu.org/download/%{name}/%{name}-user-manual-%{doc_vers}.pdf.bz2
Source7: http://savannah.nongnu.org/download/%{name}/%{name}-user-manual-%{doc_vers}.pdf.bz2.sig
Source8: %{name}.keyring
Source9: logicp-1.02.tgz
Source100: %{name}-rpmlintrc
BuildRequires: cross-avr-binutils
BuildRequires: cross-avr-gcc7-bootstrap
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: findutils
BuildRequires: netpbm
Requires: cross-avr-binutils
Requires: cross-avr-gcc7
Recommends: avr-example
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# does not depend on host arch. bnc#233520
BuildArch: noarch
%if 0%{?suse_version} < 1100
BuildRequires: libgmp3
BuildRequires: libmpfr1
%endif
%description
The C runtime library for the AVR family of microcontrollers for use
with the GNU toolset (cross-avr-binutils, cross-avr-gcc, uisp, etc.).
%prep
%setup -q -a2 -a4 -b9
cp -a %{SOURCE6} .
bunzip2 %{name}-user-manual-%{doc_vers}.pdf.bz2
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
./configure --prefix=%{PREFIX} --host=avr
make %{?_smp_mflags} CC="avr-gcc -pipe" CCAS="avr-gcc -pipe"
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -pr AUTHORS ChangeLog* LICENSE NEWS README *.pdf %{buildroot}%{_docdir}/%{name}
cp -pr %{name}-user-manual-%{doc_vers} %{buildroot}%{_docdir}/%{name}/user-manual-%{doc_vers}
ln -s %{_docdir}/%{name}/user-manual-%{doc_vers} %{buildroot}/%{PREFIX}/share/doc/%{name}-%{version}/user-manual
ln -s %{PREFIX}/share/doc/%{name}-%{version}/examples %{buildroot}%{_docdir}/%{name}
cat >> %{buildroot}%{_docdir}/%{name}/user-manual.html <<EOF
<head><meta http-equiv="Refresh" content="0; user-manual-%{doc_vers}/index.html"></head>
<a href="user-manual-%{doc_vers}/pages.html">user-manual-%{doc_vers}/index.html</a>
EOF
mkdir -p %{buildroot}/%{PREFIX}/avr
cp -pr man %{buildroot}/%{PREFIX}/avr/.
# do not run brp-strip-debug on our avr-elf objects.
export NO_BRP_STRIP_DEBUG=true
%fdupes %{buildroot}
%check
### selftest ###
cd ../logicp*
## how do we tell the linker that crt*.o is at a nonstandard location?
ln -s $RPM_BUILD_ROOT%PREFIX/avr/lib/crtatt*.o .
ln -s $RPM_BUILD_ROOT%PREFIX/avr/lib/avrtiny/crtatt*.o .
ln -s $RPM_BUILD_ROOT%PREFIX/avr/lib/avr?/crtatm*.o .
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/avr/include/ -L$RPM_BUILD_ROOT%PREFIX/avr/lib/avr4" CPU=mega8 || true
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/avr/include/ -L$RPM_BUILD_ROOT%PREFIX/avr/lib/avr4" CPU=mega48 || true
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/avr/include/ -L$RPM_BUILD_ROOT%PREFIX/avr/lib/avr4" CPU=mega644 || true
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/avr/include/ -L$RPM_BUILD_ROOT%PREFIX/avr/lib" CPU=tiny2313 || true
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/avr/include/ -L$RPM_BUILD_ROOT%PREFIX/avr/lib" CPU=tiny4313 || true
%files
%defattr (-, root, root)
%doc %{_docdir}/%{name}
%if %{into_usr_avr}
%dir /usr/avr
/usr/avr/*
%else
%{_prefix}/*
%endif
# %%doc /usr/share/man/man?/*.*
%changelog

3
logicp-1.02.tgz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:034a8780371eee5b7814d1f04123a64ca6be77fdcf38a333412e850201500357
size 51200