[4743] | 1 | Name: kig |
---|
| 2 | Summary: Interactive geometry tool for KDE |
---|
[7294] | 3 | Version: 4.9.5 |
---|
[6725] | 4 | Release: 1%{?_dist_release} |
---|
[4743] | 5 | |
---|
| 6 | License: GPLv2+ |
---|
| 7 | Group: Applications/Edutainment |
---|
| 8 | URL: http://edu.kde.org/kig/ |
---|
| 9 | |
---|
[6725] | 10 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
[4743] | 11 | |
---|
| 12 | ## upstream patches |
---|
| 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | BuildRequires: desktop-file-utils |
---|
| 16 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 17 | BuildRequires: libboost-devel libboost-python |
---|
| 18 | BuildRequires: python-devel |
---|
| 19 | BuildRequires: soprano-devel |
---|
| 20 | |
---|
| 21 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 22 | |
---|
| 23 | Conflicts: kdeedu4 < 4.6.50 |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | Kig is an application for interactive geometric construction, allowing |
---|
| 27 | students to draw and explore mathematical figures and concepts using |
---|
| 28 | the computer. |
---|
| 29 | |
---|
| 30 | Kig supports macros and is scriptable using Python. It can import and |
---|
| 31 | export files in various formats, including SVG, Cabri, Dr. Geo, KGeo, |
---|
| 32 | KSeg, and XFig. |
---|
| 33 | |
---|
| 34 | This package is part of the KDE education module. |
---|
| 35 | |
---|
| 36 | %prep |
---|
| 37 | %setup -q |
---|
| 38 | |
---|
| 39 | %build |
---|
| 40 | mkdir -p %{_target_platform} |
---|
| 41 | pushd %{_target_platform} |
---|
| 42 | %cmake \ |
---|
| 43 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 44 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 45 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 46 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 47 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 48 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 49 | .. |
---|
| 50 | popd |
---|
| 51 | |
---|
| 52 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 53 | |
---|
| 54 | %install |
---|
| 55 | rm -rf $RPM_BUILD_ROOT |
---|
| 56 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 57 | |
---|
| 58 | %clean |
---|
| 59 | rm -rf $RPM_BUILD_ROOT |
---|
| 60 | |
---|
| 61 | %check |
---|
| 62 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 63 | desktop-file-validate $f |
---|
| 64 | done |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %post |
---|
| 68 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 69 | |
---|
| 70 | %posttrans |
---|
| 71 | update-desktop-database -q &> /dev/null ||: |
---|
| 72 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 73 | |
---|
| 74 | %postun |
---|
| 75 | if [ $1 -eq 0 ] ; then |
---|
| 76 | update-desktop-database -q &> /dev/null ||: |
---|
| 77 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 78 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 79 | fi |
---|
| 80 | |
---|
| 81 | %files |
---|
| 82 | %defattr(-,root,root) |
---|
| 83 | %doc COPYING COPYING.DOC |
---|
| 84 | %{_bindir}/kig |
---|
| 85 | %{_bindir}/pykig.py |
---|
| 86 | %{_libdir}/kde4/kigpart.so |
---|
| 87 | %{_datadir}/applications/kde4/kig.desktop |
---|
| 88 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 89 | %{_datadir}/kde4/apps/katepart/* |
---|
| 90 | %{_datadir}/kde4/apps/kig |
---|
| 91 | %{_datadir}/kde4/services/kig_part.desktop |
---|
| 92 | %{_mandir}/man1/kig* |
---|
| 93 | %doc %{_docdir}/HTML/en/kig/ |
---|
| 94 | |
---|
| 95 | %changelog |
---|
[7294] | 96 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
| 97 | - new upstream release |
---|
| 98 | |
---|
[7105] | 99 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
| 100 | - new upstream release |
---|
| 101 | |
---|
[6899] | 102 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 103 | - new upstream release |
---|
| 104 | |
---|
[6797] | 105 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
| 106 | - new upstream release |
---|
| 107 | |
---|
[6725] | 108 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 109 | - new upstream release |
---|
| 110 | |
---|
[5771] | 111 | * Sun Feb 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-2 |
---|
| 112 | - rebuild with python-2.7.2 |
---|
| 113 | |
---|
[4743] | 114 | * Thu Sep 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 115 | - split from kdeedu |
---|
| 116 | |
---|