Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ebc6dcb8b |
5 changed files with 147 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/wcslib-8.4.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-8.4.tar.bz2) = 1989f8f5788fd6d9fa102b771ad7db188b0899f716e11360516c96742f81f50755881279f90fce388451e8857f24003c85751f06aea83377e04bb5230523469f
|
||||||
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
|
||||||
|
|
||||||
76
wcslib.spec
Normal file
76
wcslib.spec
Normal file
|
|
@ -0,0 +1,76 @@
|
||||||
|
Name: wcslib
|
||||||
|
Version: 8.4
|
||||||
|
Release: %autorelease
|
||||||
|
Summary: An implementation of the FITS World Coordinate System standard
|
||||||
|
|
||||||
|
# Library is under LGPLv3+ utils under GPLv3+
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
URL: https://www.atnf.csiro.au/computing/software/wcs/index.html
|
||||||
|
Source0: https://www.atnf.csiro.au/computing/software/wcs/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: LGPL-3.0-or-later
|
||||||
|
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: GPL-3.0-or-later
|
||||||
|
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
|
||||||
|
%autochangelog
|
||||||
Loading…
Add table
Add a link
Reference in a new issue