build -examples only if supported

This commit is contained in:
Rex Dieter 2014-01-27 07:00:54 -06:00
parent 1c4be2ac08
commit ac580fb234

View File

@ -8,7 +8,7 @@
Summary: Qt5 - Multimedia support Summary: Qt5 - Multimedia support
Name: qt5-%{qt_module} Name: qt5-%{qt_module}
Version: 5.2.0 Version: 5.2.0
Release: 2%{?dist} Release: 3%{?dist}
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License: LGPLv2 with exceptions or GPLv3 with exceptions License: LGPLv2 with exceptions or GPLv3 with exceptions
@ -140,11 +140,16 @@ rm -fv %{buildroot}%{_qt5_libdir}/lib*.la
%{_qt5_docdir}/qtmultimediawidgets/ %{_qt5_docdir}/qtmultimediawidgets/
%endif %endif
%if 0%{?_qt5_examplesdir:1}
%files examples %files examples
%{_qt5_examplesdir}/ %{_qt5_examplesdir}/
%endif
%changelog %changelog
* Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-3
- build -examples only if supported
* Sun Jan 26 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2 * Sun Jan 26 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
- -examples subpkg - -examples subpkg