-
Notifications
You must be signed in to change notification settings - Fork 1
/
sdcc.spec
125 lines (111 loc) · 3.85 KB
/
sdcc.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#
# spec file for package sdcc
#
Name: sdcc
Requires: /bin/sh
License: GPL
Group: Applications/Engineering
Summary: Small Device C Compiler
Requires: sdcc-common
Version: 3.9.0
Release: 2
Source: %{name}-src-%{version}.tar.gz
URL: http://sdcc.sourceforge.net/
Packager: Maarten Brock <sourceforge.brock AT dse.nl>
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
SDCC is a free open source, retargettable, optimizing ANSI C compiler
suite that targets a growing list of processors including the Intel
MCS51 based microprocessors (8031, 8032, 8051, 8052, etc.), Maxim
(formerly Dallas) DS80C390 variants, Freescale (formerly Motorola)
HC08 based (hc08, s08), Zilog Z80 based MCUs (z80, z180, gbz80,
Rabbit 2000/3000, Rabbit 3000A, TLCS-90) and the STM8.
Work is in progress on supporting the Microchip PIC16 and PIC18 targets.
It can be retargeted for other microprocessors.
%package common
License: GPL, LGPL
Group: Application/Engineering
Summary: Libraries and Header Files for the SDCC C compiler
Requires: sdcc
%description common
SDCC is a free open source, retargettable, optimizing ANSI C compiler
suite that targets a growing list of processors including the Intel
MCS51 based microprocessors (8031, 8032, 8051, 8052, etc.), Maxim
(formerly Dallas) DS80C390 variants, Freescale (formerly Motorola)
HC08 based (hc08, s08) and Zilog Z80 based MCUs (z80, z180, gbz80,
Rabbit 2000/3000, Rabbit 3000A). Work is in progress on supporting
the Microchip PIC16 and PIC18 targets. It can be retargeted for other
microprocessors.
%package doc
License: GPL
Group: Applications/Engineering
Summary: Documentation for the SDCC C compiler
%description doc
SDCC is a free open source, retargettable, optimizing ANSI C compiler
suite that targets a growing list of processors including the Intel
MCS51 based microprocessors (8031, 8032, 8051, 8052, etc.), Maxim
(formerly Dallas) DS80C390 variants, Freescale (formerly Motorola)
HC08 based (hc08, s08), Zilog Z80 based MCUs (z80, z180, gbz80,
Rabbit 2000/3000, Rabbit 3000A, TLCS-90) and the STM8.
Work is in progress on supporting the Microchip PIC16 and PIC18 targets.
It can be retargeted for other microprocessors.
%prep
%setup -n sdcc
%build
./configure CFLAGS="$RPM_OPT_FLAGS" --prefix=/usr --enable-doc docdir=$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
make
cd doc
make
cd ..
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT/usr install
cd doc
make install
cd ..
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/bin
%files common
%defattr(-,root,root)
/usr/share/sdcc/include
/usr/share/sdcc/non-free/include
/usr/share/sdcc/lib
/usr/share/sdcc/non-free/lib
%files doc
%defattr(-,root,root)
%doc %{_defaultdocdir}
%changelog
* Fri Apr 05 2019 - krauseph AT informatik.uni-freiburg.de
- version updated to 3.9.0
* Sun Sep 16 2018 - pkk AT spth.de
- version updated to 3.8.0
* Wed Feb 07 2018 - pkk AT spth.de
- version updated to 3.7.0
* Sun May 29 2016 - sourceforge.brock AT dse.nl
- version updated to 3.6.0
* Fri Jun 06 2015 - sourceforge.brock AT dse.nl
- version updated to 3.5.0
* Fri Feb 28 2014 - sourceforge.brock AT dse.nl
- version updated to 3.4.0
* Sat May 04 2013 - sourceforge.brock AT dse.nl
- version updated to 3.3.0
* Fri Jun 12 2012 - borut.razem AT siol.net
- version updated to 3.2.0
* Sat Oct 08 2010 - borut.razem AT siol.net
- added non-free include and lib directories
- version updated to 3.1.0
* Sun Dec 26 2006 - bernhard AT bernhardheld.de
- version updated
* Sun Sep 03 2006 - Christer Weinigel
- fixed build of doc
* Tue Mar 09 2004 - bernhard AT bernhardheld.de
- split into two packages
* Wed Feb 26 2004 - bernhard AT bernhardheld.de
- version updated
* Sun Jan 04 2004 - bernhard AT bernhardheld.de
- updated
* Sat Apr 27 2002 - steve AT icarus.com
- first version from Stephen Williams