]> git.pld-linux.org Git - packages/xephem.git/blob - xephem.spec
- contains only polish sites now (it adds to the list shipped with xephem)
[packages/xephem.git] / xephem.spec
1 Summary:        Interactive astronomy program
2 Summary(pl):    Interaktywny program astronomiczny
3 Name:           xephem
4 Version:        3.7.1
5 Release:        2
6 License:        distributable with free-unices distros, free for non-profit non-commercial purposes
7 Group:          X11/Applications/Science
8 Source0:        http://www.clearskyinstitute.com/xephem/%{name}-%{version}.tar.gz
9 # Source0-md5:  a7a89469f1c0681d186344ef96941b8d
10 Source1:        %{name}.desktop
11 Source2:        %{name}.png
12 Source3:        %{name}_sites
13 Patch0:         %{name}-makefile.patch
14 Patch1:         %{name}-fits.patch
15 URL:            http://www.clearskyinstitute.com/xephem/
16 BuildRequires:  XFree86-devel
17 BuildRequires:  openmotif-devel
18 BuildRequires:  sed >= 4.0
19 Obsoletes:      xephem-doc
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _appdefsdir     /usr/X11R6/lib/X11/app-defaults
23
24 %description
25 XEphem \eks-i-'fem\ n. [X Window + Ephemeris] (1990)
26 XEphem is a star-charting, sky-simulating, ephemeris-generating
27 celestial virtuoso.
28
29 %description -l pl
30 XEphem \eks-i-'fem\ n. [X Window + Ephemeris] (1990)
31 XEphem jest programem sporz±dzaj±cym mapê gwiazd, symuluj±cym niebo,
32 efemerydalnie generuj±cym sferê niebiesk± wirtuozem. Udostêpnia wiele
33 informacji o satelitach Ziemi, Uk³adzie S³onecznym i odleg³ych
34 obiektach astronomicznych, w formie graficznej i liczbowej, w uk³adzie
35 geocentrycznym, heliocentrycznym i topocentrycznym.
36
37 %package tools
38 Summary:        Additional tools for use with XEphem
39 Summary(pl):    Dodatkowe narzêdzia dla XEphema
40 Group:          X11/Applications/Science
41 Requires:       %{name} = %{version}-%{release}
42
43 %description tools
44 astorb2edb - convert astorb.txt to 2 .edb files,
45 mpcorb2edb - convert MPCORB.DAT to 2 .edb files,
46 lx200xed - a daemon to connect XEphem to a Meade LX200 telescope,
47 XEphemdbd - is a filter to find astronomical objects within a given
48             field of view.
49
50 %description tools -l pl
51 astorb2edb - konwertuje astorb.txt do 2 plików .edb,
52 mpcorb2edb - konwertuje MPCORB.DAT do 2 plików .edb,
53 lx200xed - demon do po³±czenia XEphema z teleskopem Meade LX200,
54 XEphemdbd - filt do odnajdywania obiektów astronomicznych wg zadanych
55             pól opisu.
56
57 %prep
58 %setup -q
59 %patch0 -p1
60 %patch1 -p1
61
62 sed -i "s#X11R6/lib#X11R6/%{_lib}#g" GUI/xephem/Makefile
63
64 mv GUI/xephem/tools/lx200xed/README GUI/xephem/tools/lx200xed/README-lx
65 mv GUI/xephem/tools/indi/README GUI/xephem/tools/indi/README-indi
66 mv GUI/xephem/tools/xedb/README GUI/xephem/tools/xedb/README-xedb
67 mv GUI/xephem/tools/xephemdbd/README GUI/xephem/tools/xephemdbd/README-xephemdbd
68 mv -f Copyright LICENSE
69
70 %build
71
72 cd GUI/xephem
73
74 %{__make} \
75         CC="%{__cc}" \
76         CDEBUGFLAGS="%{rpmcflags}"
77
78 %{__make} -C tools/lx200xed \
79         CC="%{__cc}" \
80         CFLAGS="%{rpmcflags} -I../../../../libastro"
81
82 %{__make} -C tools/xephemdbd \
83         CC="%{__cc}" \
84         CFLAGS="%{rpmcflags} -I../../../../GUI/xephem -I../../../../libastro -I../../../../libip"
85
86 %{__make} -C tools/xedb \
87         CC="%{__cc}" \
88         CFLAGS="%{rpmcflags} -I../../../../libastro"
89
90 %{__make} drivers -C tools/indi \
91         CC="%{__cc}" \
92         CFLAGS="%{rpmcflags} -I../../../../liblilxml -I../../../../libastro -I../../../../libip"
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} \
97         $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_appdefsdir}}
98
99 rm -f GUI/xephem/auxil/xephem_sites
100 cp %{SOURCE3} GUI/xephem/auxil/
101
102 install GUI/xephem/xephem $RPM_BUILD_ROOT%{_bindir}
103 cp -a GUI/xephem/auxil $RPM_BUILD_ROOT%{_datadir}/%{name}
104 cp -a GUI/xephem/catalogs $RPM_BUILD_ROOT%{_datadir}/%{name}
105 cp -a GUI/xephem/help $RPM_BUILD_ROOT%{_datadir}/%{name}
106 cp -a GUI/xephem/fifos $RPM_BUILD_ROOT%{_datadir}/%{name}
107 cp -a GUI/xephem/fits $RPM_BUILD_ROOT%{_datadir}/%{name}
108
109 install GUI/xephem/xephem.man $RPM_BUILD_ROOT%{_mandir}/man1/xephem.1
110
111 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
112 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
113 echo XEphem.ShareDir: %{_datadir}/%{name} > $RPM_BUILD_ROOT%{_appdefsdir}/XEphem
114
115 install GUI/xephem/tools/lx200xed/lx200xed $RPM_BUILD_ROOT%{_bindir}
116
117 install GUI/xephem/tools/xephemdbd/xephemdbd $RPM_BUILD_ROOT%{_bindir}
118 install GUI/xephem/tools/xephemdbd/*.pl $RPM_BUILD_ROOT%{_bindir}
119
120 install GUI/xephem/auxil/*.pl $RPM_BUILD_ROOT%{_bindir}
121 install GUI/xephem/tools/xephemdbd/*.pl $RPM_BUILD_ROOT%{_bindir}
122
123 %clean
124 rm -rf $RPM_BUILD_ROOT
125
126 %files
127 %defattr(644,root,root,755)
128 %doc LICENSE
129 %attr(755,root,root) %{_bindir}/xephem
130 %{_datadir}/%{name}
131 %{_desktopdir}/*
132 %{_pixmapsdir}/*
133 %{_appdefsdir}/*
134 %{_mandir}/man1/*
135
136 %files tools
137 %defattr(644,root,root,755)
138 %doc GUI/xephem/tools/lx200xed/README-lx GUI/xephem/tools/xephemdbd/README-xephemdbd
139 %doc GUI/xephem/tools/indi/README-indi GUI/xephem/tools/indi/README-indi
140
141 %doc GUI/xephem/tools/xephemdbd/*.html
142 %attr(755,root,root) %{_bindir}/lx200xed
143 %attr(755,root,root) %{_bindir}/xephemdbd
144 %attr(755,root,root) %{_bindir}/*.pl
This page took 0.051405 seconds and 3 git commands to generate.