calligra 17:3.3.0-0.20230812.1 (aarch64) 2023-17550
9999

Status published
Submitter bero [@T] lindev.ch
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/358103
Packages
calligra-17:3.3.0-0.20230812.1.aarch64.source
calligra-17:3.3.0-0.20230812.1.aarch64.binary
calligra-core-17:3.3.0-0.20230812.1.aarch64.binary
calligra-core-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-debugsource-17:3.3.0-0.20230812.1.aarch64.binary
calligra-devel-17:3.3.0-0.20230812.1.aarch64.binary
calligra-flow-17:3.3.0-0.20230812.1.aarch64.binary
calligra-gemini-17:3.3.0-0.20230812.1.aarch64.binary
calligra-gemini-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-karbon-17:3.3.0-0.20230812.1.aarch64.binary
calligra-karbon-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-okular-doc-17:3.3.0-0.20230812.1.aarch64.binary
calligra-okular-doc-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-okular-docx-17:3.3.0-0.20230812.1.aarch64.binary
calligra-okular-docx-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-okular-odp-17:3.3.0-0.20230812.1.aarch64.binary
calligra-okular-odp-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-okular-odt-17:3.3.0-0.20230812.1.aarch64.binary
calligra-okular-odt-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-okular-powerpoint-17:3.3.0-0.20230812.1.aarch64.binary
calligra-okular-powerpoint-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-okular-pptx-17:3.3.0-0.20230812.1.aarch64.binary
calligra-okular-pptx-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-okular-wpd-17:3.3.0-0.20230812.1.aarch64.binary
calligra-okular-wpd-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-sheets-17:3.3.0-0.20230812.1.aarch64.binary
calligra-sheets-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-stage-17:3.3.0-0.20230812.1.aarch64.binary
calligra-stage-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
calligra-words-17:3.3.0-0.20230812.1.aarch64.binary
calligra-words-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64autocorrection-17:3.3.0-0.20230812.1.aarch64.binary
lib64autocorrection-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64basicflakes-17:3.3.0-0.20230812.1.aarch64.binary
lib64basicflakes-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64calligrasheetscore-17:3.3.0-0.20230812.1.aarch64.binary
lib64calligrasheetscore-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64calligrasheetsengine-17:3.3.0-0.20230812.1.aarch64.binary
lib64calligrasheetsengine-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64calligrasheetspartlib-17:3.3.0-0.20230812.1.aarch64.binary
lib64calligrasheetspartlib-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64calligrasheetsui-17:3.3.0-0.20230812.1.aarch64.binary
lib64calligrasheetsui-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64calligrastageprivate-17:3.3.0-0.20230812.1.aarch64.binary
lib64calligrastageprivate-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64flake-17:3.3.0-0.20230812.1.aarch64.binary
lib64flake-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64gemini-17:3.3.0-0.20230812.1.aarch64.binary
lib64gemini-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64karboncommon-17:3.3.0-0.20230812.1.aarch64.binary
lib64karboncommon-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64karbonui-17:3.3.0-0.20230812.1.aarch64.binary
lib64karbonui-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64koformula-17:3.3.0-0.20230812.1.aarch64.binary
lib64koformula-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64komain-17:3.3.0-0.20230812.1.aarch64.binary
lib64komain-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64komsooxml-17:3.3.0-0.20230812.1.aarch64.binary
lib64komsooxml-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64koodf-17:3.3.0-0.20230812.1.aarch64.binary
lib64koodf-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64koodf2-17:3.3.0-0.20230812.1.aarch64.binary
lib64koodf2-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64koodfreader-17:3.3.0-0.20230812.1.aarch64.binary
lib64koodfreader-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64kookularGenerator_odp-17:3.3.0-0.20230812.1.aarch64.binary
lib64kookularGenerator_odp-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64kookularGenerator_odt-17:3.3.0-0.20230812.1.aarch64.binary
lib64kookularGenerator_odt-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64kopageapp-17:3.3.0-0.20230812.1.aarch64.binary
lib64kopageapp-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64koplugin-17:3.3.0-0.20230812.1.aarch64.binary
lib64koplugin-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64kostore-17:3.3.0-0.20230812.1.aarch64.binary
lib64kostore-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64kotext-17:3.3.0-0.20230812.1.aarch64.binary
lib64kotext-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64kotextlayout-17:3.3.0-0.20230812.1.aarch64.binary
lib64kotextlayout-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64kovectorimage-17:3.3.0-0.20230812.1.aarch64.binary
lib64kovectorimage-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64koversion-17:3.3.0-0.20230812.1.aarch64.binary
lib64koversion-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64kowidgets-17:3.3.0-0.20230812.1.aarch64.binary
lib64kowidgets-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64kowidgetutils-17:3.3.0-0.20230812.1.aarch64.binary
lib64kowidgetutils-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64kowv2_-17:3.3.0-0.20230812.1.aarch64.binary
lib64kowv2_-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64kundo2_-17:3.3.0-0.20230812.1.aarch64.binary
lib64kundo2_-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64pigmentcms-17:3.3.0-0.20230812.1.aarch64.binary
lib64pigmentcms-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64RtfReader-17:3.3.0-0.20230812.1.aarch64.binary
lib64RtfReader-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
lib64wordsprivate-17:3.3.0-0.20230812.1.aarch64.binary
lib64wordsprivate-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
okular-rtf-17:3.3.0-0.20230812.1.aarch64.binary
okular-rtf-debuginfo-17:3.3.0-0.20230812.1.aarch64.debuginfo
Build Date 2023-08-13 13:34:01 +0000 UTC
Last Updated 2023-08-15 14:03:37.84668873 +0000 UTC
$ git diff --patch-with-stat --summary 6e3cee4ba9fb52168fa46fa56670f855fdf4f317..b329c1ccb9bdae7b93a332ee2c9a5b60914fb12d

 .abf.yml                                           |  2 +-
 calligra-3.2.1-c++17.patch                         | 72 ----------------------
 calligra-3.2.1-poppler-22.05.patch                 | 38 ------------
 calligra-3.2.1-workaround-fontconfig-linkage.patch | 12 ----
 calligra-buildfix.patch                            | 16 +++++
 calligra.spec                                      | 70 +++++++++++----------
 6 files changed, 54 insertions(+), 156 deletions(-)
 delete mode 100644 calligra-3.2.1-c++17.patch
 delete mode 100644 calligra-3.2.1-poppler-22.05.patch
 delete mode 100644 calligra-3.2.1-workaround-fontconfig-linkage.patch
 create mode 100644 calligra-buildfix.patch

diff --git a/.abf.yml b/.abf.yml
index da3e57f..5239bad 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
 sources:
-  calligra-3.2.1.tar.xz: 8d724a5548dce2ec6cb0c152a464c7472a9451de
+  calligra-20230812.tar.bz2: 458a09eac9d2b6f6c48a914ba575474745d997bd
diff --git a/calligra-3.2.1-c++17.patch b/calligra-3.2.1-c++17.patch
deleted file mode 100644
index bbbd3c9..0000000
--- a/calligra-3.2.1-c++17.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-diff -up calligra-3.2.1/CMakeLists.txt.omv~ calligra-3.2.1/CMakeLists.txt
---- calligra-3.2.1/CMakeLists.txt.omv~	2022-01-06 13:50:53.744757079 +0100
-+++ calligra-3.2.1/CMakeLists.txt	2022-01-06 13:51:02.026784277 +0100
-@@ -108,7 +108,7 @@ message(STATUS "Release build: ${RELEASE
- if (CMAKE_VERSION VERSION_LESS "3.1")
-     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
- else ()
--    set (CMAKE_CXX_STANDARD 11)
-+    set (CMAKE_CXX_STANDARD 17)
- endif ()
- 
- ############
-diff -up calligra-3.2.1/filters/words/msword-odf/wv2/src/styles.cpp.omv~ calligra-3.2.1/filters/words/msword-odf/wv2/src/styles.cpp
---- calligra-3.2.1/filters/words/msword-odf/wv2/src/styles.cpp.omv~	2022-01-06 16:44:47.667885823 +0100
-+++ calligra-3.2.1/filters/words/msword-odf/wv2/src/styles.cpp	2022-01-06 16:44:52.768888819 +0100
-@@ -42,7 +42,7 @@ STD::STD()
- }
- 
- STD::STD( U16 baseSize, U16 totalSize, OLEStreamReader* stream, bool preservePos )
--throw(InvalidFormatException)
-+noexcept(false)
- {
-     clearInternal();
-     if (!read( baseSize, totalSize, stream, preservePos )) {
-@@ -112,7 +112,7 @@ STD& STD::operator=( const STD& rhs )
- }
- 
- bool STD::read( const U16 cbStd, const U16 stdfSize, OLEStreamReader* stream, bool preservePos )
--throw(InvalidFormatException)
-+noexcept(false)
- {
-     U16 shifterU16;
-     S32 startOffset=stream->tell();  // address where the STD starts
-@@ -938,7 +938,7 @@ void Style::mergeUpechpx( const Style* p
- }
- 
- 
--StyleSheet::StyleSheet( OLEStreamReader* tableStream, U32 fcStshf, U32 lcbStshf ) throw(InvalidFormatException)
-+StyleSheet::StyleSheet( OLEStreamReader* tableStream, U32 fcStshf, U32 lcbStshf ) noexcept(false)
-     : m_udsNum(0)
- {
-     WordVersion version = Word8;
-diff -up calligra-3.2.1/filters/words/msword-odf/wv2/src/styles.h.omv~ calligra-3.2.1/filters/words/msword-odf/wv2/src/styles.h
---- calligra-3.2.1/filters/words/msword-odf/wv2/src/styles.h.omv~	2022-01-06 16:34:12.067378436 +0100
-+++ calligra-3.2.1/filters/words/msword-odf/wv2/src/styles.h	2022-01-06 16:34:41.225441536 +0100
-@@ -59,7 +59,7 @@ struct STD
-     /**
-      * Simply calls read(...)
-      */
--    STD( U16 stdfSize, U16 totalSize, OLEStreamReader* stream, bool preservePos = false ) throw(InvalidFormatException);
-+    STD( U16 stdfSize, U16 totalSize, OLEStreamReader* stream, bool preservePos = false ) noexcept(false);
-     /**
-      * Attention: This struct allocates memory on the heap
-      */
-@@ -75,7 +75,7 @@ struct STD
-      *
-      * @return true - success, false - failed
-      */
--    bool read( const U16 cbStd, const U16 stdfSize, OLEStreamReader* stream, bool preservePos = false ) throw(InvalidFormatException);
-+    bool read( const U16 cbStd, const U16 stdfSize, OLEStreamReader* stream, bool preservePos = false ) noexcept(false);
- 
-     /**
-      * Same as reading :)
-@@ -365,7 +365,7 @@ private:
- class WV2_EXPORT StyleSheet
- {
- public:
--    StyleSheet( OLEStreamReader* tableStream, U32 fcStshf, U32 lcbStshf ) throw(InvalidFormatException);
-+    StyleSheet( OLEStreamReader* tableStream, U32 fcStshf, U32 lcbStshf ) noexcept(false);
-     ~StyleSheet();
- 
-     /**
diff --git a/calligra-3.2.1-poppler-22.05.patch b/calligra-3.2.1-poppler-22.05.patch
deleted file mode 100644
index d20d855..0000000
--- a/calligra-3.2.1-poppler-22.05.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-diff -up calligra-3.2.1/filters/karbon/pdf/Pdf2OdgImport.cpp.omv~ calligra-3.2.1/filters/karbon/pdf/Pdf2OdgImport.cpp
---- calligra-3.2.1/filters/karbon/pdf/Pdf2OdgImport.cpp.omv~	2022-05-29 00:24:51.520797879 +0200
-+++ calligra-3.2.1/filters/karbon/pdf/Pdf2OdgImport.cpp	2022-05-29 00:25:10.076829624 +0200
-@@ -86,8 +86,7 @@ KoFilter::ConversionStatus Pdf2OdgImport
-     if (! globalParams)
-         return KoFilter::NotImplemented;
- 
--    GooString * fname = new GooString(QFile::encodeName(m_chain->inputFile()).data());
--    PDFDoc * pdfDoc = new PDFDoc(fname, 0, 0, 0);
-+    PDFDoc * pdfDoc = new PDFDoc(std::make_unique<GooString>(QFile::encodeName(m_chain->inputFile()).data()));
-     if (! pdfDoc) {
- #ifdef HAVE_POPPLER_PRE_0_83
-         delete globalParams;
-diff -up calligra-3.2.1/filters/karbon/pdf/PdfImport.cpp.omv~ calligra-3.2.1/filters/karbon/pdf/PdfImport.cpp
---- calligra-3.2.1/filters/karbon/pdf/PdfImport.cpp.omv~	2022-05-29 00:15:04.618582378 +0200
-+++ calligra-3.2.1/filters/karbon/pdf/PdfImport.cpp	2022-05-29 00:21:26.159425945 +0200
-@@ -73,8 +73,7 @@ KoFilter::ConversionStatus PdfImport::co
-     if (! globalParams)
-         return KoFilter::NotImplemented;
- 
--    GooString * fname = new GooString(QFile::encodeName(m_chain->inputFile()).data());
--    PDFDoc * pdfDoc = new PDFDoc(fname, 0, 0, 0);
-+    PDFDoc * pdfDoc = new PDFDoc(std::make_unique<GooString>(QFile::encodeName(m_chain->inputFile()).data()));
-     if (! pdfDoc) {
- #ifdef HAVE_POPPLER_PRE_0_83
-         delete globalParams;
-diff -up calligra-3.2.1/filters/karbon/pdf/SvgOutputDev.cpp.omv~ calligra-3.2.1/filters/karbon/pdf/SvgOutputDev.cpp
---- calligra-3.2.1/filters/karbon/pdf/SvgOutputDev.cpp.omv~	2022-05-29 00:22:53.197588622 +0200
-+++ calligra-3.2.1/filters/karbon/pdf/SvgOutputDev.cpp	2022-05-29 00:23:09.963619050 +0200
-@@ -410,7 +410,7 @@ void SvgOutputDev::drawString(GfxState *
-     if (s->getLength() == 0)
-         return;
- 
--    GfxFont * font = state->getFont();
-+    std::shared_ptr<GfxFont> font = state->getFont();
- 
-     QString str;
- 
diff --git a/calligra-3.2.1-workaround-fontconfig-linkage.patch b/calligra-3.2.1-workaround-fontconfig-linkage.patch
deleted file mode 100644
index 90b424f..0000000
--- a/calligra-3.2.1-workaround-fontconfig-linkage.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up calligra-3.2.1/libs/text/CMakeLists.txt.omv~ calligra-3.2.1/libs/text/CMakeLists.txt
---- calligra-3.2.1/libs/text/CMakeLists.txt.omv~	2021-12-09 22:30:19.371282836 +0100
-+++ calligra-3.2.1/libs/text/CMakeLists.txt	2021-12-09 22:30:58.958598838 +0100
-@@ -152,7 +152,7 @@ if( SHOULD_BUILD_FEATURE_RDF )
- endif()
- 
- if( FONTCONFIG_FOUND )
--    target_link_libraries(kotext PRIVATE ${FONTCONFIG_LIBRARIES})
-+    target_link_libraries(kotext PRIVATE ${FONTCONFIG_LIBRARIES} -lfontconfig)
- endif()
- 
- if( FREETYPE_FOUND )
diff --git a/calligra-buildfix.patch b/calligra-buildfix.patch
new file mode 100644
index 0000000..83e880f
--- /dev/null
+++ b/calligra-buildfix.patch
@@ -0,0 +1,16 @@
+diff -up calligra-master/sheets/3rdparty/mdds/flat_segment_tree.hpp.omv~ calligra-master/sheets/3rdparty/mdds/flat_segment_tree.hpp
+--- calligra-master/sheets/3rdparty/mdds/flat_segment_tree.hpp.omv~	2023-04-29 17:22:17.153097571 +0200
++++ calligra-master/sheets/3rdparty/mdds/flat_segment_tree.hpp	2023-04-29 17:23:27.382858565 +0200
+@@ -114,8 +114,12 @@ public:
+             }
+             else
+             {
++#ifdef __EXCEPTIONS
+                 // Having a left node is prerequisite.
+                 throw general_error("flat_segment_tree::fill_nonleaf_value_handler: Having a left node is prerequisite.");
++#else
++                return;
++#endif
+             }
+ 
+             if (right_node)
diff --git a/calligra.spec b/calligra.spec
index de1650b..c9a997e 100644
--- a/calligra.spec
+++ b/calligra.spec
@@ -7,7 +7,9 @@
 %define _disable_ld_no_undefined 1
 %define _disable_lto 1
 
-%define major 17
+%define major 18
+
+%define snapshot 20230812
 
 %define stable %([ `echo %{version} |cut -d. -f3` -ge 70 ] && echo -n un; echo -n stable)
 
@@ -15,20 +17,22 @@ Summary:	Set of office applications for KDE
 Name:		calligra
 #koffice has epoch 15. We need a higher epoch
 Epoch:		17
-Version:	3.2.1
-Release:	28
+Version:	3.3.0
+Release:	0.%{snapshot}.1
 Group:		Office
 License:	GPLv2+ and LGPLv2+ and GFDL
 Url:		http://www.calligra.org
+%if 0%{?snapshot:1}
+Source0:	https://invent.kde.org/office/calligra/-/archive/master/calligra-master.tar.bz2#/calligra-%{snapshot}.tar.bz2
+%else
 %if "%{stable}" == "stable"
 Source0:	http://download.kde.org/%{stable}/%{name}/%{version}/%{name}-%{version}.tar.xz
 %else
 Source0:	http://download.kde.org/%{stable}/%{name}/%{name}-%{version}.tar.xz
 %endif
+%endif
 Source1:	%{name}.rpmlintrc
-Patch0:		calligra-3.2.1-workaround-fontconfig-linkage.patch
-Patch1:		calligra-3.2.1-c++17.patch
-Patch2:		calligra-3.2.1-poppler-22.05.patch
+Patch0:		calligra-buildfix.patch
 
 BuildRequires:	pkgconfig(Qt5Core)
 BuildRequires:	pkgconfig(Qt5Gui)
@@ -47,12 +51,12 @@ BuildRequires:	pkgconfig(Qt5WebKitWidgets)
 BuildRequires:	pkgconfig(Qt5X11Extras)
 BuildRequires:	pkgconfig(Qt5QuickWidgets)
 BuildRequires:	cmake(ECM)
+BuildRequires:	ninja
 BuildRequires:	pstoedit
 BuildRequires:	boost-devel
 BuildRequires:	freetds-devel
 BuildRequires:	getfem-devel
 BuildRequires:	glpk-devel
-BuildRequires:	gmic-devel
 BuildRequires:	jbig-devel
 BuildRequires:	marble-devel
 BuildRequires:	mariadb-devel
@@ -169,8 +173,11 @@ Obsoletes:	%{name}-okular-odt <= %{EVRD}
 %endif
 
 # Those were in KDE4 versions of calligra...
-%define obsoletelibs calligradb calligrakdchart calligrakdgantt flowprivate kformdesigner kformula kokross koproperty kordf koreport kplatokernel kplatomodels kplatoui planprivate planworkapp rcps_plan braindumpcore planworkfactory
-%{expand:%(for lib in %{obsoletelibs}; do echo Obsoletes: %%mklibname $lib 14; echo; done)}
+%define obsoletelibs14 calligradb calligrakdchart calligrakdgantt flowprivate kformdesigner kformula kokross koproperty kordf koreport kplatokernel kplatomodels kplatoui planprivate planworkapp rcps_plan braindumpcore planworkfactory
+%{expand:%(for lib in %{obsoletelibs14}; do echo Obsoletes: %%mklibname $lib 14; echo; done)}
+# Those were in Calligra 3.2
+%define obsoletelibs18 calligrasheetscommon calligrasheetsodf
+%{expand:%(for lib in %{obsoletelibs18}; do echo Obsoletes: %%mklibname $lib 18; echo; done)}
 
 %description
 Office applications for the K Desktop Environment.
@@ -186,12 +193,9 @@ Calligra contains:
 
 %files
 
-#--------------------------------------------------------------------
-### MD the libpackage macro is missing a few bits.
-### this fixes a couple until a better solution is found
 %define libpackage()\
 %{expand:%%define nib %(echo %{1} | sed 's,[0-9]$,&_,' )}\
-%{expand:%%global lib%{1} %%mklibname %{nib} %{2}}\
+%{expand:%%global lib%{1} %%mklibname %{nib}}\
 %%package -n %{expand:%{lib%{1}}}\
 Summary: The %{1} library, a part of %{name}\
 Group: System/Libraries\
@@ -202,7 +206,7 @@ The %{1} library, a part of %{name}.\
 %{nil}
 
 # libpackages
-%define calligralibs basicflakes calligrasheetscommon calligrasheetsodf calligrastageprivate flake karboncommon karbonui komain komsooxml koodf koodfreader kopageapp koplugin kotext kotextlayout kovectorimage koversion kowidgets kowidgetutils kundo2 pigmentcms wordsprivate koformula kookularGenerator_odp kookularGenerator_odt kostore
+%define calligralibs basicflakes calligrastageprivate flake karboncommon karbonui komain komsooxml koodf koodfreader kopageapp koplugin kotext kotextlayout kovectorimage koversion kowidgets kowidgetutils kundo2 pigmentcms wordsprivate koformula kookularGenerator_odp kookularGenerator_odt kostore autocorrection calligrasheetscore calligrasheetsengine calligrasheetspartlib calligrasheetsui
 %{expand:%(for lib in %{calligralibs}; do cat <<EOF
 %%libpackage $lib %{major}
 EOF
@@ -211,27 +215,31 @@ done)}
 
 #--------------------------------------------------------------------
 
-%define libkoodf2 %mklibname koodf2 %{major}
+%define oldlibkoodf2 %mklibname koodf2 18
+%define libkoodf2 %mklibname koodf2
 
 %package -n %{libkoodf2}
 Summary:        Calligra library
 Group:          System/Libraries
 %rename %{_lib}koodf214
+%rename %{oldlibkoodf2}
 
 %description -n %{libkoodf2}
 Calligra library.
 
 %files -n %{libkoodf2}
-%{_libdir}/libkoodf2.so.%{major}*
+%{_libdir}/libkoodf2.so.*
 
 #--------------------------------------------------------------------
 
-%define libRtfReader %mklibname RtfReader %{major}
+%define oldlibRtfReader %mklibname RtfReader 18
+%define libRtfReader %mklibname RtfReader
 
 %package -n %{libRtfReader}
 Summary:        Calligra library
 Group:          System/Libraries
 %rename %{_lib}rtfreader14
+%rename %{oldlibRtfReader}
 
 %description -n %{libRtfReader}
 Calligra library.
@@ -255,7 +263,6 @@ Common files for Calligra.
 %{_bindir}/cstester
 %{_bindir}/cstrunner
 %{_bindir}/visualimagecompare
-%{_sysconfdir}/xdg/calligra_stencils.knsrc
 %{_datadir}/mime/packages/calligra_svm.xml
 %{_datadir}/applications/calligra.desktop
 %{_libdir}/qt5/plugins/calligra/colorspaces
@@ -315,9 +322,9 @@ Common files for Calligra.
 %{_libdir}/qt5/plugins/calligra/textediting
 %{_libdir}/qt5/plugins/calligra/textinlineobjects
 %{_libdir}/qt5/plugins/calligra/tools
-%{_libdir}/qt5/plugins/calligradocinfopropspage.so
 %{_libdir}/qt5/plugins/calligraimagethumbnail.so
 %{_libdir}/qt5/plugins/calligrathumbnail.so
+%{_libdir}/qt5/plugins/kf5/propertiesdialog/calligradocinfopropspage.so
 %{_libdir}/qt5/qml/org/kde/calligra
 %dir %{_datadir}/calligra
 %{_datadir}/calligra/autocorrect
@@ -334,7 +341,6 @@ Common files for Calligra.
 %{_datadir}/icons/*/*/*/calligrastage.*
 %{_datadir}/icons/*/*/*/calligrakarbon.*
 %{_datadir}/icons/*/*/*/office-chart-stock-*.*
-%{_datadir}/kservices5/calligradocinfopropspage.desktop
 %{_datadir}/kservices5/calligra_odg_thumbnail.desktop
 %{_datadir}/kservices5/ServiceMenus/calligra/words_print.desktop
 %doc %lang(ca) %{_docdir}/HTML/ca/calligra
@@ -410,7 +416,6 @@ With it, you can create informative and attractive documents with ease.
 %{_datadir}/metainfo/org.kde.calligrawords.appdata.*
 %{_datadir}/templates/.source/TextDocument.odt
 %{_datadir}/templates/TextDocument.desktop
-%{_libdir}/libkdeinit5_calligrawords.so
 %{_datadir}/applications/org.kde.calligrawords.desktop
 %{_datadir}/icons/*/*/*/calligrawords.*
 
@@ -443,13 +448,13 @@ such as income and expenditure, employee working hours, etc.
 %{_datadir}/templates/SpreadSheet.desktop
 %{_datadir}/kservices5/ServiceMenus/calligra/sheets_print.desktop
 %{_datadir}/icons/*/*/*/calligrasheets.*
-%{_libdir}/libkdeinit5_calligrasheets.so
 %{_datadir}/applications/org.kde.calligrasheets.desktop
 %{_libdir}/qt5/plugins/calligra/formatfilters/calligra_filter_sheets2xls.so
 %doc %lang(ca) %{_docdir}/HTML/ca/sheets
 %doc %lang(de) %{_docdir}/HTML/de/sheets
 %doc %lang(en) %{_docdir}/HTML/en/calligrasheets
 %doc %lang(es) %{_docdir}/HTML/es/sheets
+%doc %lang(fr) %{_docdir}/HTML/fr/sheets
 %doc %lang(nl) %{_docdir}/HTML/nl/sheets
 %doc %lang(pt) %{_docdir}/HTML/pt/sheets
 %doc %lang(pt_BR) %{_docdir}/HTML/pt_BR/sheets
@@ -479,7 +484,6 @@ content elements are available to Stage.
 
 %files stage
 %{_bindir}/calligrastage
-%{_libdir}/libkdeinit5_calligrastage.so
 %{_libdir}/qt5/plugins/calligra/formatfilters/calligra_filter_pdf2odg.so
 %{_datadir}/applications/org.kde.calligrastage.desktop
 %doc %lang(ca) %{_docdir}/HTML/ca/stage
@@ -531,7 +535,6 @@ art.
 %{_datadir}/kxmlgui5/karbon
 %{_datadir}/karbon
 %{_datadir}/kservices5/ServiceMenus/calligra/karbon_print.desktop
-%{_libdir}/libkdeinit5_karbon.so
 %{_datadir}/applications/org.kde.karbon.desktop
 
 #--------------------------------------------------------------------
@@ -713,41 +716,41 @@ done)}
 #--------------------------------------------------------------------
 
 %prep
-%autosetup -p1
+%autosetup -p1 -n calligra-%{?snapshot:master}%{!?snapshot:%{version}}
 
 %build
 #sh initrepo.sh
 %if %_mobile
 %cmake_kde5 -DIHAVEPATCHEDQT:BOOL=TRUE -DCALLIGRA_SHOULD_BUILD_STAGING:BOOL=ON \
-	-DPACKAGERS_BUILD=ON -G "Unix Makefiles"
+	-DPACKAGERS_BUILD=ON -G Ninja
 %else
 %cmake_kde5 -DIHAVEPATCHEDQT:BOOL=TRUE -DCALLIGRA_SHOULD_BUILD_STAGING:BOOL=ON -DGHNS:BOOL=ON -DINSTALL_XLS_EXPORT_FILTER:BOOL=ON  \
-	-DPACKAGERS_BUILD=ON -G "Unix Makefiles"
+	-DPACKAGERS_BUILD=ON -G Ninja
 %endif
-%make_build
+%ninja_build
 
 %if %{compile_apidox}
-%make_build apidox
+%ninja_build apidox
 %endif
 
 %install
-%make_install -C build
+%ninja_install -C build
 
 %if %compile_apidox
-%make_build install-apidox DESTDIR=%{buildroot}/
+%ninja_build install-apidox DESTDIR=%{buildroot}/
 list=`ls -d */ -1`;
 echo $list;
 for i in $list ; do
 	cd $i;
 		if grep '^include .*Doxyfile.am' Makefile.am; then
 			echo "installing apidox from $i" ;
-			make install-apidox DESTDIR=%{buildroot}/ ;
+			ninja install-apidox DESTDIR=%{buildroot}/ ;
 		fi
 	cd ../;
 done;
 %endif
 
-%find_lang calligra \
+%find_lang --with html calligra \
 KarbonFilterEffects \
 KarbonTools \
 braindump \
@@ -816,4 +819,5 @@ org.kde.calligrawords.appdata \
 org.kde.karbon.appdata \
 org.kde.kexi.appdata \
 org.kde.krita.appdata \
+sheets \
 calligra.lang
Not Available

benbullard79 [@T] cox.netNo Comment.262d 09hrs
benbullard79 [@T] cox.netNo Comment.261d 10hrs
benbullard79 [@T] cox.netNo Comment.261d 10hrs