Пакет OpenBoard: 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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 | # Unpackaged files in buildroot should terminate build %define _unpackaged_files_terminate_build 1 %define dest_dir %_libdir/OpenBoard Name: OpenBoard Version: 1.6.1 Release: alt6 Summary: Interactive whiteboard for schools and universities License: GPL-3.0+ Group: Education Url: https://github.com/OpenBoard-org/OpenBoard Packager: Anton Midyukov <antohami@altlinux.org> Source: %name-%version.tar Source1: %name.svg Patch: fix-build-with-poppler-22.patch Patch1: OpenBoard-1.6.1-update-russian-translations.patch BuildRequires: gcc-c++ libgomp-devel BuildRequires: desktop-file-utils BuildRequires: libpaper-devel BuildRequires: libssl-devel BuildRequires: quazip-qt5-devel BuildRequires: libqtsingleapplication-qt5-devel BuildRequires: t1lib-devel BuildRequires: libavcodec-devel libavformat-devel libswscale-devel libswresample-devel BuildRequires: libalsa-devel libvpx-devel libvorbis-devel libtheora-devel libogg-devel BuildRequires: libopus-devel liblame-devel libass-devel BuildRequires: liblzma-devel bzlib-devel BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Help) BuildRequires: pkgconfig(Qt5Multimedia) BuildRequires: pkgconfig(Qt5MultimediaWidgets) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5Script) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5UiTools) BuildRequires: pkgconfig(Qt5WebKit) BuildRequires: pkgconfig(Qt5WebKitWidgets) BuildRequires: pkgconfig(Qt5Xml) BuildRequires: pkgconfig(Qt5XmlPatterns) BuildRequires: pkgconfig(libpulse-mainloop-glib) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(hunspell) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(poppler) BuildRequires: pkgconfig(poppler-cpp) BuildRequires: pkgconfig(sdl) Requires: onboard Requires: /sbin/pidof %description Interactive whiteboard for schools and universities. %prep %setup %patch -p1 # update russian translations %patch1 -p1 # remove unwanted and nonfree libraries sed -i -e 's|-lfdk-aac ||' src/podcast/podcast.pri sed -i -e 's|-lx264 ||' src/podcast/podcast.pri # fix build with poppler 0.83 #sed -i -e 's,std=c++11,std=c++14,g' src/podcast/podcast.pri # drop quazip LIBS INCLUDEPATH sed -i -e '/LIBS += -lquazip5/d' \ -e '/INCLUDEPATH += "\/usr\/include\/quazip"/d' \ OpenBoard.pro %build %_qt5_bindir/lrelease -removeidentical %name.pro %qmake_qt5 \ LIBS+="`pkg-config --libs quazip1-qt5`" \ INCLUDEPATH+="`pkg-config --cflags-only-I quazip1-qt5 | sed 's/-I//g'`" \ INCLUDEPATH+=%_includedir/poppler \ INCLUDEPATH+=%_includedir/qt5/QtSolutions \ %name.pro %make_build %install %makeinstall_std install -D -m 0644 %SOURCE1 %buildroot%_iconsdir/hicolor/scalable/apps/OpenBoard.svg # missing desktop file, creating one mkdir -p %buildroot%_desktopdir/ cat > %buildroot%_desktopdir/%name.desktop <<EOF [Desktop Entry] Encoding=UTF-8 Name=%name GenericName=%name Comment=Interactive whiteboard for schools and universities Comment[ru]=Интерактивная доска для школ и университетов Exec=%dest_dir/run.sh "%f" Icon=%name StartupNotify=true Terminal=false Type=Application MimeType=application/x-%name; Categories=Education;Engineering; EOF install -D -m 0755 build/linux/release/product/%name %buildroot%dest_dir/%name cp -r build/linux/release/product/* %buildroot%dest_dir/ #run.sh (set env to avoid some possible issues) cat > %buildroot%dest_dir/run.sh <<EOF #!/bin/bash # -------------------------------------------------------------------- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>;. # --------------------------------------------------------------------- env QT_PLUGIN_PATH=\$QT_PLUGIN_PATH:%dest_dir/%name/plugins LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:%dest_dir/plugins/cffadaptor %dest_dir/%name "\$@" EOF sed -i -e '/env QT_PLUGIN_PATH=/i if pid="$(/sbin/pidof OpenBoard)"; then\n echo "OpenBoard is already running, PID ${pid}."\n exit 0\nfi\n' %buildroot%dest_dir/run.sh chmod 0755 %buildroot%dest_dir/run.sh mkdir -p %buildroot/%_bindir/ ln -s -T %dest_dir/run.sh %buildroot/%_bindir/%name # clean some exe bits find %buildroot -executable -type f -name *.js -exec chmod -x '{}' \+ find %buildroot -executable -type f -name *.svg -exec chmod -x '{}' \+ find %buildroot -executable -type f -name *.css -exec chmod -x '{}' \+ find %buildroot -executable -type f -name *.xml -exec chmod -x '{}' \+ find %buildroot -executable -type f -name *.html -exec chmod -x '{}' \+ # internalization lrelease-qt5 -removeidentical %name.pro mkdir -p %buildroot%dest_dir/i18n/ cp -R resources/i18n/%{name}*.qm %buildroot%dest_dir/i18n/ # customizations cp -R resources/customizations %buildroot%dest_dir/ %files %doc COPYRIGHT LICENSE %_desktopdir/%name.desktop %_iconsdir/hicolor/scalable/apps/%name.svg %_libdir/OpenBoard %_bindir/%name %changelog * Wed Mar 23 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.1-alt6 - Update russian translation for 1.6.1 - Multiple app instances run ability disabling - Replacing the icon from png to svg * Fri Mar 18 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.1-alt5 - adapted for build with libpoppler-devel-21.11.0 and libpoppler-devel-22.03.0 * Thu Mar 17 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.1-alt4 - fix build with poppler-22 * Sat Jan 01 2022 Anton Midyukov <antohami@altlinux.org> 1.6.1-alt3 - realy fix build with libquazip1-qt5 * Sat Jan 01 2022 Anton Midyukov <antohami@altlinux.org> 1.6.1-alt2 - fix build with libquazip1-qt5 * Fri Oct 22 2021 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.1-alt1 - new version 1.6.1 - Removing patches merged to upstream * Wed Mar 24 2021 Anton Midyukov <antohami@altlinux.org> 1.5.4-alt3 - Update Russian translation * Mon Oct 26 2020 Anton Midyukov <antohami@altlinux.org> 1.5.4-alt2 - Requires onboard (Closes: 39119) * Sat Mar 28 2020 Anton Midyukov <antohami@altlinux.org> 1.5.4-alt1 - new version 1.5.4 * Fri Aug 16 2019 Anton Midyukov <antohami@altlinux.org> 1.5.3-alt1 - new version 1.5.3 * Sun Jun 23 2019 Igor Vlasenko <viy@altlinux.ru> 1.5.2-alt3 - NMU: remove rpm-build-ubt from BR: * Sun Mar 31 2019 Anton Midyukov <antohami@altlinux.org> 1.5.2-alt2 - Update patchs (Fix FTBFS) (Thanks Mageia Team) * Thu Feb 14 2019 Anton Midyukov <antohami@altlinux.org> 1.5.2-alt1 - new version 1.5.2 * Sat Nov 17 2018 Anton Midyukov <antohami@altlinux.org> 1.4.1-alt1 - new version 1.4.1 * Wed Aug 29 2018 Grigory Ustinov <grenka@altlinux.org> 1.3.6-alt3.1%ubt - NMU: Rebuild with new openssl 1.1.0. * Fri Jul 27 2018 Anton Midyukov <antohami@altlinux.org> 1.3.6-alt3%ubt - Fix build with libpoppler >= 0.64 * Sun Jul 08 2018 Anton Midyukov <antohami@altlinux.org> 1.3.6-alt2%ubt.1 - Rebuilt for aarch64 * Wed Jan 31 2018 Anton Midyukov <antohami@altlinux.org> 1.3.6-alt2%ubt - Fix build for ALT Sisyphus. * Mon Nov 13 2017 Anton Midyukov <antohami@altlinux.org> 1.3.6-alt1%ubt - Initial build for ALT Sisyphus. |