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

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

KDE-4.12.5

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