87e513d
Name: CCfits
53305b2
Version: 1.6
53305b2
Release: 1%{?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
87e513d
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
87e513d
5302cf0
BuildRequires: cfitsio-devel >= 3.020 
87e513d
Requires(post): /sbin/ldconfig
87e513d
Requires(postun): /sbin/ldconfig
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
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
e4c2b7a
# Remove perl files in html docs
e4c2b7a
rm -rf %{_builddir}/%{name}/html/*.pl
87e513d
87e513d
%build
87e513d
%configure --disable-static --with-cfitsio=%{_prefix} --with-cfitsio-include=%{_includedir}/cfitsio
87e513d
make %{?_smp_mflags}
87e513d
87e513d
%install
87e513d
rm -fr %{buildroot}
87e513d
make install DESTDIR=%{buildroot}
87e513d
87e513d
%clean
87e513d
rm -fr %{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
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.
69dd8fe
* Tue Sep 12 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.5-3
69dd8fe
- Rebuild for FC6.
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).
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.
a8cc60d
* Wed Mar 08 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.4-4
b3e27d7
- Removed explicit Buildrequires gcc-c++.
87e513d
* Tue Mar 07 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.4-3
87e513d
- Rebuilt with new upstream source.
87e513d
* Mon Mar 06 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.4-2
87e513d
- Removed Source with license file License.txt.
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.
87e513d
* Thu Feb 16 2006 Sergio Pascual <spr at astrax.fis.ucm.es> 1.4-0
87e513d
- Initial spec file.