|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Name: cfitsio
|
|
|
|
|
Version: 3.330
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: Library for manipulating FITS data files
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
License: MIT
|
|
|
|
@ -89,8 +89,8 @@ FC=f95
|
|
|
|
|
export FC
|
|
|
|
|
export CC=gcc # fixes -O*, -g
|
|
|
|
|
%configure --enable-reentrant
|
|
|
|
|
make shared %{?_smp_mflags} SHLIB_LD="gcc -shared -Wl,-soname,libcfitsio.so.%{version}" SHLIB_SUFFIX=".so.%{version}"
|
|
|
|
|
ln -s libcfitsio.so.%{version} libcfitsio.so
|
|
|
|
|
make shared %{?_smp_mflags} SHLIB_LD="gcc -shared -Wl,-soname,libcfitsio-%{version}.so.0" SHLIB_SUFFIX="-%{version}.so.0"
|
|
|
|
|
ln -s libcfitsio-%{version}.so.0 libcfitsio.so
|
|
|
|
|
make fpack %{?_smp_mflags}
|
|
|
|
|
make funpack %{?_smp_mflags}
|
|
|
|
|
unset FC
|
|
|
|
@ -106,11 +106,14 @@ rm -rf %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
|
|
|
|
make LIBDIR=%{_lib} INCLUDEDIR=include/%{name} CFITSIO_LIB=%{buildroot}%{_libdir} \
|
|
|
|
|
CFITSIO_INCLUDE=%{buildroot}%{_includedir}/%{name} SHLIB_SUFFIX=".so.%{version}" install
|
|
|
|
|
chmod 755 %{buildroot}%{_libdir}/libcfitsio.so.%{version}
|
|
|
|
|
make LIBDIR=%{_lib} INCLUDEDIR=include/%{name} \
|
|
|
|
|
CFITSIO_LIB=%{buildroot}%{_libdir} \
|
|
|
|
|
CFITSIO_INCLUDE=%{buildroot}%{_includedir}/%{name} \
|
|
|
|
|
SHLIB_SUFFIX="-%{version}.so.0" \
|
|
|
|
|
install
|
|
|
|
|
chmod 755 %{buildroot}%{_libdir}/libcfitsio-%{version}.so.0
|
|
|
|
|
pushd %{buildroot}%{_libdir}
|
|
|
|
|
ln -s libcfitsio.so.%{version} libcfitsio.so
|
|
|
|
|
ln -s libcfitsio-%{version}.so.0 libcfitsio.so
|
|
|
|
|
popd
|
|
|
|
|
mkdir %{buildroot}%{_bindir}
|
|
|
|
|
cp -p f{,un}pack %{buildroot}%{_bindir}/
|
|
|
|
@ -122,7 +125,7 @@ chmod 755 %{buildroot}%{_bindir}/f{,un}pack
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README License.txt changes.txt
|
|
|
|
|
%{_libdir}/libcfitsio.so.*
|
|
|
|
|
%{_libdir}/libcfitsio-%{version}.so.0
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
@ -142,6 +145,9 @@ chmod 755 %{buildroot}%{_bindir}/f{,un}pack
|
|
|
|
|
%{_bindir}/funpack
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Mar 19 2013 Sergio Pascual <sergiopr@fedoraproject.org> - 3.330-4
|
|
|
|
|
- Using libcfitsio-version.so.0 as soname
|
|
|
|
|
|
|
|
|
|
* Tue Mar 19 2013 Sergio Pascual <sergiopr@fedoraproject.org> - 3.330-3
|
|
|
|
|
- Fixed permissions of libcfitsio and fpack, funpack
|
|
|
|
|
|
|
|
|
|