Add examples

epel9
Jan Grulich 1 year ago
parent 1f3cb738a2
commit a5e14c2c43

@ -1,6 +1,8 @@
%global qt_module qt5compat %global qt_module qt5compat
%global examples 1
#global unstable 1 #global unstable 1
%if 0%{?unstable} %if 0%{?unstable}
%global prerelease rc2 %global prerelease rc2
@ -48,13 +50,21 @@ Requires: qt6-qtbase-devel%{?_isa}
%description devel %description devel
%{summary}. %{summary}.
%if 0%{?examples}
%package examples
Summary: Programming examples for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description examples
%{summary}.
%endif
%prep %prep
%autosetup -n %{qt_module}-everywhere-src-%{qt_version}%{?unstable:-%{prerelease}} -p1 %autosetup -n %{qt_module}-everywhere-src-%{qt_version}%{?unstable:-%{prerelease}} -p1
%build %build
%cmake_qt6 %cmake_qt6 -DQT_BUILD_EXAMPLES:BOOL=%{?examples:ON}%{!?examples:OFF}
%cmake_build %cmake_build
@ -97,6 +107,11 @@ popd
%{_qt6_libdir}/qt6/metatypes/qt6*_metatypes.json %{_qt6_libdir}/qt6/metatypes/qt6*_metatypes.json
%{_qt6_libdir}/pkgconfig/*.pc %{_qt6_libdir}/pkgconfig/*.pc
%if 0%{?examples}
%files examples
%{_qt6_examplesdir}/
%endif
%changelog %changelog
* Mon Nov 27 2023 Jan Grulich <jgrulich@redhat.com> - 6.6.1-1 * Mon Nov 27 2023 Jan Grulich <jgrulich@redhat.com> - 6.6.1-1
- 6.6.1 - 6.6.1

Loading…
Cancel
Save