forked from XEphem/XEphem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxephem.spec
51 lines (37 loc) · 1.13 KB
/
xephem.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Name: xephem
Version: 4.1.0
Release: 1
Summary: XEphem is an interactive astronomy program for all UNIX platforms.
License: MIT
URL: https://github.com/XEphem/XEphem
Source0: %{name}-%{version}.tgz
BuildRequires: gcc
BuildRequires: make
BuildRequires: motif-devel
Requires: motif
%description
XEphem is an interactive astronomy program for all UNIX platforms. Originally
written by Elwood Downey in the 1990s, it has graciously been released under the
MIT License. It is now maintained by an "XEphem" organization, with its source
code residing at https://github.com/XEphem/XEphem.
%if 0%{?rhel} >= 7
%global motifl %{_libdir}
%endif
%prep
%setup -q
%build
cd GUI/xephem
make MOTIFL=%{motifl}
gzip -c %{name}.man > %{name}.1x.gz
%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1x/
cd GUI/xephem
install -m 0755 %{name} %{buildroot}/%{_bindir}
install -m 0444 %{name}.1x.gz %{buildroot}/%{_mandir}/man1x/
%files
%{_bindir}/%{name}
%{_mandir}/man1x/%{name}.1x.gz
%changelog
* Fri Mar 05 2021 Douglas Needham <[email protected]> 4.0.1-1
- New RPM package built with tito