]> git.pld-linux.org Git - packages/kde4-kig.git/commitdiff
- disable doc on ix86, qt4 meinproc is broken, rel 12 master auto/th/kde4-kig-4.14.3-12
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 23 Jan 2022 16:21:34 +0000 (17:21 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 23 Jan 2022 16:21:34 +0000 (17:21 +0100)
kde4-kig.spec
no-doc.patch [new file with mode: 0644]

index 60b53f0997f5066d09fe0df174c325cb1601be9b..451c36d08b27dc284d6ea902fd6afbd4a3ff78d8 100644 (file)
@@ -1,15 +1,21 @@
+%bcond_without doc             # build handbooks
+
 %define                _state          stable
 %define                orgname         kig
 
+%ifarch %{ix86}
+%undefine      with_doc
+%endif
 Summary:       K Desktop Environment - Interactive Geometry
 Summary(pl.UTF-8):     K Desktop Environment - Interaktywna geometria
 Name:          kde4-kig
 Version:       4.14.3
-Release:       11
+Release:       12
 License:       GPL v2+
 Group:         X11/Applications/Science
 Source0:       http://download.kde.org/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
 # Source0-md5: 2bc36c90f19b9fbebd7b3c7ac563acb3
+Patch0:                no-doc.patch
 URL:           http://www.kde.org/
 BuildRequires: automoc4
 BuildRequires: boost-python-devel
@@ -38,6 +44,7 @@ Kig to aplikacja do interaktywnej geometrii. Ma służyć dwóm celom:
 
 %prep
 %setup -q -n %{orgname}-%{version}
+%{!?with_doc:%patch0 -p1}
 
 %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' pykig/pykig.py
 
@@ -56,12 +63,14 @@ rm -rf $RPM_BUILD_ROOT
        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}/kig
 %attr(755,root,root) %{_bindir}/pykig.py
@@ -74,7 +83,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_iconsdir}/hicolor/scalable/apps/kig.svgz
 %{_iconsdir}/hicolor/*x*/mimetypes/application-x-kig.png
 %{_iconsdir}/hicolor/scalable/mimetypes/application-x-kig.svgz
-%{_mandir}/man1/kig.1*
+%{?with_doc:%{_mandir}/man1/kig.1*}
 
 # subpackage?
 %{_datadir}/apps/katepart/syntax/python-kig.xml
diff --git a/no-doc.patch b/no-doc.patch
new file mode 100644 (file)
index 0000000..87249af
--- /dev/null
@@ -0,0 +1,10 @@
+--- kig-4.14.3/CMakeLists.txt~ 2014-10-25 04:44:23.000000000 +0200
++++ kig-4.14.3/CMakeLists.txt  2022-01-23 17:14:14.423794752 +0100
+@@ -35,7 +35,6 @@
+ include(KigConfigureChecks.cmake)
+-add_subdirectory( doc )
+ add_subdirectory( icons )
+ add_subdirectory( kig )
+ add_subdirectory( mimetypes )
This page took 0.127372 seconds and 4 git commands to generate.