Blob Blame History Raw
Name:           cdsclient
Version:        3.80
Release:        2%{?dist}
Summary:        Tools to query databases at CDS

License:        GPLv3
# Patch to get useful debuginfo. strip was called in Makefile before and compiler
# flags were ignored, submitted upstream by email
Patch0:         fix_makefile_debuginfo.patch
# Upstream places abibcode.awk in /usr/bin although it is not an executable but
# arch independent data
Patch1:         abibcode_share_location_trim.patch

# wget is used by some of the shell scripts to fetch data from servers
Requires:       wget

The cdsclient package is a set of C and shell routines which can be built on
Unix stations or PCs running Linux, which once compiled allow to query some 
databases located at CDS or on mirrors over the network.

The cdsclient package includes two generic query programs:
- vizquery, a program to remotely query VizieR. It connects the VizieR server
  via the HTTP protocol (requires an access to the port 80)
- find_cats, a program for fast access to large surveys from a list of 
  positions, via a dedicated client (requires an access to the port 1660)
  Specific programs like find2mass or finducac3 are connecting directly to one
  of the very large surveys available from CDS (a very large survey has 107 
  or more rows).

%setup -q
%patch0 -p1
%patch1 -p1

make %{?_smp_mflags}

# make install doesn't create directories
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}
mkdir -p %{buildroot}%{_datadir}/%{name}
%make_install PREFIX=%{buildroot}%{_prefix} MANDIR=%{buildroot}%{_mandir}
# Remove this unneeded stuff
rm -f %{buildroot}%{_prefix}/versions
rm -f %{buildroot}%{_bindir}/find_cats.gz
# Move abibcode.awk (non executable called by abibcode) to /usr/share/cdsclient/
mv %{buildroot}%{_bindir}/abibcode.awk %{buildroot}%{_datadir}/%{name}/abibcode.awk
%{_fixperms} %{buildroot}/*

%if 0%{?fedora} >= 21
%dir %{_datadir}/%{name}
%dir %{_mandir}/mantex

* Wed Feb 03 2016 Fedora Release Engineering <> - 3.80-2
- Rebuilt for

* Mon Jun 22 2015 Christian Dersch <> - 3.80-1
- new upstream release

* Wed Jun 17 2015 Fedora Release Engineering <> - 3.79-2
- Rebuilt for

* Fri Apr  3 2015 Christian Dersch <> - 3.79-1
- new upstream release

* Sun Jan 25 2015 Christian Dersch <> - 3.78-3
- spec cleanups

* Sun Jan 25 2015 Christian Dersch <> - 3.78-2
- move non-executable file abibcode.awk to /usr/share/cdsclient

* Mon Jan 19 2015 Christian Dersch <> - 3.78-1
- new upstream release
- patch Makefile to be able to generate useful debuginfo
- enable debuginfo

* Mon Jan 12 2015 Christian Dersch <> - 3.77-1
- initial spec