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

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

NEW: KDE Educational packages
update: kdeplasma-addons

Line 
1Name: klettres
2Summary: Foreign alphabet tutor for KDE
3Summary(ja): KDE 向け外国語アルファベット学習ツール
4Version: 4.7.0
5Release: 1%{?_dist_release}
6
7License: GPLv2+
8Group: Applications/Edutainment
9URL: http://edu.kde.org/klettres/
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
24KLettres is an aid for learning how to read and pronounce the
25alphabet of a foreign language.
26
27Seven languages are currently available: Czech, Danish, Dutch,
28English, French, Italian and Slovak.
29
30This package is part of the KDE education module.
31
32
33%prep
34%setup -q
35
36%build
37mkdir -p %{_target_platform}
38pushd %{_target_platform}
39unset QTDIR || : ; . /etc/profile.d/qt4.sh
40%cmake \
41    -DCMAKE_BUILD_TYPE=release \
42    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
43    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
44    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
45    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
46    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
47    ..
48popd
49
50make %{?_smp_mflags} -C %{_target_platform}
51
52%install
53rm -rf $RPM_BUILD_ROOT
54make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%check
60for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
61    desktop-file-validate $f
62done
63
64
65%post
66touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
67
68%posttrans
69update-desktop-database -q &> /dev/null ||:
70gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
71
72%postun
73if [ $1 -eq 0 ] ; then
74    update-desktop-database -q &> /dev/null ||:
75    touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
76    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
77fi
78
79%files
80%defattr(-,root,root)
81%doc COPYING COPYING.DOC
82%{_bindir}/klettres
83%{_datadir}/applications/kde4/klettres.desktop
84%{_datadir}/config/klettres.knsrc
85%{_datadir}/config.kcfg/klettres.kcfg
86%{_datadir}/icons/hicolor/*/*/*
87%{_datadir}/kde4/apps/klettres
88%doc %{_docdir}/HTML/en/klettres/
89
90%changelog
91* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
92- split from kdeedu
93
Note: See TracBrowser for help on using the repository browser.