[packages/libqtxdg] - up to 4.3.0
mrozowik
mrozowik at pld-linux.org
Thu Dec 11 01:27:33 CET 2025
commit a05bf35e3dd3d93b66f97cc769e5613b92542a29
Author: Krzysztof Mrozowicz <mrozowik at pld-linux.org>
Date: Thu Dec 11 00:27:21 2025 +0000
- up to 4.3.0
deprecated.patch | 57 ---------------------------------------
dirs.patch | 37 -------------------------
include_dir.patch | 11 --------
libqtxdg.spec | 81 ++++++++++++++++++++++++++++++-------------------------
4 files changed, 44 insertions(+), 142 deletions(-)
---
diff --git a/libqtxdg.spec b/libqtxdg.spec
index 03f8f91..d377ae8 100644
--- a/libqtxdg.spec
+++ b/libqtxdg.spec
@@ -1,38 +1,46 @@
-%define qtver 5.3.1
+%define qtver 6.6.0
-Summary: libqtxdg
+Summary: QtXdg, a Qt6 implementation of XDG standards
+Summary(pl.UTF-8): QtXdg, implementacja standardów XDG w Qt6
Name: libqtxdg
-Version: 2.0.0
+Version: 4.3.0
Release: 1
License: GPLv2 and LGPL-2.1+
Group: X11/Libraries
-Source0: http://downloads.lxqt.org/libqtxdg/%{version}/%{name}-%{version}.tar.xz
-# Source0-md5: a5683d77db13c6e86b6b578050c6f435
+Source0: https://github.com/lxqt/libqtxdg/releases/download/%{version}/%{name}-%{version}.tar.xz
+# Source0-md5: dd6d86167ea86213d00dd82ec7ac88bb
URL: http://www.lxqt.org/
-BuildRequires: Qt5Core-devel >= %{qtver}
-BuildRequires: Qt5DBus-devel >= %{qtver}
-BuildRequires: Qt5Gui-devel >= %{qtver}
-BuildRequires: Qt5Widgets-devel >= %{qtver}
-BuildRequires: Qt5Xml-devel >= %{qtver}
-BuildRequires: cmake >= 2.8.3
-BuildRequires: libmagic-devel
-BuildRequires: qt5-build >= %{qtver}
-BuildRequires: qt5-linguist >= %{qtver}
+BuildRequires: Qt6Core-devel >= %{qtver}
+BuildRequires: Qt6DBus-devel >= %{qtver}
+BuildRequires: Qt6Gui-devel >= %{qtver}
+BuildRequires: Qt6Svg-devel >= %{qtver}
+BuildRequires: Qt6Widgets-devel >= %{qtver}
+BuildRequires: Qt6Xml-devel >= %{qtver}
+BuildRequires: cmake >= 3.18.0
+BuildRequires: glib2-devel >= 1:2.41.0
+BuildRequires: lxqt-build-tools >= 2.3.0
+BuildRequires: xterm
BuildRequires: xz-devel
Obsoletes: razor-qt
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-libqtxdg.
+QtXdg, a Qt6 implementation of XDG standards.
+
+%description -l pl.UTF-8
+QtXdg, implementacja standardów XDG w Qt6
%package devel
Summary: libqtxdg - header files and development documentation
-Summary(pl.UTF-8): libqtxdg - pliki nagłówkowe i dokumentacja do kdelibs
+Summary(pl.UTF-8): libqtxdg - pliki nagłówkowe i dokumentacja
Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: Qt5Core-devel >= %{qtver}
-Requires: Qt5Gui-devel >= %{qtver}
-Requires: Qt5Xml-devel >= %{qtver}
+Requires: Qt6Core-devel >= %{qtver}
+Requires: Qt6DBus-devel >= %{qtver}
+Requires: Qt6Gui-devel >= %{qtver}
+Requires: Qt6Svg-devel >= %{qtver}
+Requires: Qt6Widgets-devel >= %{qtver}
+Requires: Qt6Xml-devel >= %{qtver}
Obsoletes: razor-qt-devel
%description devel
@@ -47,13 +55,9 @@ pisaniu własnych programów wykorzystujących libqtxdg.
%setup -q
%build
-install -d build
-cd build
-%cmake \
- -DUSE_QT5=ON \
- ../
+%cmake -B build
-%{__make}
+%{__make} -C build
%install
rm -rf $RPM_BUILD_ROOT
@@ -69,18 +73,21 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libQt5Xdg.so.2.*.*
-%ghost %{_libdir}/libQt5Xdg.so.2
-%attr(755,root,root) %{_libdir}/libQt5XdgIconLoader.so.2.*.*
-%ghost %{_libdir}/libQt5XdgIconLoader.so.2
+/etc/xdg/lxqt-qtxdg.conf
+/etc/xdg/qtxdg.conf
+%{_libdir}/libQt6Xdg.so.4.*.*
+%ghost %{_libdir}/libQt6Xdg.so.4
+%{_libdir}/libQt6XdgIconLoader.so.4.*.*
+%ghost %{_libdir}/libQt6XdgIconLoader.so.4
+%{_libdir}/qt6/plugins/iconengines/libQt6XdgIconPlugin.so
%files devel
%defattr(644,root,root,755)
-%{_includedir}/qt5xdg
-%{_includedir}/qt5xdgiconloader
-%attr(755,root,root) %{_libdir}/libQt5Xdg.so
-%attr(755,root,root) %{_libdir}/libQt5XdgIconLoader.so
-%{_datadir}/cmake/qt5xdg
-%{_datadir}/cmake/qt5xdgiconloader
-%{_pkgconfigdir}/Qt5Xdg.pc
-%{_pkgconfigdir}/Qt5XdgIconLoader.pc
+%{_includedir}/qt6xdg
+%{_includedir}/qt6xdgiconloader
+%{_libdir}/libQt6Xdg.so
+%{_libdir}/libQt6XdgIconLoader.so
+%{_datadir}/cmake/qt6xdg
+%{_datadir}/cmake/qt6xdgiconloader
+%{_pkgconfigdir}/Qt6Xdg.pc
+%{_pkgconfigdir}/Qt6XdgIconLoader.pc
diff --git a/deprecated.patch b/deprecated.patch
deleted file mode 100644
index e4e33c2..0000000
--- a/deprecated.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-commit bf8e805ebe20bc0ee4048db60cd68784a6c7dffc
-Author: Luís Pereira <luis.artur.pereira at gmail.com>
-Date: Thu May 8 16:23:14 2014 -0700
-
- Adds QTXDG_DEPRECATED macro
-
- Signed-off-by: Luís Pereira <luis.artur.pereira at gmail.com>
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 3b2bae6..e7e7793 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -82,6 +82,7 @@ set(libqtxdg_PUBLIC_H_FILES
- xdgmime.h
- xmlhelper.h
- xdgautostart.h
-+ xdgmacros.h
- )
-
- set(libqtxdg_PUBLIC_CLASSES
-diff --git a/xdgmacros.h b/xdgmacros.h
-new file mode 100644
-index 0000000..8ad12d2
---- /dev/null
-+++ b/xdgmacros.h
-@@ -0,0 +1,31 @@
-+/*
-+ * libqtxdg - An Qt implementation of freedesktop.org xdg specs
-+ * Copyright (C) 2014 Luís Pereira <luis.artur.pereira at gmail.com>
-+ *
-+ * This library is free software; you can redistribute it and/or
-+ * modify it under the terms of the GNU Lesser General Public
-+ * License as published by the Free Software Foundation; either
-+ * version 2.1 of the License, or (at your option) any later version.
-+ *
-+ * This library 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
-+ * Lesser General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU Lesser General Public
-+ * License along with this library; if not, write to the Free Software
-+ * Foundation, Inc., 51 Franklin Street, Fifth Floor,
-+ * Boston, MA 02110-1301 USA
-+ */
-+
-+#ifndef QTXDG_MACROS_H
-+#define QTXDG_MACROS_H
-+
-+#ifdef __cplusplus
-+# include <QtCore/qglobal.h>
-+# ifndef QTXDG_DEPRECATED
-+# define QTXDG_DEPRECATED Q_DECL_DEPRECATED
-+# endif
-+#endif
-+
-+#endif // QTXDG_MACROS_H
diff --git a/dirs.patch b/dirs.patch
deleted file mode 100644
index c1a4386..0000000
--- a/dirs.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-commit ef68d9acc1df9584f183f1434a5bebc53e565dc7
-Author: Hong Jen Yee (PCMan) <pcman.tw at gmail.com>
-Date: Thu May 8 23:53:49 2014 +0800
-
- Set library dirs properly in qtxdg-config and use files.
-
-diff --git a/cmake/qtxdg-config.cmake.in b/cmake/qtxdg-config.cmake.in
-index edb408b..e8b481d 100644
---- a/cmake/qtxdg-config.cmake.in
-+++ b/cmake/qtxdg-config.cmake.in
-@@ -7,6 +7,8 @@
- #
- # QTXDG_INCLUDE_DIRS - The QtXdg include directory
- #
-+# QTXDG_LIBRARY_DIRS - The QtXdg library directory
-+#
- # QTXDG_LIBRARIES - The libraries needed to use QtXdg
- #
- # QTXDG_USE_FILE - The variable QTXDG_USE_FILE is set which is the path
-@@ -35,6 +37,8 @@ set(QTXDG_LIBRARY @QTXDGX_LIBRARY_NAME@)
- set(QTXDG_LIBRARIES ${QTXDG_LIBRARY})
- set(QTXDG_INCLUDE_DIRS ${QTXDG_INCLUDE_DIR})
-
-+set(QTXDG_LIBRARY_DIRS @CMAKE_INSTALL_FULL_LIBDIR@)
-+
- set(QTXDG_USE_FILE ${CMAKE_CURRENT_LIST_DIR}/@QTXDGX_FILE_NAME at _use.cmake)
- set(QTXDG_FOUND 1)
-
-diff --git a/cmake/qtxdg_use.cmake b/cmake/qtxdg_use.cmake
-index a5a3210..93c93a6 100644
---- a/cmake/qtxdg_use.cmake
-+++ b/cmake/qtxdg_use.cmake
-@@ -8,3 +8,4 @@ include(${QT_USE_FILE})
- set(QTXDG_QT_LIBRARIES ${QT_LIBRARIES})
-
- include_directories(${QTXDG_INCLUDE_DIRS})
-+link_directories(${QTXDG_LIBRARY_DIRS})
diff --git a/include_dir.patch b/include_dir.patch
deleted file mode 100644
index 7ef5297..0000000
--- a/include_dir.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- libqtxdg-1.1.0/CMakeLists.txt.orig 2015-03-11 22:49:12.244265879 +0100
-+++ libqtxdg-1.1.0/CMakeLists.txt 2015-03-11 22:50:22.263886550 +0100
-@@ -225,7 +225,7 @@ configure_file(
- )
-
- # Instalable ...............................
--set(QTXDG_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/${QTXDGX_FILE_NAME})
-+set(QTXDG_INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR}/${QTXDGX_FILE_NAME})
-
- configure_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/cmake/qtxdg-config.cmake.in
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libqtxdg.git/commitdiff/a05bf35e3dd3d93b66f97cc769e5613b92542a29
More information about the pld-cvs-commit
mailing list