diff --git a/qt6-qtnetworkauth.spec b/qt6-qtnetworkauth.spec new file mode 100644 index 0000000000000000000000000000000000000000..58a84275d5940eaeb6293cba2f53f6ad18424392 --- /dev/null +++ b/qt6-qtnetworkauth.spec @@ -0,0 +1,100 @@ + +%global qt_module qtnetworkauth + +%define short_version 6.5 + +Summary: Qt6 - NetworkAuth component +Name: qt6-%{qt_module} +Version: 6.5.0 +Release: 1 + +# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details +License: LGPLv2 with exceptions or GPLv3 with exceptions +Url: http://www.qt.io +%global majmin %(echo %{version} | cut -d. -f1-2) +%global qt_version %(echo %{version} | cut -d~ -f1) + +Source0: https://download.qt.io/official_releases/qt/%{short_version}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz + +# filter plugin/qml provides +%global __provides_exclude_from ^(%{_qt6_archdatadir}/qml/.*\\.so|%{_qt6_plugindir}/.*\\.so)$ + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: ninja-build +BuildRequires: qt6-qtbase-devel >= %{version} +BuildRequires: qt6-qtbase-private-devel +BuildRequires: pkgconfig(xkbcommon) >= 0.4.1 +%{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}} + +%description +%{summary} + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: qt6-qtbase-devel%{?_isa} +%description devel +%{summary}. + +%package examples +Summary: Programming examples for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description examples +%{summary}. + + +%prep +%autosetup -n %{qt_module}-everywhere-src-%{qt_version} -p1 + + +%build +%cmake_qt6 +cmake --build . %{?_smp_mflags} --verbose + + +%install +DESTDIR="%{buildroot}" cmake --install . + + +## .prl/.la file love +# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs +pushd %{buildroot}%{_qt6_libdir} +for prl_file in libQt6*.prl ; do + sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file} + if [ -f "$(basename ${prl_file} .prl).so" ]; then + rm -fv "$(basename ${prl_file} .prl).la" + sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file} + fi +done +popd + + +%ldconfig_scriptlets + +%files +%license LICENSES/GPL* +%{_qt6_libdir}/libQt6NetworkAuth.so.6* + +%files devel +%{_qt6_headerdir}/QtNetworkAuth/ +%{_qt6_libdir}/libQt6NetworkAuth.so +%{_qt6_libdir}/libQt6NetworkAuth.prl +%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtNetworkAuthTestsConfig.cmake +%dir %{_qt6_libdir}/cmake/Qt6NetworkAuth/ +%{_qt6_libdir}/cmake/Qt6NetworkAuth/*.cmake +%{_qt6_archdatadir}/mkspecs/modules/qt_lib_networkauth*.pri +%{_qt6_archdatadir}/modules/*.json +%{_qt6_archdatadir}/metatypes/qt6*_metatypes.json +%{_qt6_libdir}/pkgconfig/*.pc + +%files examples +%{_qt6_examplesdir}/ + + +%changelog +* Fri May 5 2023 EastDong - 6.5.0-1 +- update package + +* Sat Nov 12 2022 Jingwiw - 6.4.0-1 +- init package \ No newline at end of file diff --git a/qt6-qtnetworkauth.yaml b/qt6-qtnetworkauth.yaml new file mode 100644 index 0000000000000000000000000000000000000000..920eff8ae80460758ab6364e9126d22417b48b11 --- /dev/null +++ b/qt6-qtnetworkauth.yaml @@ -0,0 +1,4 @@ +version_control: git +src_repo: https://code.qt.io/qt/qtnetworkauth.git +tag_prefix: "^v" +separator: "." diff --git a/qtnetworkauth-everywhere-src-6.5.0.tar.xz b/qtnetworkauth-everywhere-src-6.5.0.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..3db1b94fac9679ae2d55363453c2170b1d802563 Binary files /dev/null and b/qtnetworkauth-everywhere-src-6.5.0.tar.xz differ