xephem-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Summary: An interactive astronomical ephemeris program for X Windows systems
  2. Summary(ja): X 上で動作するプラネタリウム・ソフト
  3. Name: xephem
  4. Version: 3.7.1
  5. Release: 0vl2
  6. License: Freely redistributable/modifiable if attributed, no warranty
  7. Group: Applications/Edutainment
  8. URL: http://www.clearskyinstitute.com/xephem/
  9. Source: http://www.clearskyinstitute.com/xephem/xephem-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildPrereq: openMotif-devel XOrg-devel
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. %description
  15. XEphem is an interactive astronomical ephemeris program for X Windows
  16. systems with Motif. It provides many graphical views as well as
  17. quantitative heliocentric, geocentric and topocentric information for
  18. Earth satellites, solar system and celestial objects.
  19. %description -l ja
  20. XEphem は X 上で動作する天体プラネタリウムのプログラムです.動作には,
  21. openMotif が必要です.地球の衛星や太陽系,天体を,さまざまな情報ととも
  22. に表示できます.
  23. %prep
  24. %setup -q
  25. %build
  26. %ifarch x86_64
  27. (cd GUI/xephem
  28. make MOTIF=/usr/X11R6/lib64
  29. )
  30. %else
  31. (cd GUI/xephem
  32. make MOTIF=/usr/X11R6/lib
  33. )
  34. %endif
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37. XS=GUI/xephem
  38. #XL=$RPM_BUILD_ROOT/usr/X11R6/lib/X11/xephem
  39. XL=$RPM_BUILD_ROOT%{_datadir}/xephem
  40. #(cd GUI/xephem
  41. #make DESTDIR=$RPM_BUILD_ROOT install install.man
  42. #)
  43. install -d $RPM_BUILD_ROOT%{_bindir}
  44. install -d $RPM_BUILD_ROOT%{_mandir}/man1
  45. install -d $XL/{auxil,catalogs,fifos,fits}
  46. install -m 755 $XS/xephem $RPM_BUILD_ROOT%{_bindir}
  47. install -m 644 $XS/xephem.1 $RPM_BUILD_ROOT%{_mandir}/man1
  48. install -m 644 $XS/auxil/* $XL/auxil
  49. install -m 644 $XS/catalogs/* $XL/catalogs
  50. install -m 644 $XS/fifos/* $XL/fifos
  51. install -m 644 $XS/fits/* $XL/fits
  52. install -d $RPM_BUILD_ROOT/usr/X11R6/lib/X11/app-defaults/
  53. cat > $RPM_BUILD_ROOT/usr/X11R6/lib/X11/app-defaults/XEphem <<EOF
  54. XEphem.ShareDir: /usr/share/xephem
  55. EOF
  56. #install -m 644 $XS/XEphem.ad \
  57. # $RPM_BUILD_ROOT/usr/X11R6/lib/X11/app-defaults/XEphem
  58. # prepare applnk
  59. %define applnkdir /etc/X11/applnk/System
  60. mkdir -p $RPM_BUILD_ROOT/%{applnkdir}
  61. cat > $RPM_BUILD_ROOT/%{applnkdir}/%{name}.desktop <<EOF
  62. [Desktop Entry]
  63. Name=%{name}
  64. Type=Application
  65. Comment=An astronomical ephemeris
  66. Comment[ja]=プラネタリウム・ソフト
  67. Exec=xephem
  68. Terminal=false
  69. EOF
  70. %clean
  71. rm -rf $RPM_BUILD_ROOT
  72. %files
  73. %defattr(-,root,root)
  74. %doc Copyright INSTALL README
  75. %config(missingok) %{applnkdir}/%{name}.desktop
  76. %{_bindir}/xephem
  77. /usr/X11R6/lib/X11/app-defaults/XEphem
  78. %{_datadir}/xephem
  79. %{_mandir}/man1/xephem.1*
  80. %changelog
  81. * Thu Dec 27 2007 Shu KONNO <owa@bg.wakwak.com> - 3.7.1-0vl2
  82. - fixed MOTIF path (for x86_64)
  83. * Tue Sep 26 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.7.1-0vl1
  84. - updated to 3.7.1
  85. - updated URL
  86. - s/Copyright/License/
  87. - changed Group to Applications/Edutainment
  88. * Mon Jun 2 2003 Jun Nishii <jun@vinelinux.org>
  89. - 3.5-0.1vl1
  90. - build with openMotif
  91. * Thu Sep 21 2000 Jun Nishii <jun@vinelinux.org>
  92. - 3.2.3-0vl2
  93. - added applnk
  94. - build for Vine Linux 2.1
  95. * Thu Mar 9 2000 Jun Nishii <jun@vinelinux.org>
  96. - 3.2.3-0vl1