git: 6bbdcdee3b9e - main - cad/qelectrotech: Switch to Qt6

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Wed, 14 Oct 2026 10:21:19 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6bbdcdee3b9ed29044e814399ee818fd80dd698c

commit 6bbdcdee3b9ed29044e814399ee818fd80dd698c
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-10-14 10:17:09 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-10-14 10:20:30 +0000

    cad/qelectrotech: Switch to Qt6
    
    PR:             299313
---
 cad/qelectrotech/Makefile                          | 43 ++++++++++++----------
 cad/qelectrotech/distinfo                          | 12 +++++-
 cad/qelectrotech/files/patch-CMakeLists.txt        | 14 +++++++
 ...sources_ElementsCollection_elementslocation.cpp | 25 +++++++++++++
 ...minalStrip_GraphicsItem_terminalstripdrawer.cpp | 10 +++++
 ...atch-sources_TerminalStrip_physicalterminal.cpp | 11 ++++++
 .../patch-sources_TerminalStrip_terminalstrip.cpp  | 11 ++++++
 ...h-sources_TerminalStrip_ui_terminalstripmodel.h | 13 +++++++
 .../files/patch-sources_editor_elementscene.cpp    | 11 ++++++
 .../files/patch-sources_machine__info.cpp          | 38 +++++++++++++++++++
 cad/qelectrotech/files/patch-sources_qetxml.h      | 10 +++++
 .../files/patch-sources_qgimanager.cpp             | 28 ++++++++++++++
 cad/qelectrotech/files/patch-sources_qgimanager.h  | 13 +++++++
 ...atch-sources_titleblock_templatescollection.cpp | 11 ++++++
 .../files/patch-sources_titleblock_templateview.h  | 11 ++++++
 .../files/patch-sources_titleblocktemplate.cpp     | 11 ++++++
 cad/qelectrotech/pkg-plist                         | 27 +++++++-------
 17 files changed, 265 insertions(+), 34 deletions(-)

diff --git a/cad/qelectrotech/Makefile b/cad/qelectrotech/Makefile
index 31a770f24257..5952242e195e 100644
--- a/cad/qelectrotech/Makefile
+++ b/cad/qelectrotech/Makefile
@@ -1,8 +1,13 @@
 PORTNAME=	qelectrotech
 DISTVERSION=	0.100
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	cad
 MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}-source-mirror/releases/download/${DISTVERSION}/
+DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
+
+PATCH_SITES=	https://github.com/${PORTNAME}/${PORTNAME}-source-mirror/commit/
+PATCHFILES=	d0cea474a6cc45b28114ba158061d42c0cfed484.patch:-p1
 
 MAINTAINER=	arrowd@FreeBSD.org
 COMMENT=	Application to design electric diagrams
@@ -11,30 +16,30 @@ WWW=		https://qelectrotech.org/
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libpugixml.so:textproc/pugixml
+BUILD_DEPENDS=	vulkan-headers>0:graphics/vulkan-headers
 
-USES=		desktop-file-utils gl kde:5 pkgconfig qmake qt:5 \
-		shared-mime-info sqlite
+USES=		cmake desktop-file-utils gl pkgconfig qt:6 \
+		shared-mime-info
 USE_GL=		gl
-USE_KDE=	coreaddons widgetsaddons
-USE_QT=		concurrent core gui network printsupport qmake sql sql-sqlite3 \
-		svg widgets xml buildtools:build
-
-ALL_TARGET=	${BUILD_TYPE}-all
+USE_QT=		base svg tools
 
-OPTIONS_DEFINE=	DEBUG
+USE_GITHUB=	nodefault
+GH_TUPLE=	catchorg:Catch2:v2.13.10:catch2/_deps/catch2-src \
+		google:googletest:v1.17.0:gtest/_deps/gtest-src \
+		zeux:pugixml:v1.11.4:pugixml/_deps/pugixml-src \
+		itay-grudev:SingleApplication:v3.2.0:SA/_deps/singleapplication-src
 
-DEBUG_VARS=	BUILD_TYPE=debug
-DEBUG_VARS_OFF=	BUILD_TYPE=release
+CMAKE_OFF=	BUILD_WITH_KF5
 
 pre-configure:
-	${REINPLACE_CMD} -e 's,/usr/local/,${PREFIX}/,g' \
-		${WRKSRC}/${PORTNAME}.pro
-	${REINPLACE_CMD} -e 's,doc/,share/doc/,g' \
-		${WRKSRC}/${PORTNAME}.pro
-	${REINPLACE_CMD} -e '/QET_MAN_PATH/s,man/,share/man/,g' \
-		${WRKSRC}/${PORTNAME}.pro
-	${REINPLACE_CMD} -e 's,../share,share,g' \
-		${WRKSRC}/${PORTNAME}.pro
+	@${MKDIR} ${BUILD_WRKSRC}
+	${MV} ${WRKSRC}/_deps ${BUILD_WRKSRC}
+
+post-install:
+	${RM} -r ${STAGEDIR}${PREFIX}/include/gmock \
+		${STAGEDIR}${PREFIX}/include/gtest \
+		${STAGEDIR}${PREFIX}/lib/cmake/GTest \
+		${STAGEDIR}${PREFIX}/lib/cmake/pugixml
+	${RMDIR} ${STAGEDIR}${PREFIX}/lib/cmake
 
 .include <bsd.port.mk>
diff --git a/cad/qelectrotech/distinfo b/cad/qelectrotech/distinfo
index e77e10ddf51a..becb4df4422d 100644
--- a/cad/qelectrotech/distinfo
+++ b/cad/qelectrotech/distinfo
@@ -1,3 +1,13 @@
-TIMESTAMP = 1771414224
+TIMESTAMP = 1791969655
 SHA256 (qelectrotech-0.100.tar.gz) = 2a658df42fa9f8be95bf6dafae2a53ab47962af8afb7043f78a018b7ca6b7310
 SIZE (qelectrotech-0.100.tar.gz) = 27383220
+SHA256 (catchorg-Catch2-v2.13.10_GH0.tar.gz) = d54a712b7b1d7708bc7a819a8e6e47b2fde9536f487b89ccbca295072a7d9943
+SIZE (catchorg-Catch2-v2.13.10_GH0.tar.gz) = 662225
+SHA256 (google-googletest-v1.17.0_GH0.tar.gz) = 65fab701d9829d38cb77c14acdc431d2108bfdbf8979e40eb8ae567edf10b27c
+SIZE (google-googletest-v1.17.0_GH0.tar.gz) = 885595
+SHA256 (zeux-pugixml-v1.11.4_GH0.tar.gz) = 017139251c122dbff400a507cddc4cb74120a431a50c6c524f30edcc5b331ade
+SIZE (zeux-pugixml-v1.11.4_GH0.tar.gz) = 566750
+SHA256 (itay-grudev-SingleApplication-v3.2.0_GH0.tar.gz) = 088cf1ca9e07546db280795d97703b15deea0ca69e9c01eef34412c665e37c57
+SIZE (itay-grudev-SingleApplication-v3.2.0_GH0.tar.gz) = 20640
+SHA256 (d0cea474a6cc45b28114ba158061d42c0cfed484.patch) = eac9f86ec28b96fd2e34c4246c6779e75fcef810ccfddf6476662b8af7859483
+SIZE (d0cea474a6cc45b28114ba158061d42c0cfed484.patch) = 8743
diff --git a/cad/qelectrotech/files/patch-CMakeLists.txt b/cad/qelectrotech/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..bbfaa5fd7ee2
--- /dev/null
+++ b/cad/qelectrotech/files/patch-CMakeLists.txt
@@ -0,0 +1,14 @@
+--- CMakeLists.txt.orig	2026-01-28 12:19:12 UTC
++++ CMakeLists.txt
+@@ -71,9 +71,9 @@ set(CMAKE_AUTOUIC_SEARCH_PATHS ${QET_DIR}/sources/ui)
+  REQUIRED)
+ 
+ set(CMAKE_AUTOUIC_SEARCH_PATHS ${QET_DIR}/sources/ui)
+-qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
++qt6_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
+ set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "${QET_DIR}/lang")
+-qt5_add_translation(QM_FILES ${TS_FILES})
++qt6_add_translation(QM_FILES ${TS_FILES})
+ 
+ # als laatse
+ include(cmake/define_definitions.cmake)
diff --git a/cad/qelectrotech/files/patch-sources_ElementsCollection_elementslocation.cpp b/cad/qelectrotech/files/patch-sources_ElementsCollection_elementslocation.cpp
new file mode 100644
index 000000000000..078ee01355c7
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_ElementsCollection_elementslocation.cpp
@@ -0,0 +1,25 @@
+--- sources/ElementsCollection/elementslocation.cpp.orig	2026-01-28 12:19:13 UTC
++++ sources/ElementsCollection/elementslocation.cpp
+@@ -802,18 +802,17 @@ bool ElementsLocation::setXml(const QDomDocument &xml_
+ #pragma message("@TODO remove code for QT 6 or later")
+ #		pragma message("@TODO ad Core5Compat to Cmake")
+ #endif
+-			qDebug() << "Help code for QT 6 or later";
+-
+ 			QString			   path_ = collectionPath(false);
+ 			QRegularExpression rx("^(.*)/(.*\\.elmt)$");
++			QRegularExpressionMatch match = rx.match(path_);
+ 
+-			if (rx.exactMatch(path_))
++			if (match.hasMatch())
+ 			{
+ 				return project()
+ 					->embeddedElementCollection()
+ 					->addElementDefinition(
+-						rx.cap(1),
+-						rx.cap(2),
++						match.captured(1),
++						match.captured(2),
+ 						xml_document.documentElement());
+ 			}
+ 			else
diff --git a/cad/qelectrotech/files/patch-sources_TerminalStrip_GraphicsItem_terminalstripdrawer.cpp b/cad/qelectrotech/files/patch-sources_TerminalStrip_GraphicsItem_terminalstripdrawer.cpp
new file mode 100644
index 000000000000..f4c5205ece01
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_TerminalStrip_GraphicsItem_terminalstripdrawer.cpp
@@ -0,0 +1,10 @@
+--- sources/TerminalStrip/GraphicsItem/terminalstripdrawer.cpp.orig	2026-01-28 12:19:13 UTC
++++ sources/TerminalStrip/GraphicsItem/terminalstripdrawer.cpp
+@@ -18,6 +18,7 @@
+ #include "terminalstripdrawer.h"
+ 
+ #include <QPainter>
++#include <QHash>
+ 
+ namespace TerminalStripDrawer {
+ 
diff --git a/cad/qelectrotech/files/patch-sources_TerminalStrip_physicalterminal.cpp b/cad/qelectrotech/files/patch-sources_TerminalStrip_physicalterminal.cpp
new file mode 100644
index 000000000000..e6cd0531d102
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_TerminalStrip_physicalterminal.cpp
@@ -0,0 +1,11 @@
+--- sources/TerminalStrip/physicalterminal.cpp.orig	2026-01-28 12:19:13 UTC
++++ sources/TerminalStrip/physicalterminal.cpp
+@@ -131,7 +131,7 @@ bool PhysicalTerminal::setLevelOf(const QSharedPointer
+ 	if (i >= 0)
+ 	{
+ #if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
+-		m_real_terminal.swapItemsAt(i, std::min(level, m_real_terminal.size()-1));
++		m_real_terminal.swapItemsAt(i, std::min<int>(level, static_cast<int>(m_real_terminal.size())-1));
+ #else
+ 		auto j = std::min(level, m_real_terminal.size()-1);
+ 		std::swap(m_real_terminal.begin()[i], m_real_terminal.begin()[j]);
diff --git a/cad/qelectrotech/files/patch-sources_TerminalStrip_terminalstrip.cpp b/cad/qelectrotech/files/patch-sources_TerminalStrip_terminalstrip.cpp
new file mode 100644
index 000000000000..4c87ef37c798
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_TerminalStrip_terminalstrip.cpp
@@ -0,0 +1,11 @@
+--- sources/TerminalStrip/terminalstrip.cpp.orig	2026-01-28 12:19:13 UTC
++++ sources/TerminalStrip/terminalstrip.cpp
+@@ -639,7 +639,7 @@ bool TerminalStrip::isBridgeable(const QVector<QShared
+ 		// Get the physical terminal and pos
+ 	auto first_physical_terminal = first_real_terminal->physicalTerminal();
+ 	QVector<shared_physical_terminal> physical_vector{first_physical_terminal};
+-	QVector<int> pos_vector{m_physical_terminals.indexOf(first_physical_terminal)};
++	QVector<int> pos_vector{static_cast<int>(m_physical_terminals.indexOf(first_physical_terminal))};
+ 
+ 	auto bridge_ = isBridged(first_real_terminal);
+ 		//bool to know at the end of this function if at least one terminal is not bridged
diff --git a/cad/qelectrotech/files/patch-sources_TerminalStrip_ui_terminalstripmodel.h b/cad/qelectrotech/files/patch-sources_TerminalStrip_ui_terminalstripmodel.h
new file mode 100644
index 000000000000..34bbe24a61a8
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_TerminalStrip_ui_terminalstripmodel.h
@@ -0,0 +1,13 @@
+--- sources/TerminalStrip/ui/terminalstripmodel.h.orig	2026-01-28 12:19:13 UTC
++++ sources/TerminalStrip/ui/terminalstripmodel.h
+@@ -29,8 +29,8 @@
+ #include "modelTerminalData.h"
+ 
+ //Code to use QColor as key for QHash
+-inline uint qHash(const QColor &key, uint seed) {
+-	return qHash(key.name(), seed);
++inline size_t qHash(const QColor &key, size_t seed = 0) {
++	return qHash(key.rgba(), seed);
+ }
+ 
+ //needed to use QPointer<Element> as key of QHash
diff --git a/cad/qelectrotech/files/patch-sources_editor_elementscene.cpp b/cad/qelectrotech/files/patch-sources_editor_elementscene.cpp
new file mode 100644
index 000000000000..1843674ee70a
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_editor_elementscene.cpp
@@ -0,0 +1,11 @@
+--- sources/editor/elementscene.cpp.orig	2026-01-28 12:19:13 UTC
++++ sources/editor/elementscene.cpp
+@@ -748,7 +748,7 @@ void ElementScene::removeItems(QVector<QGraphicsItem *
+  */
+ void ElementScene::removeItems(QVector<QGraphicsItem *> items)
+ {
+-	const int previous_selected_count{selectedItems().size()};
++	const int previous_selected_count{static_cast<int>(selectedItems().size())};
+ 
+ 		//block signal to avoid multiple emit of selection changed,
+ 		//we emit this signal only once at the end of this function.
diff --git a/cad/qelectrotech/files/patch-sources_machine__info.cpp b/cad/qelectrotech/files/patch-sources_machine__info.cpp
new file mode 100644
index 000000000000..06fceb8a40c6
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_machine__info.cpp
@@ -0,0 +1,38 @@
+--- sources/machine_info.cpp.orig	2026-01-28 12:19:13 UTC
++++ sources/machine_info.cpp
+@@ -188,10 +188,8 @@ void MachineInfo::send_info_to_debug()
+ 	QDirIterator it1(QETApp::commonElementsDir().toLatin1(),nameFilters,  QDir::Files, QDirIterator::Subdirectories);
+ 			while (it1.hasNext())
+ 			{
+-				if(it1.next() > 0 )
+-				{
++				it1.next();
+ 				commomElementsDir ++;
+-				}
+ 			}
+ 	qInfo()<< " Common Elements count:"<< commomElementsDir << "Elements";
+ 	
+@@ -200,10 +198,8 @@ void MachineInfo::send_info_to_debug()
+ 	QDirIterator it2(QETApp::customElementsDir().toLatin1(), nameFilters, QDir::Files, QDirIterator::Subdirectories);
+ 			while (it2.hasNext())
+ 			{
+-				if(it2.next() > 0 )
+-				{
++				it2.next();
+ 				customElementsDir ++;
+-				}
+ 			}
+ 	qInfo()<< " Custom Elements count:"<< customElementsDir << "Elements";
+ 	
+@@ -211,10 +207,8 @@ void MachineInfo::send_info_to_debug()
+ 	QDirIterator it3(QETApp::companyElementsDir().toLatin1(), nameFilters, QDir::Files, QDirIterator::Subdirectories);
+ 			while (it3.hasNext())
+ 			{
+-				if(it3.next() > 0 )
+-				{
++				it3.next();
+ 				companyElementsDir ++;
+-				}
+ 			}
+ 	qInfo()<< " Company Elements count:"<< companyElementsDir << "Elements";
+ 	
diff --git a/cad/qelectrotech/files/patch-sources_qetxml.h b/cad/qelectrotech/files/patch-sources_qetxml.h
new file mode 100644
index 000000000000..ff1334df882d
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_qetxml.h
@@ -0,0 +1,10 @@
+--- sources/qetxml.h.orig	2026-01-28 12:19:13 UTC
++++ sources/qetxml.h
+@@ -20,6 +20,7 @@
+ 
+ #include <QDomElement>
+ #include <QPen>
++#include <QUuid>
+ 
+ class QDomDocument;
+ class QDir;
diff --git a/cad/qelectrotech/files/patch-sources_qgimanager.cpp b/cad/qelectrotech/files/patch-sources_qgimanager.cpp
new file mode 100644
index 000000000000..d1d027defc01
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_qgimanager.cpp
@@ -0,0 +1,28 @@
+--- sources/qgimanager.cpp.orig	2026-01-28 12:19:13 UTC
++++ sources/qgimanager.cpp
+@@ -70,25 +70,6 @@ void QGIManager::release(QGraphicsItem *qgi) {
+ 	}
+ }
+ 
+-/**
+-	Demande au QGIManager de gerer plusieurs QGI
+-	@param qgis QGraphicsItems a gerer
+-*/
+-void QGIManager::manage(const QList<QGraphicsItem *> &qgis) {
+-	foreach(QGraphicsItem *qgi, qgis) manage(qgi);
+-}
+-
+-/**
+-	Indique au QGIManager que pour chaque QGI fourni, une reference vers celui-ci
+-	a ete detruite.
+-	S'il n'y a plus de references vers un QGI et que celui-ci n'est pas present
+-	sur la scene de ce QGIManager, alors il sera detruit.
+-	@param qgis QGraphicsItems a ne plus gerer
+-*/
+-void QGIManager::release(const QList<QGraphicsItem *> &qgis) {
+-	foreach(QGraphicsItem *qgi, qgis) release(qgi);
+-}
+-
+ void QGIManager::manage(const QVector<QGraphicsItem *> &items) {
+ 	for (const auto &qgi : items) {
+ 		manage(qgi);
diff --git a/cad/qelectrotech/files/patch-sources_qgimanager.h b/cad/qelectrotech/files/patch-sources_qgimanager.h
new file mode 100644
index 000000000000..a09c699ed969
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_qgimanager.h
@@ -0,0 +1,13 @@
+--- sources/qgimanager.h.orig	2026-01-28 12:19:13 UTC
++++ sources/qgimanager.h
+@@ -45,10 +45,6 @@ class QGIManager {
+ 	public:
+ 	void manage(QGraphicsItem *);
+ 	void release(QGraphicsItem *);
+-	QT_DEPRECATED_X("Use QGIManager::manage(const QVector<QGraphicsItem *> &) instead")
+-		void manage(const QList<QGraphicsItem *> &);
+-	QT_DEPRECATED_X("Use QGIManager::release(const QVector<QGraphicsItem *> &) instead")
+-		void release(const QList<QGraphicsItem *> &);
+ 	void manage(const QVector<QGraphicsItem *> &items);
+ 	void release(const QVector<QGraphicsItem *> &items);
+ 	void setDestroyQGIOnDelete(bool);
diff --git a/cad/qelectrotech/files/patch-sources_titleblock_templatescollection.cpp b/cad/qelectrotech/files/patch-sources_titleblock_templatescollection.cpp
new file mode 100644
index 000000000000..a09ed5744cef
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_titleblock_templatescollection.cpp
@@ -0,0 +1,11 @@
+--- sources/titleblock/templatescollection.cpp.orig	2026-01-28 12:19:13 UTC
++++ sources/titleblock/templatescollection.cpp
+@@ -454,7 +454,7 @@ QDomElement TitleBlockTemplatesFilesCollection::getTem
+ 	}
+ 
+ 	QDomDocument *xml_document = new QDomDocument();
+-	bool xml_parsing = xml_document -> setContent(&xml_file);
++	bool xml_parsing = static_cast<bool>(xml_document -> setContent(&xml_file));
+ 	if (!xml_parsing) {
+ 		delete xml_document;
+ 		return(QDomElement());
diff --git a/cad/qelectrotech/files/patch-sources_titleblock_templateview.h b/cad/qelectrotech/files/patch-sources_titleblock_templateview.h
new file mode 100644
index 000000000000..ceac0ad6d67e
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_titleblock_templateview.h
@@ -0,0 +1,11 @@
+--- sources/titleblock/templateview.h.orig	2026-01-28 12:19:13 UTC
++++ sources/titleblock/templateview.h
+@@ -20,6 +20,8 @@
+ #include "../titleblocktemplate.h"
+ 
+ #include <QGraphicsView>
++#include <QGraphicsGridLayout>
++#include <QGraphicsLayoutItem>
+ class HelperCell;
+ class SplittedHelperCell;
+ class TitleBlockTemplateCommand;
diff --git a/cad/qelectrotech/files/patch-sources_titleblocktemplate.cpp b/cad/qelectrotech/files/patch-sources_titleblocktemplate.cpp
new file mode 100644
index 000000000000..28d75323c71a
--- /dev/null
+++ b/cad/qelectrotech/files/patch-sources_titleblocktemplate.cpp
@@ -0,0 +1,11 @@
+--- sources/titleblocktemplate.cpp.orig	2026-01-28 12:19:13 UTC
++++ sources/titleblocktemplate.cpp
+@@ -103,7 +103,7 @@ bool TitleBlockTemplate::loadFromXmlFile(const QString
+ 
+ 	// parse its content as XML
+ 	QDomDocument xml_doc;
+-	bool xml_parsing = xml_doc.setContent(&template_file);
++	bool xml_parsing = static_cast<bool>(xml_doc.setContent(&template_file));
+ 	if (!xml_parsing) {
+ 		return(false);
+ 	}
diff --git a/cad/qelectrotech/pkg-plist b/cad/qelectrotech/pkg-plist
index c9fc07869dea..38f2e2ce515f 100644
--- a/cad/qelectrotech/pkg-plist
+++ b/cad/qelectrotech/pkg-plist
@@ -1,4 +1,16 @@
 bin/qelectrotech
+@comment include/pugiconfig.hpp
+@comment include/pugixml.hpp
+@comment lib/libgmock.a
+@comment lib/libgmock_main.a
+@comment lib/libgtest.a
+@comment lib/libgtest_main.a
+@comment lib/libpugixml.a
+@comment libdata/pkgconfig/gmock.pc
+@comment libdata/pkgconfig/gmock_main.pc
+@comment libdata/pkgconfig/gtest.pc
+@comment libdata/pkgconfig/gtest_main.pc
+@comment libdata/pkgconfig/pugixml.pc
 share/appdata/qelectrotech.appdata.xml
 share/applications/org.qelectrotech.qelectrotech.desktop
 %%DOCSDIR%%/CREDIT
@@ -34,20 +46,6 @@ share/icons/hicolor/64x64/apps/qelectrotech.png
 share/icons/hicolor/64x64/mimetypes/application-x-qet-element.png
 share/icons/hicolor/64x64/mimetypes/application-x-qet-project.png
 share/icons/hicolor/64x64/mimetypes/application-x-qet-titleblock.png
-share/man/be/man1/qelectrotech.1.gz
-share/man/ca/man1/qelectrotech.1.gz
-share/man/cs/man1/qelectrotech.1.gz
-share/man/el/man1/qelectrotech.1.gz
-share/man/es/man1/qelectrotech.1.gz
-share/man/fr.ISO8859-1/man1/qelectrotech.1.gz
-share/man/fr.UTF-8/man1/qelectrotech.1.gz
-share/man/fr/man1/qelectrotech.1.gz
-share/man/it/man1/qelectrotech.1.gz
-share/man/man1/qelectrotech.1.gz
-share/man/nl/man1/qelectrotech.1.gz
-share/man/pl/man1/qelectrotech.1.gz
-share/man/pt/man1/qelectrotech.1.gz
-share/man/ru/man1/qelectrotech.1.gz
 share/mime/packages/qelectrotech.xml
 %%DATADIR%%/elements/10_electric/10_allpole/100_folio_referencing/01coming_arrow.elmt
 %%DATADIR%%/elements/10_electric/10_allpole/100_folio_referencing/02going_arrow.elmt
@@ -9829,6 +9827,7 @@ share/mime/packages/qelectrotech.xml
 %%DATADIR%%/lang/qet_pt.qm
 %%DATADIR%%/lang/qet_pt_BR.qm
 %%DATADIR%%/lang/qet_ro.qm
+%%DATADIR%%/lang/qet_rs.qm
 %%DATADIR%%/lang/qet_ru.qm
 %%DATADIR%%/lang/qet_sk.qm
 %%DATADIR%%/lang/qet_sl.qm