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

Revision 8430, 3.2 KB checked in by Takemikaduchi, 10 years ago (diff)

KDE-4.12.5

Line 
1Name: klettres
2Summary: Foreign alphabet tutor for KDE
3Summary(ja): KDE 向け外国語アルファベット学習ツール
4Version: 4.12.5
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
23Vendor: Project Vine
24Distribution: Vine Linux
25
26%description
27KLettres is an aid for learning how to read and pronounce the
28alphabet of a foreign language.
29
30Seven languages are currently available: Czech, Danish, Dutch,
31English, French, Italian and Slovak.
32
33This package is part of the KDE education module.
34
35
36%prep
37%setup -q
38
39%build
40mkdir -p %{_target_platform}
41pushd %{_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    ..
50popd
51
52make %{?_smp_mflags} -C %{_target_platform}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%check
62for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
63    desktop-file-validate $f
64done
65
66
67%post
68touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
69
70%posttrans
71update-desktop-database -q &> /dev/null ||:
72gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
73
74%postun
75if [ $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 ||:
79fi
80
81%files
82%defattr(-,root,root)
83%doc COPYING COPYING.DOC
84%{_bindir}/klettres
85%{_datadir}/applications/kde4/klettres.desktop
86%{_datadir}/config/klettres.knsrc
87%{_datadir}/config.kcfg/klettres.kcfg
88%{_datadir}/icons/hicolor/*/*/*
89%{_datadir}/kde4/apps/klettres
90%doc %{_docdir}/HTML/en/klettres/
91
92%changelog
93* Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
94- new upstream release
95
96* Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
97- new upstream release
98
99* Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
100- new upstream release
101
102* Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
103- new upstream release
104
105* Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
106- new upstream release
107
108* Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
109- new upstream release
110
111* Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
112- new upstream release
113
114* Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
115- new upstream release
116
117* Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
118- new upstream release
119
120* Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
121- new upstream release
122
123* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
124- split from kdeedu
125
Note: See TracBrowser for help on using the repository browser.