3 %bcond_with bootstrap # disable features to able to build without installed qt5
4 %bcond_without doc # documentation
10 %define orgname qtnetworkauth
11 %define qtbase_ver %{version}
12 %define qtdeclarative_ver %{version}
13 %define qttools_ver 5.9
14 Summary: The Qt5 Network Auth library
15 Summary(pl.UTF-8): Biblioteka Qt5 Network Auth
19 License: GPL v3 or commercial
21 Source0: https://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
22 # Source0-md5: a23c82ae0527d5bdde61882cabac1f01
23 URL: https://www.qt.io/
24 BuildRequires: Qt5Core-devel >= %{qtbase_ver}
25 BuildRequires: Qt5Network-devel >= %{qtbase_ver}
27 BuildRequires: qt5-assistant >= %{qttools_ver}
29 BuildRequires: qt5-build >= %{qtbase_ver}
30 BuildRequires: qt5-qmake >= %{qtbase_ver}
31 BuildRequires: rpm-build >= 4.6
32 BuildRequires: rpmbuild(macros) >= 1.752
33 BuildRequires: tar >= 1:1.22
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define specflags -fno-strict-aliasing
38 %define qt5dir %{_libdir}/qt5
41 Qt is a cross-platform application and UI framework. Using Qt, you can
42 write web-enabled applications once and deploy them across desktop,
43 mobile and embedded systems without rewriting the source code.
45 This package contains Qt5 Network Auth library.
47 %description -l pl.UTF-8
48 Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika.
49 Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w
50 systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu
53 Ten pakiet zawiera bibliotekę Qt5 Network Auth.
55 %package -n Qt5NetworkAuth
56 Summary: The Qt5 Network Auth library
57 Summary(pl.UTF-8): Biblioteka Qt5 Network Auth
59 Requires: Qt5Core >= %{qtbase_ver}
60 Requires: Qt5Network >= %{qtbase_ver}
62 %description -n Qt5NetworkAuth
63 Qt5 Network Auth library provides classes for network authentication.
65 %description -n Qt5NetworkAuth -l pl.UTF-8
66 Biblioteka Qt5 Network Auth dostarcza klasy do uwierzytelniania w
69 %package -n Qt5NetworkAuth-devel
70 Summary: Qt5 Network Auth library - development files
71 Summary(pl.UTF-8): Biblioteka Qt5 Network Auth - pliki programistyczne
72 Group: Development/Libraries
73 Requires: Qt5Core-devel >= %{qtbase_ver}
74 Requires: Qt5Network-devel >= %{qtbase_ver}
75 Requires: Qt5NetworkAuth = %{version}-%{release}
77 %description -n Qt5NetworkAuth-devel
78 Qt5 Network Auth library - development files.
80 %description -n Qt5NetworkAuth-devel -l pl.UTF-8
81 Biblioteka Qt5 NetworkAuth - pliki programistyczne.
84 Summary: Qt5 Network Auth documentation in HTML format
85 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Network Auth w formacie HTML
88 Requires: qt5-doc-common >= %{qtbase_ver}
92 Qt5 Network Auth documentation in HTML format.
94 %description doc -l pl.UTF-8
95 Dokumentacja do biblioteki Qt5 Netwok Auth w formacie HTML.
98 Summary: Qt5 Network Auth documentation in QCH format
99 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Network Auth w formacie QCH
102 Requires: qt5-doc-common >= %{qtbase_ver}
106 Qt5 Network Auth documentation in QCH format.
108 %description doc-qch -l pl.UTF-8
109 Dokumentacja do biblioteki Qt5 Network Auth w formacie QCH.
112 Summary: Qt5 Network Auth examples
113 Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Network Auth
114 License: BSD or commercial
115 Group: X11/Development/Libraries
118 %description examples
119 Qt5 Network Auth examples.
121 %description examples -l pl.UTF-8
122 Przykłady do biblioteki Qt5 Network Auth.
125 %setup -q -n %{orgname}-everywhere-src-%{version}
131 %{?with_doc:%{__make} docs}
134 rm -rf $RPM_BUILD_ROOT
137 INSTALL_ROOT=$RPM_BUILD_ROOT
140 %{__make} install_docs \
141 INSTALL_ROOT=$RPM_BUILD_ROOT
145 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.??
146 # actually drop *.la, follow policy of not packaging them when *.pc exist
147 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
149 # Prepare some files list
151 r="$RPM_BUILD_ROOT$2"
153 echo "%%dir $2" >> $1.files
154 elif [ -x "$r" ] ; then
155 echo "%%attr(755,root,root) $2" >> $1.files
156 elif [ -f "$r" ]; then
157 echo "$2" >> $1.files
159 echo "Error generation $1 files list!"
160 echo "$r: no such file or directory!"
166 for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do
171 echo "%defattr(644,root,root,755)" > examples.files
172 ifecho_tree examples %{_examplesdir}/qt5/oauth
175 rm -rf $RPM_BUILD_ROOT
177 %post -n Qt5NetworkAuth -p /sbin/ldconfig
178 %postun -n Qt5NetworkAuth -p /sbin/ldconfig
180 %files -n Qt5NetworkAuth
181 %defattr(644,root,root,755)
182 %doc LICENSE.GPL3-EXCEPT dist/changes-*
183 %attr(755,root,root) %{_libdir}/libQt5NetworkAuth.so.*.*.*
184 %attr(755,root,root) %ghost %{_libdir}/libQt5NetworkAuth.so.5
186 %files -n Qt5NetworkAuth-devel
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_libdir}/libQt5NetworkAuth.so
189 %{_libdir}/libQt5NetworkAuth.prl
190 %{_includedir}/qt5/QtNetworkAuth
191 %{_libdir}/cmake/Qt5NetworkAuth
192 %{_pkgconfigdir}/Qt5NetworkAuth.pc
193 %{_libdir}/qt5/mkspecs/modules/qt_lib_networkauth.pri
194 %{_libdir}/qt5/mkspecs/modules/qt_lib_networkauth_private.pri
198 %defattr(644,root,root,755)
199 %{_docdir}/qt5-doc/qtnetworkauth
202 %defattr(644,root,root,755)
203 %{_docdir}/qt5-doc/qtnetworkauth.qch
206 %files examples -f examples.files
207 %defattr(644,root,root,755)
208 # XXX: dir shared with qt5-qtbase-examples
209 %dir %{_examplesdir}/qt5