Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wolfi323:branches:KDE:Frameworks5
blogilo5
blogilo.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File blogilo.spec of Package blogilo5
# # spec file for package blogilo # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %bcond_with lang Name: blogilo5 Version: 17.11.70 Release: 0 %define kf5_version 5.39.0 Summary: KDE Blog Editor License: GPL-2.0-only Group: Productivity/Publishing/Other URL: https://www.kde.org Source0: blogilo-%{version}.tar.xz BuildRequires: extra-cmake-modules >= %{kf5_version} BuildRequires: update-desktop-files BuildRequires: cmake(KF5Blog) BuildRequires: cmake(KF5Crash) BuildRequires: cmake(KF5DBusAddons) BuildRequires: cmake(KF5DocTools) BuildRequires: cmake(KF5IMAP) BuildRequires: cmake(KF5KIO) BuildRequires: cmake(KF5Libkdepim) BuildRequires: cmake(KF5Notifications) # renamed in 23.08 #BuildRequires: cmake(KF5PimCommon) BuildRequires: cmake(KPim5PimCommon) BuildRequires: cmake(KF5PimTextEdit) # moved out of kpimtextedit in 23.04 BuildRequires: cmake(KF5TextEditTextToSpeech) BuildRequires: cmake(KF5SyntaxHighlighting) BuildRequires: cmake(KF5TextEditor) BuildRequires: cmake(KF5Wallet) BuildRequires: cmake(KPim5WebEngineViewer) BuildRequires: cmake(KF5XmlGui) BuildRequires: cmake(KPimGAPI) BuildRequires: cmake(Qt5Sql) >= 5.8.0 BuildRequires: cmake(Qt5Test) >= 5.8.0 BuildRequires: cmake(Qt5WebEngine) >= 5.8.0 BuildRequires: cmake(Qt5WebEngineWidgets) >= 5.8.0 BuildRequires: cmake(Qt5Widgets) >= 5.8.0 # It can only build on the same platforms as Qt Webengine ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 mips mips64 %description A blog editor for KDE %lang_package %prep %setup -q -n blogilo-%{version} # fix build with Qt 5.13 sed -i 's/setMargin(2)/setContentsMargins(2, 2, 2, 2)/' composereditorwebengine/src/widgets/findreplacebar.cpp sed -i 's/setMargin(0)/setContentsMargins(0, 0, 0, 0)/' composereditorwebengine/src/image/composerimagedialog.cpp sed -i 's/setMargin(0)/setContentsMargins(0, 0, 0, 0)/' composereditorwebengine/src/image/composerimageresizetooltip.cpp sed -i 's/setMargin(0)/setContentsMargins(0, 0, 0, 0)/' composereditorwebengine/src/composerwebenginewidget.cpp sed -i 's/setMargin(0)/setContentsMargins(0, 0, 0, 0)/' src/composer/webengine/blogilocomposerwebenginewidget.cpp # fix build with Qt 5.15 sed -i 's/QString::SkipEmptyParts/Qt::SkipEmptyParts/' src/toolbox.cpp sed -i 's/QString::SkipEmptyParts/Qt::SkipEmptyParts/' src/dbman.cpp sed -i 's/QDockWidget::AllDockWidgetFeatures/QDockWidget::DockWidgetClosable|QDockWidget::DockWidgetMovable|QDockWidget::DockWidgetFloatable/' src/mainwindow.cpp sed -i '/#include <QDir>/a #include <QRandomGenerator>' src/composer/stylegetter.cpp sed -i '/qsrand/d' src/composer/stylegetter.cpp sed -i 's/qrand()/QRandomGenerator::global()->generate()/' src/composer/stylegetter.cpp # fix build with messagelib 23.04 sed -i 's/find_package(KF5WebEngineViewer/find_package(KPim5WebEngineViewer/' CMakeLists.txt sed -i 's/KF5::WebEngineViewer/KPim5::WebEngineViewer/' composereditorwebengine/src/CMakeLists.txt composereditorwebengine/tests/CMakeLists.txt src/CMakeLists.txt # use new kpimtextedittexttospeech lib from ktextaddons sed -i '/find_package(KF5PimCommon/a find_package(KF5TextEditTextToSpeech CONFIG REQUIRED)' CMakeLists.txt sed -i '/KF5::PimTextEdit/a KF5::TextEditTextToSpeech' composereditorwebengine/src/CMakeLists.txt sed -i 's!#include "kpimtextedit/texttospeech.h"!#include "textedittexttospeech/texttospeech.h"!' composereditorwebengine/src/private/composerwebengine_p.cpp sed -i 's/KPIMTextEdit::TextToSpeech::self()->say(html);/TextEditTextToSpeech::TextToSpeech::self()->say(html);/' composereditorwebengine/src/private/composerwebengine_p.cpp # old compatibility name removed in 23.08 sed -i 's/find_package(KF5PimCommon/find_package(KPim5PimCommon/' CMakeLists.txt sed -i 's/KF5::PimCommon/KPim5::PimCommon/' src/CMakeLists.txt sed -i 's/KF5::PimCommon/KPim5::PimCommon/' composereditorwebengine/src/CMakeLists.txt # avoid 23.04 deprecation warnings (that would break build in the future) #sed -i 's/find_package(KF5Libkdepim/find_package(KPim5Libkdepim/' CMakeLists.txt #and KF5::Libkdepim #sed -i 's/find_package(KF5PimTextEdit/find_package(KPim5PimTextEdit/' CMakeLists.txt #and KF5::PimTextEdit %build %cmake_kf5 -d build %make_jobs %install %kf5_makeinstall -C build %if %{with lang} %find_lang %{name} --with-man --all-name %kf5_find_htmldocs %endif %suse_update_desktop_file -r org.kde.blogilo Utility WebUtility %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license COPYING* %{_kf5_applicationsdir}/org.kde.blogilo.desktop %{_kf5_appstreamdir}/org.kde.blogilo.appdata.xml %{_kf5_bindir}/blogilo %{_kf5_configkcfgdir}/blogilo.kcfg %{_kf5_debugdir}/blogilo.categories %{_kf5_debugdir}/blogilo.renamecategories %doc %lang(en) %{_kf5_htmldir}/en/blogilo/ %{_kf5_iconsdir}/hicolor/*/*/* %{_kf5_libdir}/libcomposereditorwebengineprivate.so.* %{_kf5_sharedir}/composereditorwebengine/ %{_kf5_sharedir}/kconf_update/ %if %{with lang} %files lang -f %{name}.lang %license COPYING* %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor