|
|
@ -1,6 +1,6 @@
|
|
|
|
Name: cfitsio
|
|
|
|
Name: cfitsio
|
|
|
|
Version: 3.004
|
|
|
|
Version: 3.004
|
|
|
|
Release: 0.6.b
|
|
|
|
Release: 0.8.b
|
|
|
|
Summary: Library for manipulating FITS data files
|
|
|
|
Summary: Library for manipulating FITS data files
|
|
|
|
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
@ -41,16 +41,23 @@ Headers required when building a program against the cfitsio library.
|
|
|
|
FC=g95
|
|
|
|
FC=g95
|
|
|
|
export FC
|
|
|
|
export FC
|
|
|
|
%configure --prefix=%{buildroot}/%{_prefix} --includedir=%{buildroot}/%{_includedir}/%{name}
|
|
|
|
%configure --prefix=%{buildroot}/%{_prefix} --includedir=%{buildroot}/%{_includedir}/%{name}
|
|
|
|
|
|
|
|
cat Makefile | \
|
|
|
|
|
|
|
|
sed -e 's|cc -shared|cc -shared -Wl,-soname,libcfitsio.so.0|g' \
|
|
|
|
|
|
|
|
> Makefile.new
|
|
|
|
|
|
|
|
mv Makefile.new Makefile
|
|
|
|
make shared %{?_smp_mflags}
|
|
|
|
make shared %{?_smp_mflags}
|
|
|
|
|
|
|
|
unset FC
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}
|
|
|
|
mkdir -p %{buildroot}
|
|
|
|
make install
|
|
|
|
make install
|
|
|
|
#move headers to correct location (configure doesn't obey --includedir)
|
|
|
|
#move headers to correct location (configure doesn't obey --includedir)
|
|
|
|
mkdir -p %{buildroot}/%{_includedir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
|
|
|
mv %{buildroot}/%{_includedir}/*.h %{buildroot}/%{_includedir}/%{name}
|
|
|
|
mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/%{name}
|
|
|
|
|
|
|
|
pushd %{buildroot}%{_libdir}
|
|
|
|
|
|
|
|
ln -s libcfitsio.so libcfitsio.so.0
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
@ -62,14 +69,19 @@ rm -rf %{buildroot}
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README Licence.txt changes.txt fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps
|
|
|
|
%doc README Licence.txt changes.txt fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps
|
|
|
|
/%{_prefix}/%{_lib}/libcfitsio.so
|
|
|
|
%{_libdir}/libcfitsio.so*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
/%{_includedir}/%{name}
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
/%{_includedir}/%{name}/*.h
|
|
|
|
%{_libdir}/libcfitsio.a
|
|
|
|
/%{_prefix}/%{_lib}/libcfitsio.a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sat Nov 12 2005 Matthew Truch <matt at truch.net> - 3.004-0.8.b
|
|
|
|
|
|
|
|
- unset FC once we are done with the build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Nov 12 2005 Ed Hill <ed@eh3.com> - 3.004-0.7.b
|
|
|
|
|
|
|
|
- shared libs and small cleanups
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Nov 06 2005 Matthew Truch <matt at truch.net> - 3.004-0.6.b
|
|
|
|
* Sun Nov 06 2005 Matthew Truch <matt at truch.net> - 3.004-0.6.b
|
|
|
|
- Own include directory created by the devel package.
|
|
|
|
- Own include directory created by the devel package.
|
|
|
|
|
|
|
|
|
|
|
|