kstars-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. Name: kstars
  2. Summary: Desktop Planetarium for KDE
  3. Summary(ja): KDE 向けデスクトッププラネタリウム
  4. Version: 4.7.0
  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.bz2
  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. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  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. ..
  44. popd
  45. make %{?_smp_mflags} -C %{_target_platform}
  46. %install
  47. rm -rf $RPM_BUILD_ROOT
  48. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  49. # unpackaged files
  50. # omit stuff for which there isn't a clear public API
  51. rm -f $RPM_BUILD_ROOT%{_libdir}/libhtmesh.a
  52. %clean
  53. rm -rf $RPM_BUILD_ROOT
  54. %check
  55. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  56. desktop-file-validate $f
  57. done
  58. %post
  59. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  60. %posttrans
  61. update-desktop-database -q &> /dev/null ||:
  62. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  63. %postun
  64. if [ $1 -eq 0 ] ; then
  65. update-desktop-database -q &> /dev/null ||:
  66. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  67. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  68. fi
  69. %files
  70. %defattr(-,root,root)
  71. %doc COPYING COPYING.DOC
  72. %{_bindir}/kstars
  73. %{_datadir}/applications/kde4/kstars.desktop
  74. %{_datadir}/config/kstars.knsrc
  75. %{_datadir}/config.kcfg/kstars.kcfg
  76. %{_datadir}/icons/hicolor/*/*/*
  77. %{_datadir}/kde4/apps/kstars
  78. %doc %{_docdir}/HTML/en/kstars/
  79. %changelog
  80. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  81. - split from kdeedu