forked from pool/libqt5-qtbase
019445abdd
- Add convenient macros for packages building against Qt5: %_libqt5_qmake, %qmake5, %make_jobs and %qmake5_install Please forward to 13.1, it would make life much easier for packagers that build Qt5 & 13.1 target (so they don't need to depend on :Update, or devel project) OBS-URL: https://build.opensuse.org/request/show/202161 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtbase?expand=0&rev=3
27 lines
988 B
Plaintext
27 lines
988 B
Plaintext
%_libqt5_prefix %{_prefix}
|
|
%_libqt5_libdir %{_libdir}
|
|
%_libqt5_archdatadir %{_libqt5_libdir}/qt5
|
|
%_libqt5_bindir %{_libqt5_archdatadir}/bin
|
|
%_libqt5_datadir %{_datadir}/qt5
|
|
%_libqt5_docdir %{_docdir}/qt5
|
|
%_libqt5_examplesdir %{_libqt5_archdatadir}/examples
|
|
%_libqt5_includedir %{_includedir}/qt5
|
|
%_libqt5_importdir %{_libqt5_archdatadir}/imports
|
|
%_libqt5_libexecdir %{_libqt5_archdatadir}/libexec
|
|
%_libqt5_plugindir %{_libqt5_archdatadir}/plugins
|
|
%_libqt5_sysconfdir %{_sysconfdir}/xdg
|
|
%_libqt5_translationdir %{_libqt5_datadir}/qt5/translations
|
|
|
|
%_libqt5_qmake %{_libqt5_bindir}/qmake
|
|
|
|
%qmake5 \
|
|
export PATH=%{_libqt5_bindir}:$PATH ; \
|
|
export CXXFLAGS="$CXXFLAGS %{optflags} -DOPENSSL_LOAD_CONF" ; \
|
|
export CFLAGS="$CFLAGS %{optflags} -DOPENSSL_LOAD_CONF" ; \
|
|
%_libqt5_qmake
|
|
|
|
%make_jobs \
|
|
%{__make} %{?_smp_mflags} VERBOSE=1
|
|
|
|
%qmake5_install \
|
|
make INSTALL_ROOT=%{buildroot} install |