8539f0b
Name:           cdsclient
2639b2c
Version:        3.84
f1d8f87
Release:        6%{?dist}
8539f0b
Summary:        Tools to query databases at CDS
8539f0b
8539f0b
License:        GPLv3
8539f0b
URL:            http://cdsarc.u-strasbg.fr/doc/cdsclient.html
8539f0b
Source0:        ftp://cdsarc.u-strasbg.fr/pub/sw/%{name}-%{version}.tar.gz
c605e95
# Patch to get useful debuginfo. strip was called in Makefile before and compiler
c605e95
# flags were ignored, submitted upstream by email
8539f0b
Patch0:         fix_makefile_debuginfo.patch
c605e95
# Upstream places abibcode.awk in /usr/bin although it is not an executable but
c605e95
# arch independent data
8539f0b
Patch1:         abibcode_share_location_trim.patch
8539f0b
f1d8f87
BuildRequires:  gcc
f1d8f87
c605e95
# wget is used by some of the shell scripts to fetch data from servers
8539f0b
Requires:       wget
8539f0b
8539f0b
%description
8539f0b
The cdsclient package is a set of C and shell routines which can be built on
8539f0b
Unix stations or PCs running Linux, which once compiled allow to query some 
8539f0b
databases located at CDS or on mirrors over the network.
8539f0b
8539f0b
The cdsclient package includes two generic query programs:
8539f0b
- vizquery, a program to remotely query VizieR. It connects the VizieR server
8539f0b
  via the HTTP protocol (requires an access to the port 80)
8539f0b
- find_cats, a program for fast access to large surveys from a list of 
8539f0b
  positions, via a dedicated client (requires an access to the port 1660)
8539f0b
  Specific programs like find2mass or finducac3 are connecting directly to one
8539f0b
  of the very large surveys available from CDS (a very large survey has 107 
8539f0b
  or more rows).
8539f0b
  
8539f0b
8539f0b
%prep
8539f0b
%setup -q
8539f0b
%patch0 -p1
8539f0b
%patch1 -p1
8539f0b
8539f0b
8539f0b
%build
8539f0b
%configure 
8539f0b
make %{?_smp_mflags}
8539f0b
8539f0b
8539f0b
%install
8539f0b
# make install doesn't create directories
8539f0b
mkdir -p %{buildroot}%{_bindir}
8539f0b
mkdir -p %{buildroot}%{_mandir}
8539f0b
mkdir -p %{buildroot}%{_datadir}/%{name}
8539f0b
%make_install PREFIX=%{buildroot}%{_prefix} MANDIR=%{buildroot}%{_mandir}
8539f0b
# Remove this unneeded stuff
8539f0b
rm -f %{buildroot}%{_prefix}/versions
8539f0b
rm -f %{buildroot}%{_bindir}/find_cats.gz
8539f0b
# Move abibcode.awk (non executable called by abibcode) to /usr/share/cdsclient/
8539f0b
mv %{buildroot}%{_bindir}/abibcode.awk %{buildroot}%{_datadir}/%{name}/abibcode.awk
8539f0b
%{_fixperms} %{buildroot}/*
8539f0b
8539f0b
8539f0b
%files
8539f0b
%if 0%{?fedora} >= 21
8539f0b
%license COPYING COPYRIGHT
8539f0b
%else
8539f0b
%doc COPYING COPYRIGHT
8539f0b
%endif
8539f0b
%dir %{_datadir}/%{name}
8539f0b
%dir %{_mandir}/mantex
8539f0b
%{_bindir}/*
8539f0b
%{_datadir}/%{name}/abibcode.awk
8539f0b
%{_mandir}/man1/*
8539f0b
%{_mandir}/man3/*
8539f0b
%{_mandir}/mantex/*
8539f0b
8539f0b
8539f0b
%changelog
f1d8f87
* Fri Jul 13 2018 Christian Dersch <lupinix.fedora@gmail.com> - 3.84-6
f1d8f87
- BuildRequires: gcc
f1d8f87
2285a70
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.84-5
2285a70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2285a70
f4e4216
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.84-4
f4e4216
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f4e4216
cf1bec6
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.84-3
cf1bec6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
cf1bec6
1026c80
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.84-2
1026c80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1026c80
2639b2c
* Thu Apr 06 2017 Christian Dersch <lupinix@mailbox.org> - 3.84-1
2639b2c
- new version
2639b2c
daec3db
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.83-2
daec3db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
daec3db
fa06437
* Fri Mar 04 2016 Christian Dersch <lupinix@mailbox.org> - 3.83-1
fa06437
- new version
fa06437
afd7ffc
* Sat Feb 06 2016 Christian Dersch <lupinix@fedoraproject.org> - 3.81-1
afd7ffc
- new version
afd7ffc
3f7f308
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.80-2
3f7f308
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3f7f308
dc8508a
* Mon Jun 22 2015 Christian Dersch <lupinix@fedoraproject.org> - 3.80-1
dc8508a
- new upstream release
dc8508a
47708d8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.79-2
47708d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
47708d8
d152894
* Fri Apr  3 2015 Christian Dersch <lupinix@fedoraproject.org> - 3.79-1
d152894
- new upstream release
d152894
c605e95
* Sun Jan 25 2015 Christian Dersch <lupinix@fedoraproject.org> - 3.78-3
c605e95
- spec cleanups
c605e95
8539f0b
* Sun Jan 25 2015 Christian Dersch <lupinix@fedoraproject.org> - 3.78-2
8539f0b
- move non-executable file abibcode.awk to /usr/share/cdsclient
8539f0b
8539f0b
* Mon Jan 19 2015 Christian Dersch <lupinix@fedoraproject.org> - 3.78-1
8539f0b
- new upstream release
8539f0b
- patch Makefile to be able to generate useful debuginfo
8539f0b
- enable debuginfo
8539f0b
8539f0b
* Mon Jan 12 2015 Christian Dersch <lupinix@fedoraproject.org> - 3.77-1
8539f0b
- initial spec