Matthew D Truch 988f9f1
Name:           cfitsio
Matthew D Truch 5131c51
Version:        3.006
Matthew D Truch 9a8deea
Release:        2%{?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 d9aca5a
URL:            http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
Matthew D Truch 5131c51
Source0:        ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3006.tar.gz
Matthew D Truch 9f3ec05
Patch:          cfitsio.patch
Matthew D Truch 988f9f1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
BuildRequires:     gcc-gfortran
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 9f3ec05
%patch -p1
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%build
Matthew D Truch 988f9f1
FC=g95
Matthew D Truch 988f9f1
export FC
Matthew D Truch 988f9f1
%configure --prefix=%{buildroot}/%{_prefix} --includedir=%{buildroot}/%{_includedir}/%{name}
Matthew D Truch 988f9f1
make shared %{?_smp_mflags}
Matthew D Truch d74f867
unset FC
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 9f3ec05
LIBDIR=%{_lib} INCLUDEDIR=include/%{name} make install
Matthew D Truch d74f867
pushd %{buildroot}%{_libdir}
Matthew D Truch 9f3ec05
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 9a8deea
%doc README License.txt changes.txt fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps
Matthew D Truch 9f3ec05
%{_libdir}/libcfitsio.so.*
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%files devel
Matthew D Truch d74f867
%{_includedir}/%{name}
Matthew D Truch d74f867
%{_libdir}/libcfitsio.a
Matthew D Truch 9f3ec05
%{_libdir}/libcfitsio.so
Matthew D Truch 988f9f1
Matthew D Truch 988f9f1
%changelog
Matthew D Truch 9a8deea
* Tue Feb 28 2006 Matthew Truch <matt at truch.net> - 3.006-2
Matthew D Truch 9a8deea
- Fix spelling typo in name of License.txt file.
Matthew D Truch 9a8deea
Matthew D Truch 5131c51
* Tue Feb 28 2006 Matthew Truch <matt at truch.net> - 3.006-1
Matthew D Truch 5131c51
- Use new 3.006 fully official stable (non-beta) upstream package.
Matthew D Truch 5131c51
Matthew D Truch 1862ab6
* Tue Feb 28 2006 Matthew Truch <matt at truch.net> - 3.005-0.2.beta
Matthew D Truch 1862ab6
- Bump release for FC5 extras rebuild.
Matthew D Truch 1862ab6
Matthew D Truch 4a996a0
* Fri Dec 23 2005 Matthew Truch <matt at truch.net> - 3.005-0.1.beta
Matthew D Truch 4a996a0
- Update to 3.005beta release.
Matthew D Truch 4a996a0
Matthew D Truch d9aca5a
* Mon Nov 14 2005 Matthew Truch <matt at truch.net> - 3.004-0.12.b
Matthew D Truch d9aca5a
- Put in proper URL and Source addresses.
Matthew D Truch d9aca5a
- Sync up spec files.
Matthew D Truch d9aca5a
Matthew D Truch 634d611
* Sun Nov 13 2005 Matthew Truch <matt at truch.net> - 3.004-0.11.b
Matthew D Truch 634d611
- Clean up unused code in spec file.
Matthew D Truch 634d611
Matthew D Truch 9f3ec05
* Sun Nov 13 2005 Matthew Truch <matt at truch.net> - 3.004-0.10.b
Matthew D Truch 9f3ec05
- Set environment variables correctly.
Matthew D Truch 9f3ec05
- Include patch so Makefile will put things where they belong.
Matthew D Truch 9f3ec05
Matthew D Truch 9f3ec05
* Sun Nov 13 2005 Matthew Truch <matt at truch.net> - 3.004-0.9.b
Matthew D Truch 9302152
- Set libdir and includedir correctly for build process.
Matthew D Truch 9302152
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