[4743] | 1 | Name: kbruch |
---|
| 2 | Summary: Fraction learning aid for KDE |
---|
| 3 | Summary(ja): KDE 向け分数学習支援ツール |
---|
[7105] | 4 | Version: 4.9.3 |
---|
[4743] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | |
---|
| 7 | License: GPLv2+ |
---|
| 8 | Group: Applications/Edutainment |
---|
| 9 | URL: http://edu.kde.org/kbruch/ |
---|
| 10 | |
---|
[6725] | 11 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
[4743] | 12 | |
---|
| 13 | ## upstream patches |
---|
| 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | BuildRequires: desktop-file-utils |
---|
| 17 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 18 | |
---|
| 19 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 20 | |
---|
| 21 | Conflicts: kdeedu4 < 4.6.50 |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | KBruch is an aid for learning how to calculate with fractions. |
---|
| 25 | |
---|
| 26 | This package is part of the KDE education module. |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | %prep |
---|
| 30 | %setup -q |
---|
| 31 | |
---|
| 32 | %build |
---|
| 33 | mkdir -p %{_target_platform} |
---|
| 34 | pushd %{_target_platform} |
---|
| 35 | %cmake \ |
---|
| 36 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 37 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 38 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 39 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 40 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 41 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 42 | .. |
---|
| 43 | popd |
---|
| 44 | |
---|
| 45 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | rm -rf $RPM_BUILD_ROOT |
---|
| 49 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 50 | |
---|
| 51 | %clean |
---|
| 52 | rm -rf $RPM_BUILD_ROOT |
---|
| 53 | |
---|
| 54 | %check |
---|
| 55 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 56 | desktop-file-validate $f |
---|
| 57 | done |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %post |
---|
| 61 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 62 | |
---|
| 63 | %posttrans |
---|
| 64 | update-desktop-database -q &> /dev/null ||: |
---|
| 65 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 66 | |
---|
| 67 | %postun |
---|
| 68 | if [ $1 -eq 0 ] ; then |
---|
| 69 | update-desktop-database -q &> /dev/null ||: |
---|
| 70 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 71 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 72 | fi |
---|
| 73 | |
---|
| 74 | %files |
---|
| 75 | %defattr(-,root,root) |
---|
| 76 | %doc COPYING COPYING.DOC |
---|
| 77 | %{_bindir}/kbruch |
---|
| 78 | %{_datadir}/applications/kde4/kbruch.desktop |
---|
| 79 | %{_datadir}/config.kcfg/kbruch.kcfg |
---|
| 80 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 81 | %{_datadir}/kde4/apps/kbruch |
---|
| 82 | %{_mandir}/man1/kbruch* |
---|
| 83 | %doc %{_docdir}/HTML/en/kbruch/ |
---|
| 84 | |
---|
| 85 | %changelog |
---|
[7105] | 86 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
| 87 | - new upstream release |
---|
| 88 | |
---|
[6899] | 89 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 90 | - new upstream release |
---|
| 91 | |
---|
[6797] | 92 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
| 93 | - new upstream release |
---|
| 94 | |
---|
[6725] | 95 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 96 | - new upstream release |
---|
| 97 | |
---|
[4743] | 98 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 99 | - split from kdeedu |
---|
| 100 | |
---|