New upstream version

Reorganizing patches
epel9
Sergio Pascual 13 years ago
parent 29bdddbf8c
commit b21c90327b

1
.gitignore vendored

@ -1,3 +1,4 @@
cfitsio3250.tar.gz cfitsio3250.tar.gz
/cfitsio3270.tar.gz /cfitsio3270.tar.gz
/cfitsio3280.tar.gz /cfitsio3280.tar.gz
/cfitsio3290.tar.gz

@ -1,9 +0,0 @@
diff -ur cfitsio/cfitsio.pc.in cfitsio.new/cfitsio.pc.in
--- cfitsio/cfitsio.pc.in 2011-10-29 16:54:43.081132723 +0200
+++ cfitsio.new/cfitsio.pc.in 2011-10-29 16:56:49.933619756 +0200
@@ -8,4 +8,4 @@
Version: 3.280
Libs: -L${libdir} -lcfitsio @LIBS@
Libs.private: -lm
-Cflags: -I${includedir}
+Cflags: -D_REENTRANT -I${includedir}

@ -1,12 +0,0 @@
diff -ur cfitsio/cfitsio.pc.in cfitsio-pkgconfig/cfitsio.pc.in
--- cfitsio/cfitsio.pc.in 2010-01-26 12:39:34.000000000 -0500
+++ cfitsio-pkgconfig/cfitsio.pc.in 2010-02-21 15:18:26.000000000 -0500
@@ -5,7 +5,7 @@
Name: cfitsio
Description: FITS File Subroutine Library
-Version: 3.28
+Version: 3.280
Libs: -L${libdir} -lcfitsio @LIBS@
Libs.private: -lm
Cflags: -I${includedir}

@ -20,15 +20,3 @@ diff -ur cfitsio/configure cfitsio-fixed/configure
lhea_shlib_cflags='-fPIC' lhea_shlib_cflags='-fPIC'
fi fi
if test "x$lhea_shlib_cflags" != x; then if test "x$lhea_shlib_cflags" != x; then
diff -ur cfitsio/Makefile.in cfitsio-fixed/Makefile.in
--- cfitsio/Makefile.in 2011-01-10 12:04:46.000000000 -0500
+++ cfitsio-fixed/Makefile.in 2011-04-11 11:33:54.385980894 -0400
@@ -22,8 +22,8 @@
exec_prefix = @exec_prefix@
DESTDIR =
CFITSIO_PREFIX = $(prefix)
-CFITSIO_LIB = $(DESTDIR)$(exec_prefix)/lib
-CFITSIO_INCLUDE = $(DESTDIR)$(prefix)/include
+CFITSIO_LIB = $(DESTDIR)$(exec_prefix)/$(LIBDIR)
+CFITSIO_INCLUDE = $(DESTDIR)$(prefix)/$(INCLUDEDIR)
INSTALL_DIRS = $(DESTDIR)@INSTALL_ROOT@ ${CFITSIO_LIB} ${CFITSIO_LIB}/pkgconfig ${CFITSIO_INCLUDE}

@ -1,18 +1,15 @@
Name: cfitsio Name: cfitsio
Version: 3.280 Version: 3.290
Release: 2%{?dist} Release: 1%{?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
URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3280.tar.gz Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3290.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: cfitsio.patch Patch0: cfitsio.patch
Patch1: cfitsio-pkgconfig.patch Patch1: makefile.patch
Patch2: cfitsio-s390.patch Patch2: cfitsio-s390.patch
Patch3: makefile.patch
Patch4: cfitsio-pkgconfig-reentrant.patch
BuildRequires: gcc-gfortran BuildRequires: gcc-gfortran
Requires(post): /sbin/ldconfig Requires(post): /sbin/ldconfig
@ -80,8 +77,13 @@ compression algorithm.
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1 # Fixing cfitsio.pc.in
%patch4 -p1 sed -e 's|3.29|3.290|' -i cfitsio.pc.in
sed -e 's|Libs: -L${libdir} -lcfitsio @LIBS@|Libs: -L${libdir} -lcfitsio|' -i cfitsio.pc.in
sed -e 's|Libs.private: -lm|Libs.private: @LIBS@ -lm|' -i cfitsio.pc.in
sed -e 's|Cflags: -I${includedir}|Cflags: -D_REENTRANT -I${includedir}|' -i cfitsio.pc.in
# Manually fix pkgconfig .pc.in file (BZ 436539, BZ 618291)
sed -e 's|includedir=@includedir@|includedir=@includedir@/cfitsio|' -i cfitsio.pc.in
%build %build
FC=f95 FC=f95
@ -93,9 +95,6 @@ ln -s libcfitsio.so.0 libcfitsio.so
make fpack %{?_smp_mflags} make fpack %{?_smp_mflags}
make funpack %{?_smp_mflags} make funpack %{?_smp_mflags}
unset FC unset FC
# Manually fix pkgconfig .pc file (BZ 436539, BZ 618291)
sed 's|/usr/include|/usr/include/%{name}|' cfitsio.pc >cfitsio.pc.new
mv cfitsio.pc.new cfitsio.pc
%check %check
make testprog make testprog
@ -116,40 +115,36 @@ popd
mkdir %{buildroot}%{_bindir} mkdir %{buildroot}%{_bindir}
cp -p f{,un}pack %{buildroot}%{_bindir}/ cp -p f{,un}pack %{buildroot}%{_bindir}/
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-)
%doc README License.txt changes.txt %doc README License.txt changes.txt
%{_libdir}/libcfitsio.so.* %{_libdir}/libcfitsio.so.*
%files devel %files devel
%defattr(-,root,root,-)
%{_includedir}/%{name} %{_includedir}/%{name}
%{_libdir}/libcfitsio.so %{_libdir}/libcfitsio.so
%{_libdir}/pkgconfig/cfitsio.pc %{_libdir}/pkgconfig/cfitsio.pc
%files static %files static
%defattr(-,root,root,-)
%doc License.txt %doc License.txt
%{_libdir}/libcfitsio.a %{_libdir}/libcfitsio.a
%files docs %files docs
%defattr(-,root,root,-)
%doc fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps License.txt %doc fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps License.txt
%files -n fpack %files -n fpack
%defattr(-,root,root,-)
%doc fpackguide.pdf License.txt %doc fpackguide.pdf License.txt
%{_bindir}/fpack %{_bindir}/fpack
%{_bindir}/funpack %{_bindir}/funpack
%changelog %changelog
* Mon Dec 05 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.290-1
- New upstream version
- Reorganizing patches
* Sat Oct 29 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.280-2 * Sat Oct 29 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.280-2
- Enable multithreading support - Enable multithreading support

@ -1 +1 @@
fdb9c0f51678b47e78592c70fb5dc793 cfitsio3280.tar.gz d0d460c5e314a15fa6905b2096159827 cfitsio3290.tar.gz

Loading…
Cancel
Save