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

Revision 7105, 2.6 KB checked in by Takemikaduchi, 12 years ago (diff)

KDE-4.9.3, etc

Line 
1Name: kgeography
2Summary: Geography learning aid for KDE
3Summary(ja): KDE 向け地理学習支援ツール
4Version: 4.9.3
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.xz
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}
36%cmake \
37    -DCMAKE_BUILD_TYPE=release \
38    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
39    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
40    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
41    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
42    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
43    ..
44popd
45
46make %{?_smp_mflags} -C %{_target_platform}
47
48%install
49rm -rf $RPM_BUILD_ROOT
50make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%check
56for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
57    desktop-file-validate $f
58done
59
60
61%post
62touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
63
64%posttrans
65update-desktop-database -q &> /dev/null ||:
66gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
67
68%postun
69if [ $1 -eq 0 ] ; then
70    update-desktop-database -q &> /dev/null ||:
71    touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
72    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
73fi
74
75%files
76%defattr(-,root,root)
77%doc COPYING COPYING.DOC
78%{_bindir}/kgeography
79%{_datadir}/applications/kde4/kgeography.desktop
80%{_datadir}/config.kcfg/kgeography.kcfg
81%{_datadir}/icons/hicolor/*/*/*
82%{_datadir}/kde4/apps/kgeography
83%doc %{_docdir}/HTML/en/kgeography/
84
85%changelog
86* Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
87- new upstream release
88
89* Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
90- new upstream release
91
92* Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
93- new upstream release
94
95* Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
96- new upstream release
97
98* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
99- split from kdeedu
100
Note: See TracBrowser for help on using the repository browser.