]> git.pld-linux.org Git - packages/kde4-kig.git/blame - kde4-kig.spec
- disable doc on ix86, qt4 meinproc is broken, rel 12
[packages/kde4-kig.git] / kde4-kig.spec
CommitLineData
507b0fc9
JR
1%bcond_without doc # build handbooks
2
4d925ff3
AM
3%define _state stable
4%define orgname kig
5
507b0fc9
JR
6%ifarch %{ix86}
7%undefine with_doc
8%endif
4d925ff3 9Summary: K Desktop Environment - Interactive Geometry
4c8e63d4 10Summary(pl.UTF-8): K Desktop Environment - Interaktywna geometria
06e1829c 11Name: kde4-kig
530629f4 12Version: 4.14.3
507b0fc9 13Release: 12
dfeaa532 14License: GPL v2+
4d925ff3 15Group: X11/Applications/Science
178b2dfe 16Source0: http://download.kde.org/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
530629f4 17# Source0-md5: 2bc36c90f19b9fbebd7b3c7ac563acb3
507b0fc9 18Patch0: no-doc.patch
4d925ff3 19URL: http://www.kde.org/
95a3bec5 20BuildRequires: automoc4
4d925ff3 21BuildRequires: boost-python-devel
dfeaa532
JB
22BuildRequires: kde4-kdelibs-devel >= 4
23BuildRequires: python-devel >= 2
24BuildRequires: qt4-build >= 4
25BuildRequires: sed >= 4.0
1f1c42bc 26Obsoletes: kde4-kdeedu-kig < 4.6.99
06e1829c 27Obsoletes: kig <= 4.8.0
4d925ff3
AM
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31Kig is an application for Interactive Geometry. It's intended to serve
32two purposes:
33- allow students to interactively explore mathematical figures and
34 concepts using the computer.
35- serve as a WYSIWYG tool for drawing mathematical figures and
36 including them in other documents.
37
38%description -l pl.UTF-8
39Kig to aplikacja do interaktywnej geometrii. Ma służyć dwóm celom:
40- umożliwić uczniom interaktywnie przeglądanie figur i pojęć
41 matematycznych przy użyciu komputera
42- służyć jako narzędzie WYSIWYG do rysowania figur matematycznych i
43 włączania ich do innych dokumentów.
44
45%prep
46%setup -q -n %{orgname}-%{version}
507b0fc9 47%{!?with_doc:%patch0 -p1}
4d925ff3 48
dfeaa532
JB
49%{__sed} -i -e '1s,/usr/bin/env python,%{__python},' pykig/pykig.py
50
4d925ff3
AM
51%build
52install -d build
53cd build
dfeaa532
JB
54%cmake .. \
55 -DBoostPython_INCLUDE_DIRS=%{py_incdir} \
56 -DBoostPython_LIBRARIES="boost_python%(echo %{py_ver} | tr -d .);python%{py_ver}"
4d925ff3
AM
57%{__make}
58
59%install
60rm -rf $RPM_BUILD_ROOT
61
dfeaa532 62%{__make} -C build install \
4d925ff3
AM
63 DESTDIR=$RPM_BUILD_ROOT \
64 kde_htmldir=%{_kdedocdir}
65
507b0fc9 66%if %{with doc}
06e1829c 67%find_lang %{orgname} --with-kde
507b0fc9 68%endif
4d925ff3
AM
69
70%clean
71rm -rf $RPM_BUILD_ROOT
72
507b0fc9 73%files %{?with_doc:-f %{orgname}.lang}
4d925ff3 74%defattr(644,root,root,755)
dfeaa532 75%attr(755,root,root) %{_bindir}/kig
4d925ff3
AM
76%attr(755,root,root) %{_bindir}/pykig.py
77%attr(755,root,root) %{_libdir}/kde4/kigpart.so
178b2dfe 78%{_datadir}/appdata/kig.appdata.xml
4d925ff3 79%{_datadir}/apps/kig
dfeaa532
JB
80%{_datadir}/kde4/services/kig_part.desktop
81%{_desktopdir}/kde4/kig.desktop
4d925ff3
AM
82%{_iconsdir}/hicolor/*x*/apps/kig.png
83%{_iconsdir}/hicolor/scalable/apps/kig.svgz
84%{_iconsdir}/hicolor/*x*/mimetypes/application-x-kig.png
85%{_iconsdir}/hicolor/scalable/mimetypes/application-x-kig.svgz
507b0fc9 86%{?with_doc:%{_mandir}/man1/kig.1*}
4d925ff3
AM
87
88# subpackage?
89%{_datadir}/apps/katepart/syntax/python-kig.xml
This page took 0.092015 seconds and 4 git commands to generate.