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: http://download.qt.io/official_releases/qt/5.12/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
22 # Source0-md5: bc8f9a2e8e30476ba613c020f811c95c
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: rpmbuild(macros) >= 1.752
32 BuildRequires: tar >= 1:1.22
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define specflags -fno-strict-aliasing
37 %define qt5dir %{_libdir}/qt5
40 Qt is a cross-platform application and UI framework. Using Qt, you can
41 write web-enabled applications once and deploy them across desktop,
42 mobile and embedded systems without rewriting the source code.
44 This package contains Qt5 Network Auth library.
46 %description -l pl.UTF-8
47 Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika.
48 Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w
49 systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu
52 Ten pakiet zawiera bibliotekę Qt5 Network Auth.
54 %package -n Qt5NetworkAuth
55 Summary: The Qt5 Network Auth library
56 Summary(pl.UTF-8): Biblioteka Qt5 Network Auth
58 Requires: Qt5Core >= %{qtbase_ver}
59 Requires: Qt5Network >= %{qtbase_ver}
61 %description -n Qt5NetworkAuth
62 Qt5 Network Auth library provides classes for network authentication.
64 %description -n Qt5NetworkAuth -l pl.UTF-8
65 Biblioteka Qt5 Network Auth dostarcza klasy do uwierzytelniania w
68 %package -n Qt5NetworkAuth-devel
69 Summary: Qt5 Network Auth library - development files
70 Summary(pl.UTF-8): Biblioteka Qt5 Network Auth - pliki programistyczne
71 Group: Development/Libraries
72 Requires: Qt5Core-devel >= %{qtbase_ver}
73 Requires: Qt5Network-devel >= %{qtbase_ver}
74 Requires: Qt5NetworkAuth = %{version}-%{release}
76 %description -n Qt5NetworkAuth-devel
77 Qt5 Network Auth library - development files.
79 %description -n Qt5NetworkAuth-devel -l pl.UTF-8
80 Biblioteka Qt5 NetworkAuth - pliki programistyczne.
83 Summary: Qt5 Network Auth documentation in HTML format
84 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Network Auth w formacie HTML
87 Requires: qt5-doc-common >= %{qtbase_ver}
91 Qt5 Network Auth documentation in HTML format.
93 %description doc -l pl.UTF-8
94 Dokumentacja do biblioteki Qt5 Netwok Auth w formacie HTML.
97 Summary: Qt5 Network Auth documentation in QCH format
98 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Network Auth w formacie QCH
101 Requires: qt5-doc-common >= %{qtbase_ver}
105 Qt5 Network Auth documentation in QCH format.
107 %description doc-qch -l pl.UTF-8
108 Dokumentacja do biblioteki Qt5 Network Auth w formacie QCH.
111 Summary: Qt5 Network Auth examples
112 Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Network Auth
113 License: BSD or commercial
114 Group: X11/Development/Libraries
117 %description examples
118 Qt5 Network Auth examples.
120 %description examples -l pl.UTF-8
121 Przykłady do biblioteki Qt5 Network Auth.
124 %setup -q -n %{orgname}-everywhere-src-%{version}
129 %{?with_doc:%{__make} docs}
132 rm -rf $RPM_BUILD_ROOT
135 INSTALL_ROOT=$RPM_BUILD_ROOT
138 %{__make} install_docs \
139 INSTALL_ROOT=$RPM_BUILD_ROOT
143 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.??
144 # actually drop *.la, follow policy of not packaging them when *.pc exist
145 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
147 # Prepare some files list
149 r="$RPM_BUILD_ROOT$2"
151 echo "%%dir $2" >> $1.files
152 elif [ -x "$r" ] ; then
153 echo "%%attr(755,root,root) $2" >> $1.files
154 elif [ -f "$r" ]; then
155 echo "$2" >> $1.files
157 echo "Error generation $1 files list!"
158 echo "$r: no such file or directory!"
164 for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do
169 echo "%defattr(644,root,root,755)" > examples.files
170 ifecho_tree examples %{_examplesdir}/qt5/oauth
173 rm -rf $RPM_BUILD_ROOT
175 %post -n Qt5NetworkAuth -p /sbin/ldconfig
176 %postun -n Qt5NetworkAuth -p /sbin/ldconfig
178 %files -n Qt5NetworkAuth
179 %defattr(644,root,root,755)
180 %doc LICENSE.GPL3-EXCEPT dist/changes-*
181 %attr(755,root,root) %{_libdir}/libQt5NetworkAuth.so.*.*.*
182 %attr(755,root,root) %ghost %{_libdir}/libQt5NetworkAuth.so.5
184 %files -n Qt5NetworkAuth-devel
185 %defattr(644,root,root,755)
186 %attr(755,root,root) %{_libdir}/libQt5NetworkAuth.so
187 %{_libdir}/libQt5NetworkAuth.prl
188 %{_includedir}/qt5/QtNetworkAuth
189 %{_libdir}/cmake/Qt5NetworkAuth
190 %{_pkgconfigdir}/Qt5NetworkAuth.pc
191 %{_libdir}/qt5/mkspecs/modules/qt_lib_networkauth.pri
192 %{_libdir}/qt5/mkspecs/modules/qt_lib_networkauth_private.pri
196 %defattr(644,root,root,755)
197 %{_docdir}/qt5-doc/qtnetworkauth
200 %defattr(644,root,root,755)
201 %{_docdir}/qt5-doc/qtnetworkauth.qch
204 %files examples -f examples.files
205 %defattr(644,root,root,755)
206 # XXX: dir shared with qt5-qtbase-examples
207 %dir %{_examplesdir}/qt5