[4743] | 1 | Name: kstars |
---|
| 2 | Summary: Desktop Planetarium for KDE |
---|
| 3 | Summary(ja): KDE 向けデスクトッププラネタリウム |
---|
[8430] | 4 | Version: 4.12.5 |
---|
[9382] | 5 | Release: 3%{?_dist_release} |
---|
[4743] | 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 |
---|
[8252] | 19 | BuildRequires: kdelibs-devel >= %{version} |
---|
[4743] | 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 | |
---|
[8252] | 29 | Vendor: Project Vine |
---|
| 30 | Distribution: Vine Linux |
---|
| 31 | |
---|
[4743] | 32 | %description |
---|
| 33 | KStars is a desktop planetarium for KDE, depicting an accurate |
---|
| 34 | graphical simulation of the night sky, from any location on Earth, |
---|
| 35 | at any date and time. The display includes 130,000 stars, 13,000 |
---|
| 36 | deep-sky objects, all 8 planets, the Sun and Moon, and thousands |
---|
| 37 | of comets and asteroids. It includes tools for astronomical calculations |
---|
| 38 | and can control telescopes and cameras. |
---|
| 39 | |
---|
| 40 | This package is part of the KDE education module. |
---|
| 41 | |
---|
| 42 | %prep |
---|
| 43 | %setup -q |
---|
| 44 | |
---|
| 45 | %build |
---|
| 46 | mkdir -p %{_target_platform} |
---|
| 47 | pushd %{_target_platform} |
---|
| 48 | %cmake \ |
---|
| 49 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 50 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 51 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 52 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 53 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 54 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 55 | .. |
---|
| 56 | popd |
---|
| 57 | |
---|
| 58 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 59 | |
---|
| 60 | %install |
---|
| 61 | rm -rf $RPM_BUILD_ROOT |
---|
| 62 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 63 | |
---|
| 64 | # unpackaged files |
---|
| 65 | # omit stuff for which there isn't a clear public API |
---|
| 66 | rm -f $RPM_BUILD_ROOT%{_libdir}/libhtmesh.a |
---|
| 67 | |
---|
| 68 | %clean |
---|
| 69 | rm -rf $RPM_BUILD_ROOT |
---|
| 70 | |
---|
| 71 | %check |
---|
| 72 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 73 | desktop-file-validate $f |
---|
| 74 | done |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | %post |
---|
| 78 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 79 | |
---|
| 80 | %posttrans |
---|
| 81 | update-desktop-database -q &> /dev/null ||: |
---|
| 82 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 83 | |
---|
| 84 | %postun |
---|
| 85 | if [ $1 -eq 0 ] ; then |
---|
| 86 | update-desktop-database -q &> /dev/null ||: |
---|
| 87 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 88 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 89 | fi |
---|
| 90 | |
---|
| 91 | %files |
---|
| 92 | %defattr(-,root,root) |
---|
| 93 | %doc COPYING COPYING.DOC |
---|
| 94 | %{_bindir}/kstars |
---|
| 95 | %{_datadir}/applications/kde4/kstars.desktop |
---|
| 96 | %{_datadir}/config/kstars.knsrc |
---|
| 97 | %{_datadir}/config.kcfg/kstars.kcfg |
---|
| 98 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 99 | %{_datadir}/kde4/apps/kstars |
---|
| 100 | %doc %{_docdir}/HTML/en/kstars/ |
---|
| 101 | |
---|
| 102 | %changelog |
---|
[9382] | 103 | * Wed Feb 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.12.5-3 |
---|
| 104 | - rebuilt with cfitsio 3.370 |
---|
| 105 | |
---|
[9222] | 106 | * Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-2 |
---|
| 107 | - rebuild with KDE-4.14.3 |
---|
| 108 | |
---|
[8430] | 109 | * Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1 |
---|
| 110 | - new upstream release |
---|
| 111 | |
---|
[8252] | 112 | * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1 |
---|
| 113 | - new upstream release |
---|
| 114 | |
---|
[8056] | 115 | * Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1 |
---|
| 116 | - new upstream release |
---|
| 117 | |
---|
[7801] | 118 | * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
| 119 | - new upstream release |
---|
| 120 | |
---|
[7728] | 121 | * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
| 122 | - new upstream release |
---|
| 123 | |
---|
[7294] | 124 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
| 125 | - new upstream release |
---|
| 126 | |
---|
[7105] | 127 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
| 128 | - new upstream release |
---|
| 129 | |
---|
[6899] | 130 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 131 | - new upstream release |
---|
| 132 | |
---|
[6797] | 133 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
[6725] | 134 | - new upstream release |
---|
| 135 | |
---|
[6797] | 136 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 137 | - new upstream release |
---|
| 138 | |
---|
[4743] | 139 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 140 | - split from kdeedu |
---|
| 141 | |
---|