source: projects/specs/trunk/k/kbruch/kbruch-vl.spec @ 4743

Revision 4743, 2.1 KB checked in by inagaki, 13 years ago (diff)

NEW: KDE Educational packages
update: kdeplasma-addons

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