Name: gsc Version: 1.2 Release: 1%{?dist} Summary: Hubble Guide Star Catalog (GSC) License: GPLv3 URL: https://github.com/ValNyz/gsc VCS: git+https://github.com/ValNyz/gsc.git#dcc08443477397d30ed0dbf81fb2cfae2464fc53: Source0: https://cdsarc.u-strasbg.fr/viz-bin/nph-Cat/tar.gz?bincats/GSC_1.2#/%{name}-%{version}.tar.gz Patch0: Makefile.patch Patch1: decode.c.patch Patch2: get_head.c.patch Patch3: gsc.c.patch Patch4: to_d.c.patch Patch5: genreg.c.patch BuildRequires: gcc %description The GSC 1.2 catalog from u-strasbg.fr %prep %setup -q -c %{name}-%{version} %patch 0 -p0 %patch 1 -p0 %patch 2 -p0 %patch 3 -p0 %patch 4 -p0 %patch 5 -p0 %build cd src %make_build %install cd src %make_install cd .. rm -rf %{buildroot}/ mkdir -p -m 755 %{buildroot}%{_bindir} %{buildroot}%{_datadir}/GSC install -D -m 755 bin/decode %{buildroot}%{_bindir} install -D -m 755 bin/gsc %{buildroot}%{_bindir} install -D -m 644 bin/regions* %{buildroot}%{_bindir} install -D -m 644 regions* %{buildroot}%{_datadir}/GSC for gsc_folder in N* S*; do install -D -m 755 -d %{buildroot}%{_datadir}/GSC/$gsc_folder install -m 644 $gsc_folder/* %{buildroot}%{_datadir}/GSC/$gsc_folder done %files %{_datadir}/GSC/* %{_bindir}/* %changelog * Thu Nov 5 2020 Jim Howard - updated to build directly * Sun Jul 6 2014 Christian Dersch - initial build