Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ba928b4a2 | ||
|
|
b5a281dc06 |
5 changed files with 151 additions and 21 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/wcslib-7.2.tar.bz2
|
||||
/wcslib-7.12.tar.bz2
|
||||
21
Makefile
21
Makefile
|
|
@ -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)
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
SHA512 (wcslib-7.12.tar.bz2) = 7f38f725992d3c4bd3c1b908d494ac361c17f6b60f091d987fda596211423bb7396b3a5e2f1f6dd6215835016d302083472a7ad0822f17cdfe230c8f556b3e23
|
||||
69
wcslib-perms.patch
Normal file
69
wcslib-perms.patch
Normal 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
|
||||
|
||||
79
wcslib.spec
Normal file
79
wcslib.spec
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
|
||||
Name: wcslib
|
||||
Version: 7.12
|
||||
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: http://www.atnf.csiro.au/people/mcalabre/WCS/wcslib-%{version}.tar.bz2
|
||||
|
||||
# General stuff
|
||||
BuildRequires: make
|
||||
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}%{_datadir}/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
|
||||
* Wed Dec 28 2022 Sergio Pascual <sergiopr@fedoraproject.org> 7.12-1
|
||||
- New upstream version (7.12)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue