Matthew D Truch 988f9f1
Name:           cfitsio
Matthew D Truch 626e900
Version:        3.006
Matthew D Truch 2dfa35f
Release:        3%{?dist}
Matthew D Truch 988f9f1
Summary:        Library for manipulating FITS data files
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
Group:          Development/Libraries
Matthew D Truch 988f9f1
License:        GPL
Matthew D Truch 994bd64
URL:            http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
Matthew D Truch 626e900
Source0:        ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3006.tar.gz
Matthew D Truch 7c453fc
Patch:          cfitsio.patch
Matthew D Truch 988f9f1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Matthew D Truch 988f9f1
Matthew D Truch 7c453fc
BuildRequires:     gcc-g77
Matthew D Truch 988f9f1
Requires(post):    /sbin/ldconfig
Matthew D Truch 988f9f1
Requires(postun):  /sbin/ldconfig
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%description
Matthew D Truch 988f9f1
CFITSIO is a library of C and FORTRAN subroutines for reading and writing 
Matthew D Truch 988f9f1
data files in FITS (Flexible Image Transport System) data format. CFITSIO 
Matthew D Truch 988f9f1
simplifies the task of writing software that deals with FITS files by 
Matthew D Truch 988f9f1
providing an easy to use set of high-level routines that insulate the 
Matthew D Truch 988f9f1
programmer from the internal complexities of the FITS file format. At the 
Matthew D Truch 988f9f1
same time, CFITSIO provides many advanced features that have made it the 
Matthew D Truch 988f9f1
most widely used FITS file programming interface in the astronomical 
Matthew D Truch 988f9f1
community.
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%package devel
Matthew D Truch 988f9f1
Group:  Development/Libraries
Matthew D Truch 988f9f1
Summary: Headers required when building programs against cfitsio
Matthew D Truch 988f9f1
Requires: %{name} = %{version}-%{release}
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%description devel
Matthew D Truch 988f9f1
Headers required when building a program against the cfitsio library.
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%prep
Matthew D Truch 988f9f1
%setup -q -n cfitsio
Matthew D Truch 7c453fc
%patch -p1
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%build
Matthew D Truch 988f9f1
%configure --prefix=%{buildroot}/%{_prefix} --includedir=%{buildroot}/%{_includedir}/%{name}
Matthew D Truch 988f9f1
make shared %{?_smp_mflags}
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%install
Matthew D Truch 988f9f1
rm -rf %{buildroot}
Matthew D Truch 988f9f1
mkdir -p %{buildroot}
Matthew D Truch 7c453fc
LIBDIR=%{_lib} INCLUDEDIR=include/%{name} make install
Matthew D Truch d74f867
pushd %{buildroot}%{_libdir}
Matthew D Truch 7c453fc
ln -s libcfitsio.so.0 libcfitsio.so
Matthew D Truch d74f867
popd
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%clean
Matthew D Truch 988f9f1
rm -rf %{buildroot}
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%post -p /sbin/ldconfig
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%postun -p /sbin/ldconfig
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%files
Matthew D Truch 988f9f1
%defattr(-,root,root,-)
Matthew D Truch fc0869f
%doc README License.txt changes.txt fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps
Matthew D Truch 7c453fc
%{_libdir}/libcfitsio.so.*
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%files devel
Matthew D Truch 2dfa35f
%defattr(-,root,root,-)
Matthew D Truch d74f867
%{_includedir}/%{name}
Matthew D Truch d74f867
%{_libdir}/libcfitsio.a
Matthew D Truch 7c453fc
%{_libdir}/libcfitsio.so
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%changelog
Matthew D Truch 2dfa35f
* Thu Mar 30 2006 Matthew Truch <matt at truch.net> - 3.006-3
Matthew D Truch 2dfa35f
- Use defattr() for devel package as well - bug 187366
Matthew D Truch 2dfa35f
Matthew D Truch fc0869f
* Tue Feb 28 2006 Matthew Truch <matt at truch.net> - 3.006-2
Matthew D Truch fc0869f
- Fix spelling typo in name of License.txt file.
Matthew D Truch fc0869f
Matthew D Truch 626e900
* Tue Feb 28 2006 Matthew Truch <matt at truch.net> - 3.006-1
Matthew D Truch 626e900
- Update to 3.006 official non-beta release (minor bugfixes).
Matthew D Truch 626e900
Matthew D Truch d9a6e62
* Fri Dec 23 2005 Matthew Truch <matt at truch.net> - 3.005-0.1.beta
Matthew D Truch d9a6e62
- Update to 3.005beta release.
Matthew D Truch d9a6e62
Matthew D Truch 994bd64
* Mon Nov 14 2005 Matthew Truch <matt at truch.net> - 3.004-0.11.b
Matthew D Truch 994bd64
- Use proper URL: and Source: addresses.
Matthew D Truch 994bd64
- Correct typo in revision number in changelog.
Matthew D Truch 994bd64
Matthew D Truch 994bd64
* Sun Nov 13 2005 Matthew Truch <matt at truch.net> - 3.004-0.10.b
Matthew D Truch 7c453fc
- Patch configure and the Makefile so they obey what they are told
Matthew D Truch 7c453fc
- Require gcc-g77 to build instead of gcc-fortran like FC-4 and newer
Matthew D Truch 7c453fc
Matthew D Truch 7c453fc
* Sun Nov 13 2005 Matthew Truch <matt at truch.net> - 3.004-0.9.b
Matthew D Truch 8425429
- Use dist tag in release for FC-3 branch
Matthew D Truch 8425429
Matthew D Truch d74f867
* Sat Nov 12 2005 Matthew Truch <matt at truch.net> - 3.004-0.8.b
Matthew D Truch d74f867
- unset FC once we are done with the build
Matthew D Truch d74f867
Matthew D Truch d74f867
* Sat Nov 12 2005 Ed Hill <ed@eh3.com> - 3.004-0.7.b
Matthew D Truch d74f867
- shared libs and small cleanups
Matthew D Truch d74f867
Matthew D Truch 988f9f1
* Sun Nov 06 2005 Matthew Truch <matt at truch.net> - 3.004-0.6.b
Matthew D Truch 988f9f1
- Own include directory created by the devel package.
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
* Sun Nov 06 2005 Matthew Truch <matt at truch.net> - 3.004-0.5.b
Matthew D Truch 988f9f1
- Shorten summary.
Matthew D Truch 988f9f1
- Improve specfile post and postun syntax.
Matthew D Truch 988f9f1
- Install headers in cfitsio include subdir.
Matthew D Truch 988f9f1
- Include more documentation provided in tarball.
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
* Sun Nov 06 2005 Matthew Truch <matt at truch.net> - 3.004-0.4.b
Matthew D Truch 988f9f1
- Require cfitsio for cfitsio-devel
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
* Sat Nov 05 2005 Matthew Truch <matt at truch.net> - 3.004-0.3.b
Matthew D Truch 988f9f1
- Use proper virgin tarball from upstream.
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
* Sun Oct 30 2005 Matthew Truch <matt at truch.net> - 3.004-0.2.b
Matthew D Truch 988f9f1
- Include gcc-gfortran build requirment and make sure it gets used.
Matthew D Truch 988f9f1
- Use macros instead of hard coded paths.
Matthew D Truch 988f9f1
- Include home page in description
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
* Sat Oct 29 2005 Matthew Truch <matt at truch.net> - 3.004-0.1.b
Matthew D Truch 988f9f1
- Initial spec file for Fedora Extras.
Matthew D Truch 988f9f1