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

Revision 6725, 2.3 KB checked in by Takemikaduchi, 12 years ago (diff)

KDE-4.9.0

Line 
1Name: klettres
2Summary: Foreign alphabet tutor for KDE
3Summary(ja): KDE 向け外国語アルファベット学習ツール
4Version: 4.9.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.xz
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}
39%cmake \
40    -DCMAKE_BUILD_TYPE=release \
41    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
42    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
43    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
44    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
45    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
46    ..
47popd
48
49make %{?_smp_mflags} -C %{_target_platform}
50
51%install
52rm -rf $RPM_BUILD_ROOT
53make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%check
59for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
60    desktop-file-validate $f
61done
62
63
64%post
65touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
66
67%posttrans
68update-desktop-database -q &> /dev/null ||:
69gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
70
71%postun
72if [ $1 -eq 0 ] ; then
73    update-desktop-database -q &> /dev/null ||:
74    touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
75    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
76fi
77
78%files
79%defattr(-,root,root)
80%doc COPYING COPYING.DOC
81%{_bindir}/klettres
82%{_datadir}/applications/kde4/klettres.desktop
83%{_datadir}/config/klettres.knsrc
84%{_datadir}/config.kcfg/klettres.kcfg
85%{_datadir}/icons/hicolor/*/*/*
86%{_datadir}/kde4/apps/klettres
87%doc %{_docdir}/HTML/en/klettres/
88
89%changelog
90* Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
91- new upstream release
92
93* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
94- split from kdeedu
95
Note: See TracBrowser for help on using the repository browser.