New upstream version (7.2)

This commit is contained in:
Sergio Pascual 2023-11-01 17:42:41 +01:00
commit b5a281dc06
5 changed files with 149 additions and 21 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/wcslib-7.2.tar.bz2

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: wcslib
# $Id$
NAME := wcslib
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1 @@
SHA512 (wcslib-7.2.tar.bz2) = 31b5800de6530d06788c112abe9581b72980177c19414013314e49a4e8913c5943327c1a8539fef8c585d04ffc598d29490c005a2114d66c82a684bd2226c06d

69
wcslib-perms.patch Normal file
View file

@ -0,0 +1,69 @@
diff -ur wcslib-5.16/C/GNUmakefile wcslib-5.16.perms/C/GNUmakefile
--- wcslib-5.16/C/GNUmakefile 2017-01-15 05:25:01.000000000 +0100
+++ wcslib-5.16.perms/C/GNUmakefile 2017-09-11 12:24:44.434026804 +0200
@@ -252,7 +252,7 @@
install : build
- if [ ! -d "$(LIBDIR)" ] ; then \
- $(INSTALL) -d -m 2775 $(LIBDIR) ; \
+ $(INSTALL) -d -m 775 $(LIBDIR) ; \
fi
$(INSTALL) -m 644 $(WCSLIB) $(LIBDIR)
$(RANLIB) $(LIBDIR)/$(WCSLIB)
@@ -274,7 +274,7 @@
fi ; \
fi
- if [ ! -d "$(INCDIR)" ] ; then \
- $(INSTALL) -d -m 2775 $(INCDIR) ; \
+ $(INSTALL) -d -m 775 $(INCDIR) ; \
fi
$(INSTALL) -m 444 *.h $(INCDIR)
$(RM) $(INCLINK)
diff -ur wcslib-5.16/GNUmakefile wcslib-5.16.perms/GNUmakefile
--- wcslib-5.16/GNUmakefile 2017-01-15 05:25:03.000000000 +0100
+++ wcslib-5.16.perms/GNUmakefile 2017-09-11 12:25:23.739580571 +0200
@@ -82,7 +82,7 @@
done
$(INSTALL) -m 444 wcsconfig.h wcsconfig_f77.h $(INCDIR)
- if [ ! -d "$(DOCDIR)" ] ; then \
- $(INSTALL) -d -m 2775 $(DOCDIR) ; \
+ $(INSTALL) -d -m 775 $(DOCDIR) ; \
fi
$(INSTALL) -m 444 CHANGES COPYING* README $(DOCDIR)
- if [ -h $(DOCLINK) ] ; then \
@@ -90,15 +90,15 @@
$(LN_S) $(notdir $(DOCDIR)) $(DOCLINK) ; \
fi
- if [ ! -d "$(PDFDIR)" ] ; then \
- $(INSTALL) -d -m 2775 $(PDFDIR) ; \
+ $(INSTALL) -d -m 775 $(PDFDIR) ; \
fi
$(INSTALL) -m 444 wcslib.pdf $(PDFDIR)
- if [ ! -d "$(HTMLDIR)/html" ] ; then \
- $(INSTALL) -d -m 2775 $(HTMLDIR)/html ; \
+ $(INSTALL) -d -m 775 $(HTMLDIR)/html ; \
fi
$(INSTALL) -m 444 html/* $(HTMLDIR)/html
if [ ! -d "$(LIBDIR)/pkgconfig" ] ; then \
- $(INSTALL) -d -m 2775 $(LIBDIR)/pkgconfig ; \
+ $(INSTALL) -d -m 775 $(LIBDIR)/pkgconfig ; \
fi
$(INSTALL) -m 444 wcslib.pc $(LIBDIR)/pkgconfig/wcslib.pc
diff -ur wcslib-5.16/utils/GNUmakefile wcslib-5.16.perms/utils/GNUmakefile
--- wcslib-5.16/utils/GNUmakefile 2017-01-15 05:25:04.000000000 +0100
+++ wcslib-5.16.perms/utils/GNUmakefile 2017-09-11 12:23:25.705917622 +0200
@@ -108,11 +108,11 @@
install : build
- if [ ! -d "$(BINDIR)" ] ; then \
- $(INSTALL) -d -m 2775 $(BINDIR) ; \
+ $(INSTALL) -d -m 775 $(BINDIR) ; \
fi
$(INSTALL) -m 755 $(UTILS) $(BINDIR)
- if [ ! -d "$(MANDIR)" ] ; then \
- $(INSTALL) -d -m 2775 $(MANDIR)/man1 ; \
+ $(INSTALL) -d -m 775 $(MANDIR)/man1 ; \
fi
$(INSTALL) -m 644 $(MAN) $(MANDIR)/man1

78
wcslib.spec Normal file
View file

@ -0,0 +1,78 @@
Name: wcslib
Version: 7.2
Release: 1%{?dist}
Summary: An implementation of the FITS World Coordinate System standard
# Library is under LGPLv3+ utils under GPLv3+
License: LGPLv3+
URL: http://www.atnf.csiro.au/people/mcalabre/WCS/wcslib/
Source0: ftp://ftp.atnf.csiro.au/pub/software/wcslib/%{name}-%{version}.tar.bz2
# General stuff
BuildRequires: flex
BuildRequires: gcc
# Development libraries
BuildRequires: cfitsio-devel
BuildRequires: zlib-devel
%description
WCSLIB is a library that implements the "World Coordinate System" (WCS)
convention in FITS (Flexible Image Transport System)
%package devel
Summary: Libraries, includes, etc. used to develop an application with %{name}
License: LGPLv3+
Requires: wcslib = %{version}-%{release}
%description devel
These are the files needed to develop an application using %{name}.
%package utils
Summary: Utility programs provided by %{name}
License: GPLv3+
Requires: wcslib = %{version}-%{release}
%description utils
Utils provided with %{name}
%prep
%setup -q
%build
%configure --disable-fortran --disable-static
# Does not like multithread builds...
make
%install
make install DESTDIR=%{buildroot}
# fix permissions
rm -rf %{buildroot}/usr/share/doc/wcslib*
chmod 755 %{buildroot}%{_includedir}/wcslib-%{version}
%check
make check
%ldconfig_scriptlets
%files
%license COPYING.LESSER
%doc README
%{_libdir}/*.so.*
%files devel
%license COPYING.LESSER
%doc html wcslib.pdf
%{_libdir}/*.so
%exclude %{_libdir}/*.a
%{_libdir}/pkgconfig/wcslib.pc
%{_includedir}/wcslib
%{_includedir}/wcslib-%{version}
%files utils
%license COPYING
%{_bindir}/*
%{_mandir}/man1/*
%changelog
* Mon Mar 09 2020 Sergio Pascual <sergiopr@fedoraproject.org> 7.2-1
- New upstream version (7.2)