kstars-vl.spec 3.1 KB

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