diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d4d865f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/qtnetworkauth-everywhere-src-6.0.0.tar.xz diff --git a/qt6-qtnetworkauth.spec b/qt6-qtnetworkauth.spec new file mode 100644 index 0000000..62e29b7 --- /dev/null +++ b/qt6-qtnetworkauth.spec @@ -0,0 +1,90 @@ +%global qt_module qtnetworkauth + +Summary: Qt6 - NetworkAuth component +Name: qt6-%{qt_module} +Version: 6.0.0 +Release: 1%{?dist} + +# 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) +Source0: https://download.qt.io/official_releases/additional_libraries/%{qt_module}/%{majmin}/%{version}/%{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 +%{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}} +BuildRequires: pkgconfig(xkbcommon) >= 0.4.1 + +%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-%{version} -p1 + + +%build +%cmake_qt6 + +%cmake_build + +%install +%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 LICENSE.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_datadir}/modules/*.json + +%files examples +%{_qt6_examplesdir}/ + + +%changelog +* Mon Jan 18 2021 Jan Grulich - 6.0.0-1 +- 6.0.0 diff --git a/sources b/sources new file mode 100644 index 0000000..4447dfb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (qtnetworkauth-everywhere-src-6.0.0.tar.xz) = 8d0c4a0da7267f8d00b7964841ebe574a353f40af12bf024db62f23195887d72660c0d18e72775031d90924950236c5239d2db68bec644c5727b0dd388f50d44