source: projects/specs/trunk/b/blinken/blinken-vl.spec @ 4743

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

NEW: KDE Educational packages
update: kdeplasma-addons

Line 
1Name: blinken
2Summary: KDE version of the Simon electronic memory game
3Version: 4.7.0
4Release: 1%{?_dist_release}
5
6License: GPLv2+
7Group: Applications/Edutainment
8URL: http://edu.kde.org/blinken/
9
10Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
11
12## upstream patches
13
14BuildRoot: %{_tmppath}/%{name}-%{version}-root
15BuildRequires: desktop-file-utils
16BuildRequires: kdelibs4-devel >= %{version}
17
18Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
19
20Conflicts: kdeedu4 < 4.6.50
21
22%description
23Blinken is based on an electronic game released in 1978, which
24challenges players to remember sequences of increasing length.
25On the face of the device, there are 4 different color buttons,
26each with its own distinctive sound. These buttons light up randomly,
27creating the sequence that the player must then recall. If the
28player is successful in remembering the sequence of lights in
29the correct order, they advance to the next stage, where an identical
30sequence with one extra step is presented.
31
32This package is part of the KDE education module.
33
34%prep
35%setup -q
36
37%build
38mkdir -p %{_target_platform}
39pushd %{_target_platform}
40unset QTDIR || : ; . /etc/profile.d/qt4.sh
41%cmake \
42    -DCMAKE_BUILD_TYPE=release \
43    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
44    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
45    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
46    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
47    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
48    ..
49popd
50
51make %{?_smp_mflags} -C %{_target_platform}
52
53%install
54rm -rf $RPM_BUILD_ROOT
55make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
56
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}/blinken
85%{_datadir}/applications/kde4/blinken.desktop
86%{_datadir}/config.kcfg/blinken.kcfg
87%{_datadir}/icons/hicolor/*/*/*
88%{_datadir}/kde4/apps/blinken
89%doc %{_docdir}/HTML/en/blinken/
90
91%changelog
92* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
93- split from kdeedu
94
Note: See TracBrowser for help on using the repository browser.