|
1 #---------------------------------------------------------------------------- |
|
2 # |
|
3 # $Id$ |
|
4 # |
|
5 # Copyright (C) 2006-2010 Florian Pose, Ingenieurgemeinschaft IgH |
|
6 # |
|
7 # This file is part of the IgH EtherCAT Master. |
|
8 # |
|
9 # The IgH EtherCAT Master is free software; you can redistribute it and/or |
|
10 # modify it under the terms of the GNU General Public License version 2, as |
|
11 # published by the Free Software Foundation. |
|
12 # |
|
13 # The IgH EtherCAT Master is distributed in the hope that it will be useful, |
|
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
|
16 # Public License for more details. |
|
17 # |
|
18 # You should have received a copy of the GNU General Public License along |
|
19 # with the IgH EtherCAT Master; if not, write to the Free Software |
|
20 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
21 # |
|
22 # --- |
|
23 # |
|
24 # The license mentioned above concerns the source code only. Using the |
|
25 # EtherCAT technology and brand is only permitted in compliance with the |
|
26 # industrial property and similar rights of Beckhoff Automation GmbH. |
|
27 # |
|
28 # vim: tw=78 |
|
29 # |
|
30 #---------------------------------------------------------------------------- |
|
31 |
|
32 Name: @PACKAGE@ |
|
33 Version: @VERSION@ |
|
34 Release: 1 |
|
35 |
|
36 License: GPL |
|
37 URL: http://etherlab.org/en/ethercat |
|
38 |
|
39 Provides: @PACKAGE@ |
|
40 Source: %{name}-%{version}.tar.bz2 |
|
41 BuildRoot: /tmp/%{name}-%{version} |
|
42 |
|
43 #---------------------------------------------------------------------------- |
|
44 # Main Package |
|
45 #---------------------------------------------------------------------------- |
|
46 |
|
47 Summary: IgH EtherCAT Master |
|
48 Group: EtherLab |
|
49 |
|
50 %description |
|
51 This is an open-source EtherCAT master implementation for Linux 2.6. See the |
|
52 FEATURES file for a list of features. For more information, see |
|
53 http://etherlab.org/en/ethercat. |
|
54 |
|
55 #---------------------------------------------------------------------------- |
|
56 # Kernel module package |
|
57 #---------------------------------------------------------------------------- |
|
58 |
|
59 %package kmp-rt |
|
60 |
|
61 Summary: Realtime kernel modules for the EtherCAT master. |
|
62 Group: EtherLab |
|
63 |
|
64 Requires: kernel-rt |
|
65 |
|
66 BuildRequires: kernel-rt-devel |
|
67 BuildRequires: linux-kernel-headers |
|
68 |
|
69 %description kmp-rt |
|
70 This is an open-source EtherCAT master implementation for Linux 2.6. See the |
|
71 FEATURES file for a list of features. For more information, see |
|
72 http://etherlab.org/en/ethercat. |
|
73 |
|
74 #---------------------------------------------------------------------------- |
|
75 # Development package |
|
76 #---------------------------------------------------------------------------- |
|
77 |
|
78 %package devel |
|
79 |
|
80 Summary: Development files for applications that use the EtherCAT master. |
|
81 Group: EtherLab |
|
82 |
|
83 %description devel |
|
84 This is an open-source EtherCAT master implementation for Linux 2.6. See the |
|
85 FEATURES file for a list of features. For more information, see |
|
86 http://etherlab.org/en/ethercat. |
|
87 |
|
88 #---------------------------------------------------------------------------- |
|
89 |
|
90 %prep |
|
91 %setup |
|
92 |
|
93 %build |
|
94 %configure --enable-tty --enable-generic |
|
95 make all modules |
|
96 |
|
97 %install |
|
98 make DESTDIR=${RPM_BUILD_ROOT} install modules_install |
|
99 |
|
100 %clean |
|
101 rm -rf ${RPM_BUILD_ROOT} |
|
102 |
|
103 %files |
|
104 %defattr(-,root,root) |
|
105 %doc AUTHORS |
|
106 %doc COPYING |
|
107 %doc COPYING.LESSER |
|
108 %doc ChangeLog |
|
109 %doc FEATURES |
|
110 %doc INSTALL |
|
111 %doc NEWS |
|
112 %doc README |
|
113 %doc README.EoE |
|
114 /etc/init.d/ethercat |
|
115 /etc/sysconfig/ethercat |
|
116 /usr/bin/ethercat |
|
117 /usr/lib/libethercat.so* |
|
118 |
|
119 %files kmp-rt |
|
120 %defattr(-,root,root) |
|
121 /lib/modules/*/ethercat/*.ko |
|
122 /usr/share/@PACKAGE@/@LINUX_SYMVERS@ |
|
123 |
|
124 %files devel |
|
125 %defattr(-,root,root) |
|
126 /usr/include/*.h |
|
127 /usr/lib/libethercat.a |
|
128 /usr/lib/libethercat.la |
|
129 |
|
130 #---------------------------------------------------------------------------- |