[4743] | 1 | Name: kstars |
---|
| 2 | Summary: Desktop Planetarium for KDE |
---|
| 3 | Summary(ja): KDE 向けデスクトッププラネタリウム |
---|
[7294] | 4 | Version: 4.9.5 |
---|
[4743] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | |
---|
| 7 | License: GPLv2+ |
---|
| 8 | Group: Applications/Edutainment |
---|
| 9 | URL: http://edu.kde.org/kstars/ |
---|
| 10 | |
---|
[6725] | 11 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
[4743] | 12 | |
---|
| 13 | ## upstream patches |
---|
| 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | BuildRequires: cfitsio-devel >= 3.09 |
---|
| 17 | BuildRequires: desktop-file-utils |
---|
| 18 | BuildRequires: eigen2-devel |
---|
| 19 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 20 | BuildRequires: libindi-devel >= 0.8 |
---|
| 21 | BuildRequires: mesa-libGL-devel |
---|
| 22 | BuildRequires: xplanet >= 1.0 |
---|
| 23 | BuildRequires: zlib-devel |
---|
| 24 | |
---|
| 25 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 26 | |
---|
| 27 | Conflicts: kdeedu4 < 4.6.50 |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | KStars is a desktop planetarium for KDE, depicting an accurate |
---|
| 31 | graphical simulation of the night sky, from any location on Earth, |
---|
| 32 | at any date and time. The display includes 130,000 stars, 13,000 |
---|
| 33 | deep-sky objects, all 8 planets, the Sun and Moon, and thousands |
---|
| 34 | of comets and asteroids. It includes tools for astronomical calculations |
---|
| 35 | and can control telescopes and cameras. |
---|
| 36 | |
---|
| 37 | This package is part of the KDE education module. |
---|
| 38 | |
---|
| 39 | %prep |
---|
| 40 | %setup -q |
---|
| 41 | |
---|
| 42 | %build |
---|
| 43 | mkdir -p %{_target_platform} |
---|
| 44 | pushd %{_target_platform} |
---|
| 45 | %cmake \ |
---|
| 46 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 47 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 48 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 49 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 50 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 51 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 52 | .. |
---|
| 53 | popd |
---|
| 54 | |
---|
| 55 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 56 | |
---|
| 57 | %install |
---|
| 58 | rm -rf $RPM_BUILD_ROOT |
---|
| 59 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 60 | |
---|
| 61 | # unpackaged files |
---|
| 62 | # omit stuff for which there isn't a clear public API |
---|
| 63 | rm -f $RPM_BUILD_ROOT%{_libdir}/libhtmesh.a |
---|
| 64 | |
---|
| 65 | %clean |
---|
| 66 | rm -rf $RPM_BUILD_ROOT |
---|
| 67 | |
---|
| 68 | %check |
---|
| 69 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 70 | desktop-file-validate $f |
---|
| 71 | done |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | %post |
---|
| 75 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 76 | |
---|
| 77 | %posttrans |
---|
| 78 | update-desktop-database -q &> /dev/null ||: |
---|
| 79 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 80 | |
---|
| 81 | %postun |
---|
| 82 | if [ $1 -eq 0 ] ; then |
---|
| 83 | update-desktop-database -q &> /dev/null ||: |
---|
| 84 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 85 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 86 | fi |
---|
| 87 | |
---|
| 88 | %files |
---|
| 89 | %defattr(-,root,root) |
---|
| 90 | %doc COPYING COPYING.DOC |
---|
| 91 | %{_bindir}/kstars |
---|
| 92 | %{_datadir}/applications/kde4/kstars.desktop |
---|
| 93 | %{_datadir}/config/kstars.knsrc |
---|
| 94 | %{_datadir}/config.kcfg/kstars.kcfg |
---|
| 95 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 96 | %{_datadir}/kde4/apps/kstars |
---|
| 97 | %doc %{_docdir}/HTML/en/kstars/ |
---|
| 98 | |
---|
| 99 | %changelog |
---|
[7294] | 100 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
| 101 | - new upstream release |
---|
| 102 | |
---|
[7105] | 103 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
| 104 | - new upstream release |
---|
| 105 | |
---|
[6899] | 106 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 107 | - new upstream release |
---|
| 108 | |
---|
[6797] | 109 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
[6725] | 110 | - new upstream release |
---|
| 111 | |
---|
[6797] | 112 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 113 | - new upstream release |
---|
| 114 | |
---|
[4743] | 115 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 116 | - split from kdeedu |
---|
| 117 | |
---|