source: projects/specs/trunk/k/khangman/khangman-vl.spec @ 8056

Revision 8056, 3.9 KB checked in by Takemikaduchi, 10 years ago (diff)

KDE-4.11.4
exiv2-0.24
wireshark-1.10.5, etc...

Line 
1Name: khangman
2Summary: Hangman word puzzle for KDE
3Summary(ja): Hangman 単語パズル
4Version: 4.11.4
5Release: 1%{?_dist_release}
6
7License: GPLv2+
8Group: Applications/Edutainment
9URL: http://edu.kde.org/khangman/
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
16
17Requires:  %{name}-libs = %{version}-%{release}
18BuildRequires: desktop-file-utils
19BuildRequires: kdelibs4-devel >= %{version}
20BuildRequires: libkdeedu-devel >= %{version}
21
22Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
23
24Conflicts: kdeedu4 < 4.6.50
25
26%description
27KHangMan is the well-known Hangman game, aimed towards children
28aged 6 and above.
29
30It picks a random word which the player must reveal by guessing
31if it contains certain letters. As the player guesses letters,
32the word is gradually revealed, but 10 wrong guesses will end the
33game.
34
35This package is part of the KDE education module.
36
37
38%package libs
39Summary: Runtime libraries for %{name}
40Summary(ja): %{name} のランタイムライブラリ
41Group:   System Environment/Libraries
42Requires: kdelibs4 >= %{version}
43
44%description libs
45%{summary}.
46
47%description -l ja libs
48%{name} のランタイムライブラリです.
49
50
51%package devel
52Summary:   Development files for %{name}
53Summary(ja): %{name} の開発用ファイル
54Group:     Development/Libraries
55Requires:  %{name}-libs = %{version}-%{release}
56Requires:  kdelibs4-devel
57
58%description devel
59%{summary}.
60
61%description -l ja devel
62%{name} の開発用ファイルです.
63
64
65
66%prep
67%setup -q
68
69%build
70mkdir -p %{_target_platform}
71pushd %{_target_platform}
72%cmake \
73    -DCMAKE_BUILD_TYPE=release \
74    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
75    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
76    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
77    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
78    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
79    ..
80popd
81
82make %{?_smp_mflags} -C %{_target_platform}
83
84%install
85rm -rf $RPM_BUILD_ROOT
86make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
87
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%check
92for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
93    desktop-file-validate $f
94done
95
96
97%post
98touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
99
100%posttrans
101update-desktop-database -q &> /dev/null ||:
102gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
103
104%postun
105if [ $1 -eq 0 ] ; then
106    update-desktop-database -q &> /dev/null ||:
107    touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
108    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
109fi
110
111%files
112%defattr(-,root,root,-)
113%doc COPYING COPYING.DOC
114%{_bindir}/%{name}
115%{_datadir}/applications/kde4/%{name}.desktop
116%{_datadir}/config/%{name}.knsrc
117%{_datadir}/config.kcfg/%{name}.kcfg
118%{_datadir}/icons/hicolor/*/*/*
119%{_datadir}/kde4/apps/%{name}
120%{_mandir}/man6/khangman*
121%doc %{_docdir}/HTML/en/%{name}/
122
123%files libs
124%defattr(-,root,root,-)
125%{_libdir}/libkhangmanengine.so.*
126
127%files devel
128%defattr(-,root,root,-)
129%{_includedir}/%{name}
130%{_libdir}/libkhangmanengine.so
131
132%changelog
133* Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
134- new upstream release
135
136* Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
137- new upstream release
138
139* Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
140- new upstream release
141
142* Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
143- new upstream release
144
145* Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
146- new upstream release
147
148* Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
149- new upstream release
150
151* Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
152- new upstream release
153
154* Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
155- new upstream release
156- create -devel and -libs subpackages
157
158* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
159- split from kdeedu
160
Note: See TracBrowser for help on using the repository browser.