source: projects/specs/trunk/k/kanagram/kanagram-vl.spec @ 7294

Revision 7294, 3.4 KB checked in by Takemikaduchi, 11 years ago (diff)

KDE-4.9.5

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