87e513d
Name: CCfits
ca655aa
Version: 2.1
c1855b9
Release: 4%{?dist}
87e513d
Summary: A C++ interface for cfitsio
87e513d
87e513d
Group: Development/Libraries
87e513d
License: BSD
87e513d
URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits
c69f4fb
Source0: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits/%{name}-%{version}.tar.gz
53305b2
Patch0: CCfits-1.6-removerpath.patch
9c9b560
Patch1: CCfits-includecfitsiopath.patch
9c9b560
Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
87e513d
bfc79f0
BuildRequires: cfitsio-devel >= 3.130
87e513d
87e513d
%description
87e513d
CCfits is an object oriented interface to the cfitsio library. It is designed 
87e513d
to make the capabilities of cfitsio available to programmers working in C++. 
87e513d
It is written in ANSI C++ and implemented using the C++ Standard Library 
87e513d
with namespaces, exception handling, and member template functions.
87e513d
87e513d
%package devel
87e513d
Summary: Headers for developing programs that will use %{name}
87e513d
Group: Development/Libraries
87e513d
Requires: cfitsio-devel
87e513d
Requires: %{name} = %{version}-%{release}
87e513d
%description devel
87e513d
These are the header files and libraries needed to develop a %{name} 
87e513d
application.
87e513d
87e513d
%package docs
87e513d
Summary: Documentation for %{name}, includes full API docs
87e513d
Group: Documentation
c1855b9
BuildArch: noarch
87e513d
 
87e513d
%description docs
87e513d
This package contains the full API documentation for %{name}.
87e513d
87e513d
%prep
87e513d
%setup -q -n CCfits
87e513d
%patch0 -p1
5249785
%patch1 -p1
ca655aa
#%{__sed} -e 's|#include "fitsio.h"|#include <cfitsio/fitsio.h>|g' -i CCfits.h FITSBase.h
ca655aa
#%{__sed} -e 's|#include "longnam.h"|#include <cfitsio/longnam.h>|g' -i CCfits.h FITSBase.h
e4c2b7a
# Remove perl files in html docs
658267e
%{__rm} -rf %{_builddir}/%{name}/html/*.pl
87e513d
87e513d
%build
87e513d
%configure --disable-static --with-cfitsio=%{_prefix} --with-cfitsio-include=%{_includedir}/cfitsio
658267e
%{__make} %{?_smp_mflags}
87e513d
87e513d
%install
658267e
%{__rm} -rf %{buildroot}
658267e
%{__make} %{?_smp_mflags}  install DESTDIR=%{buildroot}
87e513d
87e513d
%clean
658267e
%{__rm} -rf %{buildroot}
87e513d
87e513d
%post -p /sbin/ldconfig
87e513d
87e513d
%postun -p /sbin/ldconfig
87e513d
87e513d
%files
87e513d
%defattr(-,root,root)
87e513d
%doc License.txt
87e513d
%{_libdir}/*so.*
87e513d
87e513d
%files devel
87e513d
%defattr(-,root,root)
87e513d
%doc CHANGES 
87e513d
%exclude %{_bindir}/cookbook
87e513d
%{_libdir}/*.so
87e513d
%exclude %{_libdir}/*.la
87e513d
%{_includedir}/*
87e513d
87e513d
%files docs
87e513d
%defattr(-,root,root,-)
87e513d
%doc html
87e513d
87e513d
%changelog
c1855b9
* Tue Jun 16 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 2.1-4
c1855b9
- Noarch subpackage for docs
c1855b9
436b833
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-3
436b833
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
436b833
bfc79f0
* Fri Feb 06 2009 Sergio Pascual <sergiopr at fedoraproject.org> 2.1-2
bfc79f0
- Rebuilt to match new cfitsio 3.130
bfc79f0
ca655aa
* Wed Dec 03 2008 Sergio Pascual <sergiopr at fedoraproject.org> 2.1-1
ca655aa
- New upstream source
ca655aa
- Rebuilt needed to fix bz #474087
ca655aa
20d1fdf
* Sat Feb 09 2008 Sergio Pascual <sergiopr at fedoraproject.org> 2.0-1
20d1fdf
- New upstream source
20d1fdf
9c9b560
* Wed Nov 13 2007 Sergio Pascual <sergiopr at fedoraproject.org> 1.8-1
9c9b560
- New upstream source
9c9b560
e760e2e
* Mon Aug 27 2007 Sergio Pascual <spr at astrax.fis.ucm.es> 1.7-1.1
e760e2e
- Rebuild for Fedora 8 by bad binutils in ppc32
9c9b560
658267e
* Sun Jul 22 2007 Sergio Pascual <spr at astrax.fis.ucm.es> 1.7-1
658267e
- New upstream source 1.7
9c9b560
5249785
* Thu Feb 01 2007 Sergio Pascual <spr at astrax.fis.ucm.es> 1.6-2
5249785
- Patch to fix the include directives of cfitsio in header files.
9c9b560
53305b2
* Mon Dec 11 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.6-1
5302cf0
- New upstream version 1.6. Only compiles with cfitsio >= 3.020.
9c9b560
69dd8fe
* Tue Sep 12 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.5-3
69dd8fe
- Rebuild for FC6.
9c9b560
e4c2b7a
* Fri Jul 28 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.5-2
b3e27d7
- Removed perl files in the documentation (bug #200517).
9c9b560
c69f4fb
* Thu Jul 27 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.5-1
b3e27d7
- New upstream source 1.5.
c69f4fb
- Removed patch CCfits-1.4-g++4.patch (integrated in the source)
b3e27d7
- Perl files in docs removed in the source.
9c9b560
a8cc60d
* Wed Mar 08 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.4-4
b3e27d7
- Removed explicit Buildrequires gcc-c++.
9c9b560
87e513d
* Tue Mar 07 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.4-3
87e513d
- Rebuilt with new upstream source.
9c9b560
87e513d
* Mon Mar 06 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.4-2
87e513d
- Removed Source with license file License.txt.
9c9b560
87e513d
* Mon Feb 20 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.4-1
87e513d
- Removed perl files in documentation.
87e513d
- Changed license type to BSD.
87e513d
- Main summary changed and trailing dots removed.
b3e27d7
- Removed -rpath in the shared library.
9c9b560
87e513d
* Thu Feb 16 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.4-0
87e513d
- Initial spec file.