Package 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 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | # Unpackaged files in buildroot should terminate build %define _unpackaged_files_terminate_build 1 Name: OpenBoard Version: 1.6.4 Release: alt4 Summary: Interactive whiteboard for schools and universities Summary(ru_RU.UTF-8): Интерактивная доска для школ и университетов 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 # GeoInfo widget with a version with modified borders of Ukraine and Russia from ThomasLucky13 Source2: GeoInfo.wgt.tar.gz # https://github.com/OpenBoard-org/OpenBoard/pull/648 Patch1: 0001-OpenBoard-1.6.3-update-russian-translations.patch Patch2: 0002-dark-background-color-set-ability-feature.patch # https://github.com/OpenBoard-org/OpenBoard/pull/635 Patch3: 0003-new-icon-images.patch # https://github.com/OpenBoard-org/OpenBoard/pull/714 Patch4: 0004-toolbar_elements_changed.patch # https://notes.sagredo.eu/files/hacks//openboard//run-in-a-window.patch Patch5: 0005-run-in-a-window.patch # https://github.com/OpenBoard-org/OpenBoard/pull/714 Patch6: 0006-polygon_line_styles.patch # https://github.com/OpenBoard-org/OpenBoard/pull/712 Patch8: 0008-background-grid-size-save.patch # https://github.com/OpenBoard-org/OpenBoard/pull/714 Patch9: 0009-vector_tool.patch # https://github.com/OpenBoard-org/OpenBoard/pull/714 Patch10: 0010-ru_tr_lineStyles_vectors.patch Patch11: 0011-fix-videoSize-saving.patch # Upstream commit Patch12: 0001-fix-make-UBFFmpegVideoEncoder-compatible-with-ffmpeg.patch Patch13: 0002-fix-avoid-taking-address-of-initializer-list.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. %description -l ru_RU.UTF-8 Интерактивная доска для школ и университетов %prep %setup -a2 # update russian translations %autopatch -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 # drop quazip LIBS INCLUDEPATH sed -i -e '/LIBS += -lquazip5/d' \ -e '/INCLUDEPATH += "\/usr\/include\/quazip5"/d' \ OpenBoard.pro # Removed some map widgets because of incorrect display of borders of Ukraine and Russia rm -fvr resources/library/applications/GoogleMap.wgt rm -fvr resources/library/applications/OpenStreetMap.wgt # Replacement of the GeoInfo widget with a version with modified borders of Ukraine and Russia rm -fvr resources/library/applications/GeoInfo.wgt mv GeoInfo.wgt resources/library/applications/GeoInfo.wgt rm -fv resources/etc/OpenBoard.css %build %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=%_bindir/openboard "%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/OpenBoard %buildroot%_libdir/%name/OpenBoard cp -r build/linux/release/product/* %buildroot%_libdir/%name/ #run.sh (set env to avoid some possible issues) cat > %buildroot%_libdir/%name/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/>;. # --------------------------------------------------------------------- if pid="\$(/sbin/pidof OpenBoard)"; then echo "OpenBoard is already running, PID \${pid}." exit 0 fi env QT_PLUGIN_PATH=\$QT_PLUGIN_PATH:%_libdir/%name/plugins LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:%_libdir/%name/plugins/cffadaptor %_libdir/%name/OpenBoard "\$@" EOF chmod 0755 %buildroot%_libdir/%name/run.sh mkdir -p %buildroot/%_bindir/ ln -s -T %_libdir/%name/run.sh %buildroot/%_bindir/openboard # 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%_libdir/%name/i18n/ cp -R resources/i18n/%{name}*.qm %buildroot%_libdir/%name/i18n/ # customizations cp -R resources/customizations %buildroot%_libdir/%name/ %files %doc COPYRIGHT LICENSE %_bindir/openboard %_libdir/%name %_desktopdir/%name.desktop %_iconsdir/hicolor/scalable/apps/%name.svg %changelog * Sat Sep 09 2023 Anton Midyukov <antohami@altlinux.org> 1.6.4-alt4 - add upstream patches for fix build with ffmpeg-6.0 * Mon Dec 26 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.4-alt3 - Added the patch for restore video size when it loading from a document: (https://github.com/OpenBoard-org/OpenBoard/issues/715) - Removed some map widgets because of incorrect display of borders of Ukraine and Russia. Will return after fixing the inaccuracy. - Added GeoInfo widget with the correct borders of Ukraine and Russia (thanx for ThomasLucky13) * Tue Nov 29 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.4-alt2 - Several patches replaced and one removed - css file removed * Mon Oct 10 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.4-alt1 - new version 1.6.4 - Patches adapted and assembled into a patchset. Unnecessary patches removed * Fri Sep 30 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.3-alt6 - Adding the patch with a new drawing element - vector and the patch with russian translation of it * Mon Sep 26 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.3-alt5 - Adding the patch for increasing the gaps in the dotted line style - Adding the patch with ability for changing line selection using StrokesGroup item - Adding the patch with ability for saving background grid size when it has been changed * Mon Aug 29 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.3-alt4 - Adding the patch with new icon images - Adding the patch with ability for draw dashed and dotted lines - Adding the patch with ability for running in a window - Removed widget GeoInfo because of incorrect display of borders of Ukraine and Russia. Will return after fixing the inaccuracy. * Fri Jul 08 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.3-alt3 - Fixed the program version in the text from the copyrightTextBrowser widget (Closes: 43124) * Thu Jun 23 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.3-alt2 - Fix of patch with russian translation for 1.6.3 * Wed Jun 22 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.3-alt1 - new version 1.6.3 - Update russian translation for 1.6.3 - Remove patches merged to upstream - Cleaned up spec * Tue Apr 19 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.1-alt8 - Adding the patch for russian translation of GraphMe widget * Tue Apr 12 2022 Evgeniy Kukhtinov <neurofreak@altlinux.org> 1.6.1-alt7 - Adding a license to the icon - Adding the patch for increasing the call area of the submenu - Adding the patch for ability to set the color of the dark background in the configuration - Adding the patch for stylus palette icons replacing from png to svg * 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. |