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