fp@1810: #---------------------------------------------------------------------------- fp@1810: # fp@1810: # $Id$ fp@1810: # fp@1810: # Copyright (C) 2006-2010 Florian Pose, Ingenieurgemeinschaft IgH fp@1810: # fp@1810: # This file is part of the IgH EtherCAT Master. fp@1810: # fp@1810: # The IgH EtherCAT Master is free software; you can redistribute it and/or fp@1810: # modify it under the terms of the GNU General Public License version 2, as fp@1810: # published by the Free Software Foundation. fp@1810: # fp@1810: # The IgH EtherCAT Master is distributed in the hope that it will be useful, fp@1810: # but WITHOUT ANY WARRANTY; without even the implied warranty of fp@1810: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General fp@1810: # Public License for more details. fp@1810: # fp@1810: # You should have received a copy of the GNU General Public License along fp@1810: # with the IgH EtherCAT Master; if not, write to the Free Software fp@1810: # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@1810: # fp@1810: # --- fp@1810: # fp@1810: # The license mentioned above concerns the source code only. Using the fp@1810: # EtherCAT technology and brand is only permitted in compliance with the fp@1810: # industrial property and similar rights of Beckhoff Automation GmbH. fp@1810: # fp@1810: # vim: tw=78 fp@1810: # fp@1810: #---------------------------------------------------------------------------- fp@1810: fp@1810: Name: @PACKAGE@ fp@1810: Version: @VERSION@ fp@1810: Release: 1 fp@1810: fp@1810: License: GPL fp@1810: URL: http://etherlab.org/en/ethercat fp@1810: fp@1810: Provides: @PACKAGE@ fp@1810: Source: %{name}-%{version}.tar.bz2 fp@1810: BuildRoot: /tmp/%{name}-%{version} fp@1810: fp@1816: BuildRequires: %kernel_module_package_buildreqs fp@1816: fp@1810: #---------------------------------------------------------------------------- fp@1810: # Main Package fp@1810: #---------------------------------------------------------------------------- fp@1810: fp@1810: Summary: IgH EtherCAT Master fp@1810: Group: EtherLab fp@1810: fp@1810: %description fp@1810: This is an open-source EtherCAT master implementation for Linux 2.6. See the fp@1810: FEATURES file for a list of features. For more information, see fp@1810: http://etherlab.org/en/ethercat. fp@1810: fp@1816: %kernel_module_package fp@1810: fp@1810: #---------------------------------------------------------------------------- fp@1810: # Development package fp@1810: #---------------------------------------------------------------------------- fp@1810: fp@1810: %package devel fp@1810: fp@1810: Summary: Development files for applications that use the EtherCAT master. fp@1810: Group: EtherLab fp@1810: fp@1810: %description devel fp@1810: This is an open-source EtherCAT master implementation for Linux 2.6. See the fp@1810: FEATURES file for a list of features. For more information, see fp@1810: http://etherlab.org/en/ethercat. fp@1810: fp@1810: #---------------------------------------------------------------------------- fp@1810: fp@1810: %prep fp@1810: %setup fp@1810: fp@1810: %build fp@1818: %configure --enable-tty --enable-generic --enable-e100 \ fp@1816: --with-linux-dir=/usr/src/linux-obj/%_target_cpu/default fp@1816: make fp@1816: mkdir obj fp@1816: for flavor in %flavors_to_build; do fp@1816: target=obj/$flavor fp@1816: rm -rf $target fp@1816: mkdir $target fp@1816: cp -r config.h globals.h Kbuild master/ devices/ \ fp@1816: examples/ tty/ include/ $target fp@1816: make -C /usr/src/linux-obj/%_target_cpu/$flavor modules M=$PWD/$target fp@1816: done fp@1810: fp@1810: %install fp@1816: for flavor in %flavors_to_build; do fp@1816: md5sum obj/$flavor/Module.symvers fp@1816: done fp@1816: make DESTDIR=${RPM_BUILD_ROOT} install fp@1816: for flavor in %flavors_to_build; do fp@1816: target=obj/$flavor fp@1816: make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \ fp@1816: M=$PWD/$target INSTALL_MOD_PATH=${RPM_BUILD_ROOT} \ fp@1816: INSTALL_MOD_DIR=ethercat fp@1816: done fp@1810: fp@1810: %clean fp@1810: rm -rf ${RPM_BUILD_ROOT} fp@1810: fp@1810: %files fp@1810: %defattr(-,root,root) fp@1810: %doc AUTHORS fp@1810: %doc COPYING fp@1810: %doc COPYING.LESSER fp@1810: %doc ChangeLog fp@1810: %doc FEATURES fp@1810: %doc INSTALL fp@1810: %doc NEWS fp@1810: %doc README fp@1810: %doc README.EoE fp@1810: /etc/init.d/ethercat fp@1810: /etc/sysconfig/ethercat fp@1810: /usr/bin/ethercat fp@1810: /usr/lib/libethercat.so* fp@1810: fp@1810: %files devel fp@1810: %defattr(-,root,root) fp@1810: /usr/include/*.h fp@1810: /usr/lib/libethercat.a fp@1810: /usr/lib/libethercat.la fp@1810: fp@1810: #----------------------------------------------------------------------------