kstars-vl.spec 3.8 KB

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