Projects
home:Eustace:branches:Eulaceura:Factory
igh-ethercat-xenomai
_service:obs_scm:ethercat-igh.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:ethercat-igh.spec of Package igh-ethercat-xenomai
Name: ethercat-igh-xeno Version: 1.5.2 Release: 4 Summary: IgH EtherCAT Master for Linux License: GPLv2+ and LGPLv2.1 Group: Development/Other Url: https://www.etherlab.org/en/ethercat/index.php Source0: ethercat-%{version}.tar.bz2 Packager: Anton Midyukov <antohami@altlinux.org> BuildRequires: gcc-c++ BuildRequires: make Requires: kernel-xeno Patch0: ethercat-igh-xeno-00.patch Patch1: ethercat-igh-xeno-ko.patch #Patch2: ethercat-igh-xeno-initd.patch #Patch3: ethercat-igh-xeno-initd1.patch Patch4: ethercat-xeno-initd.patch %description This is an open-source EtherCAT master implementation for Linux. %prep %setup -q -n ethercat-%{version} %patch0 -p1 %patch1 -p1 %patch4 -p1 CPPFLAGS="${CPPFLAGS} -Doff64_t=__off64_t";export CPPFLAGS; ./bootstrap arch=`arch` enable_cycles_value="no" if [ $arch == "x86_64" ] ; then enable_cycles_value="yes" fi echo $enable_cycles_value %configure --with-linux-dir=/root/xenomai/linux-4.19.115 --with-module-dir=/lib/modules/4.19.115-xenomai-3.1/ --with-xenomai-dir=/usr/xenomai/ --enable-generic=yes --enable-8139too=yes --enable-e100=yes --enable-e1000=yes --enable-e1000e=yes --enable-ccat=yes --enable-igb=yes --enable-8139too=yes --enable-rtdm=yes --enable-debug-if=yes --enable-debug-if=yes --enable-eoe=yes --enable-cycles=$enable_cycles_value --enable-hrtimer=yes --enable-regalias=yes --enable-tool=yes --enable-userlib=yes --enable-tty=no --enable-wildcards=yes --enable-sii-assign=yes --enable-wildcards=yes --enable-static --enable-shared %build %make_build make modules %install mkdir -p $RPM_BUILD_ROOT/usr/include/igh_xeno install -c -m 644 include/ecrt.h include/ectty.h $RPM_BUILD_ROOT/usr/include/igh_xeno mkdir -p $RPM_BUILD_ROOT/etc/init.d install -c script/init.d/ethercat $RPM_BUILD_ROOT/etc/init.d/ethercat_xeno mkdir -p $RPM_BUILD_ROOT/etc/sysconfig install -c -m 644 script/sysconfig/ethercat $RPM_BUILD_ROOT/etc/sysconfig/ethercat_xeno install -c -m 644 script/ethercat.conf $RPM_BUILD_ROOT/etc/ethercat_xeno.conf mkdir -p $RPM_BUILD_ROOT/sbin install -c script/ethercatctl $RPM_BUILD_ROOT/sbin/ethercatctl_xeno mkdir -p $RPM_BUILD_ROOT/lib/systemd/system install -c script/ethercat.service $RPM_BUILD_ROOT/lib/systemd/system/ethercat_xeno.service mkdir -p $RPM_BUILD_ROOT/bin install -c tool/ethercat $RPM_BUILD_ROOT/bin/ethercat_xeno install -c mailbox_gateway/ethercat_mbg $RPM_BUILD_ROOT/bin/ethercat_xeno_mbg mkdir -p $RPM_BUILD_ROOT/usr/lib64 install -c lib/.libs/libethercat.so.1.1.0 $RPM_BUILD_ROOT/usr/lib64/libethercat_xeno.so.1.1.0 install -c lib/.libs/libethercat.la $RPM_BUILD_ROOT/usr/lib64/libethercat_xeno.la install -c lib/.libs/libethercat_rtdm.so.1.1.0 $RPM_BUILD_ROOT/usr/lib64/libethercat_rtdm.so.1.1 install -c lib/.libs/libethercat_rtdm.la $RPM_BUILD_ROOT/usr/lib64/libethercat_rtdm.la install -c lib/.libs/libethercat.a $RPM_BUILD_ROOT/usr/lib64/libethercat_xeno.a chmod 644 $RPM_BUILD_ROOT/usr/lib64/libethercat_xeno.a ranlib $RPM_BUILD_ROOT/usr/lib64/libethercat_xeno.a install -c lib/.libs/libethercat_rtdm.a $RPM_BUILD_ROOT/usr/lib64/libethercat_rtdm.a chmod 644 $RPM_BUILD_ROOT/usr/lib64/libethercat_rtdm.a ranlib $RPM_BUILD_ROOT/usr/lib64/libethercat_rtdm.a (cd $RPM_BUILD_ROOT/usr/lib64 && { ln -s -f libethercat_xeno.so.1.1.0 libethercat_xeno.so.1 || { rm -f libethercat_xeno.so.1 && ln -s libethercat_xeno.so.1.1.0 libethercat_xeno.so.1; }; }) (cd $RPM_BUILD_ROOT/usr/lib64 && patchelf --set-soname libethercat_xeno.so.1 libethercat_xeno.so.1.1.0) (cd $RPM_BUILD_ROOT/usr/lib64 && { ln -s -f libethercat_xeno.so.1.1.0 libethercat_xeno.so || { rm -f libethercat_xeno.so && ln -s libethercat_xeno.so.1.1.0 libethercat_xeno.so; }; }) (cd $RPM_BUILD_ROOT/usr/lib64 && { ln -s -f libethercat_rtdm.so.1.1.0 libethercat_rtdm.so.1 || { rm -f libethercat_rtdm.so.1 && ln -s libethercat_rtdm.so.1.1.0 libethercat_rtdm.so.1; }; }) (cd $RPM_BUILD_ROOT/usr/lib64 && { ln -s -f libethercat_rtdm.so.1.1.0 libethercat_rtdm.so || { rm -f libethercat_rtdm.so && ln -s libethercat_rtdm.so.1.1.0 libethercat_rtdm.so; }; }) mkdir -p $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/devices/ccat install -c devices/ccat/ec_ccat_xeno.ko $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/devices/ccat/ec_ccat_xeno.ko mkdir -p $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/devices/e1000 install -c devices/e1000/ec_e1000_xeno.ko $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/devices/e1000/ec_e1000_xeno.ko mkdir -p $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/devices/e1000e install -c devices/e1000e/ec_e1000e_xeno.ko $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/devices/e1000e/ec_e1000e_xeno.ko install -c devices/ec_8139too_xeno.ko $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/devices/ec_8139too_xeno.ko install -c devices/ec_e100_xeno.ko $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/devices/ec_e100_xeno.ko install -c devices/ec_generic_xeno.ko $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/devices/ec_generic_xeno.ko mkdir -p $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/devices/igb install -c devices/igb/ec_igb_xeno.ko $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/devices/igb/ec_igb_xeno.ko mkdir -p $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/examples/mini install -c examples/mini/ec_mini_xeno.ko $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/examples/mini/ec_mini_xeno.ko mkdir -p $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/master install -c master/ec_master_xeno.ko $RPM_BUILD_ROOT/lib/modules/ethercat_rtos/master/ec_master_xeno.ko %postun kerName2=`uname -r` if [ -d /lib/modules/$kerName2/ethercat_rtos ] then rm /lib/modules/$kerName2/ethercat_rtos -rf fi if [ -d /lib/modules/ethercat_rtos ] then rm /lib/modules/ethercat_rtos -rf fi depmod -a %files /bin/ethercat_xeno /bin/ethercat_xeno_mbg /etc/ethercat_xeno.conf /etc/init.d/ethercat_xeno /etc/sysconfig/ethercat_xeno /lib/systemd/system/ethercat_xeno.service /sbin/ethercatctl_xeno /usr/include/igh_xeno/ecrt.h /usr/include/igh_xeno/ectty.h /usr/lib64/libethercat_xeno.so.1.1.0 /usr/lib64/libethercat_xeno.la /usr/lib64/libethercat_rtdm.so.1.1 /usr/lib64/libethercat_rtdm.la /usr/lib64/libethercat_xeno.a /usr/lib64/libethercat_rtdm.a /usr/lib64/libethercat_xeno.so /usr/lib64/libethercat_xeno.so.1 /usr/lib64/libethercat_rtdm.so /usr/lib64/libethercat_rtdm.so.1 /lib/modules/ethercat_rtos/devices/ccat/ec_ccat_xeno.ko /lib/modules/ethercat_rtos/devices/e1000/ec_e1000_xeno.ko /lib/modules/ethercat_rtos/devices/e1000e/ec_e1000e_xeno.ko /lib/modules/ethercat_rtos/devices/ec_8139too_xeno.ko /lib/modules/ethercat_rtos/devices/ec_e100_xeno.ko /lib/modules/ethercat_rtos/devices/ec_generic_xeno.ko /lib/modules/ethercat_rtos/devices/igb/ec_igb_xeno.ko /lib/modules/ethercat_rtos/examples/mini/ec_mini_xeno.ko /lib/modules/ethercat_rtos/master/ec_master_xeno.ko
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2