X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=kde4-kig.spec;h=451c36d08b27dc284d6ea902fd6afbd4a3ff78d8;hb=507b0fc9164029787c21bdb0a4b37f05eca8e687;hp=089e7d2c330a798e983f7694f6336ea390cc17f4;hpb=04e5fbfb00332bbebe14ef55c40b0f57778e69f7;p=packages%2Fkde4-kig.git diff --git a/kde4-kig.spec b/kde4-kig.spec index 089e7d2..451c36d 100644 --- a/kde4-kig.spec +++ b/kde4-kig.spec @@ -1,19 +1,30 @@ +%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_PL.UTF8): K Desktop Environment - Interaktywna geometria -Name: kig -Version: 4.7.3 -Release: 1 -License: GPL +Summary(pl.UTF-8): K Desktop Environment - Interaktywna geometria +Name: kde4-kig +Version: 4.14.3 +Release: 12 +License: GPL v2+ Group: X11/Applications/Science -Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.bz2 -# Source0-md5: d470977abb051c738bd2cf7d54b50553 +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 -BuildRequires: kde4-kdelibs-devel +BuildRequires: kde4-kdelibs-devel >= 4 +BuildRequires: python-devel >= 2 +BuildRequires: qt4-build >= 4 +BuildRequires: sed >= 4.0 Obsoletes: kde4-kdeedu-kig < 4.6.99 +Obsoletes: kig <= 4.8.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -33,39 +44,46 @@ 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 %build install -d build cd build -%cmake \ - .. +%cmake .. \ + -DBoostPython_INCLUDE_DIRS=%{py_incdir} \ + -DBoostPython_LIBRARIES="boost_python%(echo %{py_ver} | tr -d .);python%{py_ver}" %{__make} %install rm -rf $RPM_BUILD_ROOT -%{__make} -C build/ install \ +%{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT \ kde_htmldir=%{_kdedocdir} -%find_lang %{name} --with-kde +%if %{with doc} +%find_lang %{orgname} --with-kde +%endif %clean rm -rf $RPM_BUILD_ROOT -%files -f %{name}.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 %attr(755,root,root) %{_libdir}/kde4/kigpart.so -%attr(755,root,root) %{_bindir}/kig -%{_desktopdir}/kde4/kig.desktop -%{_datadir}/kde4/services/kig_part.desktop +%{_datadir}/appdata/kig.appdata.xml %{_datadir}/apps/kig +%{_datadir}/kde4/services/kig_part.desktop +%{_desktopdir}/kde4/kig.desktop %{_iconsdir}/hicolor/*x*/apps/kig.png %{_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