xephem/xephem.spec

80 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

Name: xephem
Version: 4.1.0
Release: 1mamba
Summary: Astronomical Software Ephemeris
Group: Graphical Desktop/Applications/Educational
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://xephem.github.io/XEphem/Site/xephem.html
Source: https://github.com/XEphem/XEphem.git/%{version}/XEphem-%{version}.tar.bz2
Source1: XEphem.desktop
Source2: XEphem.kdelnk
Source3: XEphem.png
Source4: XEphem.xpm
Source5: mini-XEphem.xpm
Source6: v3.4-catalogs.tar.bz2
Patch0: XEphem-Imakefile.patch
Patch1: indi.patch
Patch2: %{name}-3.7.3-libXm.patch
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXmu-devel
BuildRequires: libXt-devel
BuildRequires: liblesstif-devel
BuildRequires: libopenssl-devel
## AUTOBUILDREQ-END
License: GPL
%description
XEphem is an interactive astronomical ephemeris program for X Windows systems with OpenMotif.
%debug_package
%prep
%setup -q -n XEphem-%{version} -a6
#%patch2 -p1
%build
cd GUI/xephem
make MOTIFL=%{_libdir}
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
cd GUI/xephem
install -D -m0755 xephem %{buildroot}/%{_bindir}/xephem
install -D -m0644 xephem.1 %{buildroot}/%{_mandir}/man1/xephem.1
install -d -m0755 %{buildroot}%{_datadir}/xephem/
cp -R {auxil,catalogs,fifos,fits,gallery,help,lo} %{buildroot}%{_datadir}/xephem/
install -d %{buildroot}%{_datadir}/X11/app-defaults
echo "XEphem.ShareDir: /usr/share/xephem" > %{buildroot}%{_datadir}/X11/app-defaults/XEphem
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/xephem
%{_datadir}/X11/app-defaults/XEphem
%dir %{_datadir}/xephem
%{_datadir}/xephem/*
%{_mandir}/man1/xephem.1*
%doc LICENSE
%changelog
* Sun Jan 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1.0-1mamba
- update to 4.1.0
* Thu Jul 11 2013 Automatic Build System <autodist@mambasoft.it> 3.7.3-2mamba
- automatic rebuild by autodist
* Tue Apr 14 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.3-1mamba
- update to 3.7.3
* Thu Jul 14 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 3.6.4-1qilnx
- package created by autospec