|
Matthew D Truch |
988f9f1 |
Name: cfitsio
|
|
Matthew D Truch |
988f9f1 |
Version: 3.004
|
|
Matthew D Truch |
d74f867 |
Release: 0.8.b
|
|
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 |
988f9f1 |
URL: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3004bbeta.tar.gz
|
|
Matthew D Truch |
988f9f1 |
Source0: cfitsio3004bbeta.tar.gz
|
|
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 |
http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
|
|
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 |
988f9f1 |
|
|
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 |
d74f867 |
cat Makefile | \
|
|
Matthew D Truch |
d74f867 |
sed -e 's|cc -shared|cc -shared -Wl,-soname,libcfitsio.so.0|g' \
|
|
Matthew D Truch |
d74f867 |
> Makefile.new
|
|
Matthew D Truch |
d74f867 |
mv Makefile.new Makefile
|
|
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 |
988f9f1 |
make install
|
|
Matthew D Truch |
988f9f1 |
#move headers to correct location (configure doesn't obey --includedir)
|
|
Matthew D Truch |
d74f867 |
mkdir -p %{buildroot}%{_includedir}/%{name}
|
|
Matthew D Truch |
d74f867 |
mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/%{name}
|
|
Matthew D Truch |
d74f867 |
pushd %{buildroot}%{_libdir}
|
|
Matthew D Truch |
d74f867 |
ln -s libcfitsio.so libcfitsio.so.0
|
|
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 |
988f9f1 |
%doc README Licence.txt changes.txt fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps
|
|
Matthew D Truch |
d74f867 |
%{_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 |
988f9f1 |
|
|
Matthew D Truch |
988f9f1 |
%changelog
|
|
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 |
|