Reduce bashisms
[bcusdk.git] / bcusdk.spec
blobb17ba8221d8a0686f4cd7ab056d447b585e0bb6f
1 Name: bcusdk
2 Version: 0.0.4
3 Release: 1
4 Summary: BCU SDK
6 Group: Development/Tools
7 License: GPL
8 URL: http://www.auto.tuwien.ac.at/~mkoegler/index.php/bcusdk
9 Source0: bcusdk_%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12 BuildRequires: libxml2-devel, gcc-c++, make, flex, bison, pthsem-devel, m68hc05-gcc, gcc-java, indent
13 %if 0%{?suse_version} > 910
14 BuildRequires: fastjar
15 %endif
16 Requires: eibd-server, eibd-clients, eibd-client-sources, libeibclient-devel, bcusdk-build
18 %description
19 A SDK to develop application for EIB BCU 1 and 2.
21 %package -n eibd-server
22 Summary: eibd server
23 Group: Development/Tools
25 %description -n eibd-server
26 eibd is a daemon, which supports connection to an EIB bus over various
27 access devices and provide its services over TCP/IP or Unix domain sockets.
28 Note: Some backends may crash Linux 2.6 kernels before 2.6.11.
30 %package -n eibd-clients
31 Summary: eibd clients
32 Group: Development/Tools
34 %description -n eibd-clients
35 provides simple example programs to perform some management task on a EIB system.
37 %package -n libeibclient-devel
38 Summary: eibd client library
39 Group: Development/Tools
41 %description -n libeibclient-devel
42 provides a simple client library written in C to access the EIB bus over eibd.
44 %package -n eibd-client-sources
45 Summary: sources of the eibd client programs
46 Group: Development/Tools
48 %description -n eibd-client-sources
49 provides the source of the eibd client programs as examples how to use
50 the eibd client library.
52 %package -n bcusdk-build
53 Requires: m68hc05-gcc, libxslt
54 Summary: BCU SDK image building programs
55 Group: Development/Tools
57 %description -n bcusdk-build
58 contains all files and programs to build BCU images
60 # no debug package + strip
61 %define __spec_install_post %{nil}
62 %define debug_package %{nil}
65 %prep
66 %setup -q -n bcusdk-%{version}
69 %build
70 %configure --enable-ft12 --enable-pei16 --enable-tpuart --enable-pei16s --enable-tpuarts \
71 --enable-eibnetip --enable-eibnetipserver --enable-eibnetiptunnel --enable-usb --enable-groupcache --enable-java
72 make %{?_smp_mflags}
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 make install DESTDIR=$RPM_BUILD_ROOT
80 %clean
81 rm -rf $RPM_BUILD_ROOT
84 %files
85 %defattr(-,root,root,-)
86 %doc README
88 %files -n bcusdk-build
89 %defattr(-,root,root,-)
90 /usr/share/bcusdk/include
91 /usr/share/bcusdk/ldscripts
92 /usr/share/bcusdk/xml
93 %{_libdir}/bcusdk/lib
94 /usr/bin/build.ai
95 /usr/bin/build.img
96 /usr/bin/build.dev
97 /usr/bin/bcugen1
98 /usr/bin/bcugen2
99 /usr/bin/bcugen3
100 /usr/bin/embedprogid
101 /usr/bin/extractprogid
102 /usr/bin/gencitemplate
103 /usr/bin/viewimage
104 /usr/bin/loadimage
105 /usr/bin/imageedit
106 /usr/share/bcusdk/examples/*.xml
108 %files -n eibd-server
109 %defattr(-,root,root,-)
110 /usr/bin/eibd
111 /usr/bin/bcuaddrtab
112 /usr/bin/bcuread
113 /usr/bin/eibnetdescribe
114 /usr/bin/eibnetsearch
115 /usr/bin/findknxusb
117 %files -n eibd-clients
118 %defattr(-,root,root,-)
119 /usr/bin/busmonitor1
120 /usr/bin/busmonitor2
121 /usr/bin/vbusmonitor1
122 /usr/bin/vbusmonitor1poll
123 /usr/bin/vbusmonitor2
124 /usr/bin/groupread
125 /usr/bin/groupswrite
126 /usr/bin/groupwrite
127 /usr/bin/groupsresponse
128 /usr/bin/groupresponse
129 /usr/bin/grouplisten
130 /usr/bin/madcread
131 /usr/bin/maskver
132 /usr/bin/mmaskver
133 /usr/bin/mread
134 /usr/bin/mwrite
135 /usr/bin/mprogmodeon
136 /usr/bin/mprogmodeoff
137 /usr/bin/mprogmodestatus
138 /usr/bin/mprogmodetoggle
139 /usr/bin/progmodeon
140 /usr/bin/progmodeoff
141 /usr/bin/progmodestatus
142 /usr/bin/progmodetoggle
143 /usr/bin/mpropdesc
144 /usr/bin/mpropread
145 /usr/bin/mpropwrite
146 /usr/bin/mpropscan
147 /usr/bin/mpropscanpoll
148 /usr/bin/readindividual
149 /usr/bin/writeaddress
150 /usr/bin/mpeitype
151 /usr/bin/msetkey
152 /usr/bin/groupsocketlisten
153 /usr/bin/groupsocketread
154 /usr/bin/groupsocketwrite
155 /usr/bin/groupsocketswrite
156 /usr/bin/groupreadresponse
157 /usr/bin/groupcacheenable
158 /usr/bin/groupcachedisable
159 /usr/bin/groupcacheclear
160 /usr/bin/groupcacheremove
161 /usr/bin/groupcachereadsync
162 /usr/bin/groupcacheread
163 /usr/bin/mrestart
164 /usr/bin/mwriteplain
165 /usr/bin/knxtool
166 /usr/bin/xpropread
167 /usr/bin/xpropwrite
169 %files -n libeibclient-devel
170 %defattr(-,root,root,-)
171 /usr/include
172 %{_libdir}/libeibclient.a
173 /usr/share/bcusdk/eibclient.php
174 /usr/share/bcusdk/EIBConnection.cs
175 /usr/share/java/eibclient.jar
177 %files -n eibd-client-sources
178 %defattr(-,root,root,-)
179 /usr/share/bcusdk/examples/*.c
180 /usr/share/bcusdk/examples/*.h
183 %changelog
184 * Sat Jul 30 2005 Martin Koegler <mkoegler@auto.tuwien.ac.at> - 0:0.0.0-3
185 - first version