|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Name: cfitsio
|
|
|
|
|
Version: 3.004
|
|
|
|
|
Release: 0.6.b
|
|
|
|
|
Release: 0.8.b
|
|
|
|
|
Summary: Library for manipulating FITS data files
|
|
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
@ -41,16 +41,23 @@ Headers required when building a program against the cfitsio library.
|
|
|
|
|
FC=g95
|
|
|
|
|
export FC
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
|
|
unset FC
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}
|
|
|
|
|
make install
|
|
|
|
|
#move headers to correct location (configure doesn't obey --includedir)
|
|
|
|
|
mkdir -p %{buildroot}/%{_includedir}/%{name}
|
|
|
|
|
mv %{buildroot}/%{_includedir}/*.h %{buildroot}/%{_includedir}/%{name}
|
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
|
|
|
|
mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/%{name}
|
|
|
|
|
pushd %{buildroot}%{_libdir}
|
|
|
|
|
ln -s libcfitsio.so libcfitsio.so.0
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
@ -62,14 +69,19 @@ rm -rf %{buildroot}
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc README Licence.txt changes.txt fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps
|
|
|
|
|
/%{_prefix}/%{_lib}/libcfitsio.so
|
|
|
|
|
%{_libdir}/libcfitsio.so*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
/%{_includedir}/%{name}
|
|
|
|
|
/%{_includedir}/%{name}/*.h
|
|
|
|
|
/%{_prefix}/%{_lib}/libcfitsio.a
|
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
%{_libdir}/libcfitsio.a
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
- Own include directory created by the devel package.
|
|
|
|
|
|
|
|
|
|