Init qt6-qtnetworkauth
This commit is contained in:
parent
0968a207a0
commit
9937b455a5
100
qt6-qtnetworkauth.spec
Normal file
100
qt6-qtnetworkauth.spec
Normal file
@ -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 <xudong23@iscas.ac.cn> - 6.5.0-1
|
||||||
|
- update package
|
||||||
|
|
||||||
|
* Sat Nov 12 2022 Jingwiw <wangjingwei@iscas.ac.cn> - 6.4.0-1
|
||||||
|
- init package
|
||||||
4
qt6-qtnetworkauth.yaml
Normal file
4
qt6-qtnetworkauth.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: git
|
||||||
|
src_repo: https://code.qt.io/qt/qtnetworkauth.git
|
||||||
|
tag_prefix: "^v"
|
||||||
|
separator: "."
|
||||||
BIN
qtnetworkauth-everywhere-src-6.5.0.tar.xz
Normal file
BIN
qtnetworkauth-everywhere-src-6.5.0.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user