+%bcond_without doc # build handbooks
+
%define _state stable
%define orgname step
+%ifarch %{ix86}
+%undefine with_doc
+%endif
Summary: K Desktop Environment - Interactive Physical Simulator
Summary(pl.UTF-8): K Desktop Environment - interaktywny symulator fizyczny
Name: kde4-step
Version: 4.14.3
-Release: 8
+Release: 9
License: GPL
Group: X11/Applications/Graphics
Source0: http://download.kde.org/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
# Source0-md5: 9e021e50310f0e99bd621d57ab07b7ef
+Patch0: no-doc.patch
URL: http://www.kde.org/
BuildRequires: cln-devel
BuildRequires: eigen
%prep
%setup -q -n %{orgname}-%{version}
+%{!?with_doc:%patch0 -p1}
%build
install -d build
DESTDIR=$RPM_BUILD_ROOT \
kde_htmldir=%{_kdedocdir}
+%if %{with doc}
%find_lang %{orgname} --with-kde
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%files -f %{orgname}.lang
+%files %{?with_doc:-f %{orgname}.lang}
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/step
%{_datadir}/appdata/step.appdata.xml
--- /dev/null
+--- step-4.14.3/CMakeLists.txt~ 2014-10-14 08:53:43.000000000 +0200
++++ step-4.14.3/CMakeLists.txt 2021-12-03 21:50:37.335901045 +0100
+@@ -24,7 +24,6 @@
+ if (EIGEN2_FOUND)
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${EIGEN2_INCLUDE_DIR})
+
+- add_subdirectory(doc)
+ add_subdirectory(stepcore)
+ add_subdirectory(step)
+