SampleSpecs/qt4program

Материал из ALT Linux Wiki

Для случая с использованием cmake:

# ...
BuildPreReq: cmake rpm-macros-cmake
BuildRequires: libqt4-devel ...
# ...

%build
export PATH=$PATH:%_qt4dir/bin
%cmake_insource
%make_build

%install
export PATH=$PATH:%_qt4dir/bin
pushd build
%makeinstall_std
popd
%find_lang %name