File de-mpg-mpia-rjm-cds2xephem.spec of Package cds2xephem

Name:    de-mpg-mpia-rjm-cds2xephem
Summary: Convert CDS-type star catalogs to the XEphem format
Version: 4.036
Release: 1%{?release}
Group:   Productivity/Scientific/Astronomy
License: LGPL-3.0+
URL:     http://www.mpia-hd.mpg.de/~mathar
Source0: Cds2XEphem-%{version}.jar

%if 0%{?centos_version}
%if 0%{?centos_version} == 800
BuildRequires: epel-release
BuildRequires: java-11-openjdk-devel
%else
BuildRequires: java-1.8.0-openjdk-devel
%endif
%else
BuildRequires: java-devel
%endif
BuildArch: noarch
Obsoletes:      de-mpg-mpia-rjm-cds2xephem <= 4.029

%description

This Java packge is a set of classes that convert a subset of star cataloges of the <a href="https://cds.unistra.fr/">CDS</a> to the <a href="https://en.wikipedia.org/wiki/XEphem">XEphem</a> format.
The use of old versions of the program is detailed in <a href="https://vixra.org/abs/1802.0035">vixra:1802.0035</a>, of the current version in the PDF file within the jar bundle.

%if 0%{?fedora_version} || 0%{?centos_version}
%global debug_package %{nil}
%endif

%{!?javac: %define javac javac}
%{!?jar: %define jar jar}
%{!?java: %define java java}

%prep
cd %{_builddir}
cp %{_sourcedir}/* .

%jar xf Cds2XEphem-%{version}.jar

%define mexe cds2xephem

%build
%{javac} -sourcepath %{SOURCE1} de/*/*/*/*.java
%{jar} cf %{name}.jar de vixra*.pdf

echo "#!/bin/bash" > %{mexe}
echo java -classpath %{_javadir}/%{name}.jar '$*' >> %{mexe}

%install
%{__mkdir_p} %{buildroot}%{_javadir} %{buildroot}%{_bindir}
%{__install} %{name}.jar %{buildroot}%{_javadir}
%{__install} -m 0755 %{mexe} %{buildroot}%{_bindir}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/%{mexe}
%{_javadir}/%{name}.jar

%changelog
* Mon Feb 05 2024 Richard J. Mathar
- time zone changes in MpcObscodTZ
- avoid NaN for arccos results in angular distance calculations
- added -m switch for GaiaCat -F calls

* Wed Jan 31 2024 Richard J. Mathar
- support conversion of the Lowell asteroid data base

* Fri Jun 17 2022 Richard J. Mathar
- handle Gaia DR3 files (lines starting with #)
- support IPHASE data format

* Wed May 25 2022 Richard J. Mathar
- Added option to decimate GAIA csv files to field stars

* Sun May 15 2022 Richard J. Mathar
- Added option to convert GAIA csv files to Wallace's TPoint format

* Mon Dec 20 2021 Richard J. Mathar
- GAIA converter precession update: these are equinox 2000 effectively
- GAIA converter adapted to support DR2

* Tue Nov 16 2021 Richard J. Mathar
- Converter for GAIA EDR3 catalog included

* Thu Oct 07 2021 Richard J. Mathar
- RPM package version published as version 6 of vixra:1802.0035

* Tue Oct 01 2020 Richard J. Mathar
- RPM package version published with version 5 of vixra:1802.0035
openSUSE Build Service is sponsored by