Пакет yaplc-ide: Specfile
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 | Name: yaplc-ide Version: 1.1.0 Release: alt1.20180112 Summary: Extensions for Beremiz, allowing to create applications YAPLC/RTE Summary(ru_RU.UTF-8): Расширения для Beremiz, позволяющие создавать приложения YAPLC/RTE License: GPLv3+ Group: Engineering Url: https://github.com/nucleron/IDE Packager: Anton Midyukov <antohami@altlinux.org> Source: %name-%version.tar Buildarch: noarch BuildPreReq: rpm-build-python desktop-file-utils %add_python_req_skip Beremiz CodeFileTreeNode ConfigTreeNode PLCControler controls editors targets util xmlclass Requires: python-module-beremiz Requires: matiec Requires: yapyserial Requires: gcc-c++ Requires: arm-none-eabi-gcc-c++ Requires: stm32flash Requires: CanFestival-3-source Requires: yaplc-rte-source Requires: libopencm3-source Requires: libremodbus-source Requires: yaplc_demos %description Extensions for Beremiz, allowing to create applications YAPLC/RTE. %description -l ru_RU.UTF-8 Расширения для Beremiz, позволяющие создавать приложения YAPLC/RTE. %prep %setup %install mkdir -p %buildroot%python_sitelibdir/%name cp -r . %buildroot%python_sitelibdir/%name ### == executable file cat>%name<<END #!/bin/sh if ! [ -d \$HOME/YAPLC/RTE ]; then mkdir -p \$HOME/YAPLC && cd \$HOME/YAPLC && cp -fr %_prefix/src/yaplc-rte RTE fi if ! [ -d \$HOME/YAPLC/libopencm3 ]; then mkdir -p \$HOME/YAPLC && cd \$HOME/YAPLC && cp -fr %_prefix/src/libopencm3 . fi if ! [ -d \$HOME/YAPLC/libremodbus ]; then mkdir -p \$HOME/YAPLC && cd \$HOME/YAPLC && cp -fr %_prefix/src/libremodbus . fi if ! [ -d \$HOME/YAPLC/CanFestival-3 ]; then mkdir -p \$HOME/YAPLC && cd \$HOME/YAPLC && cp -fr %_prefix/src/CanFestival-3 \$HOME/YAPLC/ && cd \$HOME/YAPLC/CanFestival-3/objdictgen && tar -xzf Gnosis_Utils-current.tar.gz && mv Gnosis_Utils*/gnosis . && rm -fr Gnosis_Utils* && cd \$HOME/YAPLC/CanFestival-3 && ./configure && make fi if ! [ -d \$HOME/YAPLC_DEMOS ]; then mkdir -p \$HOME/YAPLC && cd \$HOME/YAPLC && cp -fr %_docdir/YAPLC_DEMOS . fi python2 %python_sitelibdir/%name/yaplcide.py END mkdir -p %buildroot%_bindir/ install -m755 %name %buildroot%_bindir/%name ### == desktop file cat>%name.desktop<<END [Desktop Entry] Name=YAPLC-IDE Exec=%name Icon=beremiz Terminal=false Type=Application Categories=IDE;Development; END desktop-file-install --dir=%buildroot%_desktopdir %name.desktop %files %_bindir/%name %python_sitelibdir/%name %_desktopdir/%name.desktop %changelog * Sat Mar 10 2018 Anton Midyukov <antohami@altlinux.org> 1.1.0-alt1.20180112 - New version 1.1.0 * Sun Jul 09 2017 Anton Midyukov <antohami@altlinux.org> 0.0-alt2.20170629 - Added missing requires. * Sun Jul 02 2017 Anton Midyukov <antohami@altlinux.org> 0.0-alt1.20170629 - Initial build for ALT Linux Sisyphus. |