source: projects/specs/trunk/k/kgeography/kgeography-vl.spec @ 4743

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

NEW: KDE Educational packages
update: kdeplasma-addons

Line 
1Name: kgeography
2Summary: Geography learning aid for KDE
3Summary(ja): KDE 向け地理学習支援ツール
4Version: 4.7.0
5Release: 1%{?_dist_release}
6
7License: GPLv2+
8Group: Applications/Edutainment
9URL: http://edu.kde.org/kgeography/
10
11Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
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
23%description
24KGeography is an aid for learning about world geography. You can
25use it to explore a map, show information about regions and features,
26and play quiz games to test your geography knowledge.
27
28This package is part of the KDE education module.
29
30%prep
31%setup -q
32
33%build
34mkdir -p %{_target_platform}
35pushd %{_target_platform}
36unset QTDIR || : ; . /etc/profile.d/qt4.sh
37%cmake \
38    -DCMAKE_BUILD_TYPE=release \
39    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
40    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
41    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
42    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
43    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
44    ..
45popd
46
47make %{?_smp_mflags} -C %{_target_platform}
48
49%install
50rm -rf $RPM_BUILD_ROOT
51make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%check
57for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
58    desktop-file-validate $f
59done
60
61
62%post
63touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
64
65%posttrans
66update-desktop-database -q &> /dev/null ||:
67gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
68
69%postun
70if [ $1 -eq 0 ] ; then
71    update-desktop-database -q &> /dev/null ||:
72    touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
73    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
74fi
75
76%files
77%defattr(-,root,root)
78%doc COPYING COPYING.DOC
79%{_bindir}/kgeography
80%{_datadir}/applications/kde4/kgeography.desktop
81%{_datadir}/config.kcfg/kgeography.kcfg
82%{_datadir}/icons/hicolor/*/*/*
83%{_datadir}/kde4/apps/kgeography
84%doc %{_docdir}/HTML/en/kgeography/
85
86%changelog
87* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
88- split from kdeedu
89
Note: See TracBrowser for help on using the repository browser.