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