[wcslib] New upstream source
Sergio Pascual
sergiopr at fedoraproject.org
Fri Jan 6 16:23:57 UTC 2012
commit fa75a0f292047025e2b43828987da13a5244e64e
Author: Sergio Pascual <sergiopr at fis.ucm.es>
Date: Fri Jan 6 17:23:44 2012 +0100
New upstream source
wcslib-cross.patch | 48 ------------------------------------------------
wcslib-perms.patch | 33 +++++++++++++++++++++++++++++++++
wcslib.spec | 38 ++++++++++++++++----------------------
3 files changed, 49 insertions(+), 70 deletions(-)
---
diff --git a/wcslib-perms.patch b/wcslib-perms.patch
new file mode 100644
index 0000000..85f0827
--- /dev/null
+++ b/wcslib-perms.patch
@@ -0,0 +1,33 @@
+diff -ur wcslib-4.8.4/C/GNUmakefile wcslib-4.8.4.perm/C/GNUmakefile
+--- wcslib-4.8.4/C/GNUmakefile 2011-12-05 07:41:10.000000000 +0100
++++ wcslib-4.8.4.perm/C/GNUmakefile 2012-01-06 16:54:57.473299563 +0100
+@@ -253,7 +253,7 @@
+ fi
+ - $(LN_S) $(WCSLIB) $(LIBDIR)/libwcs.a
+ - if [ "$(SHRLIB)" != "" ] ; then \
+- $(INSTALL) -m 644 $(SHRLIB) $(LIBDIR) ; \
++ $(INSTALL) -m 755 $(SHRLIB) $(LIBDIR) ; \
+ if [ -h "$(LIBDIR)/$(SONAME)" ] ; then \
+ $(RM) $(LIBDIR)/$(SONAME) ; \
+ fi ; \
+@@ -266,7 +266,7 @@
+ fi ; \
+ fi
+ - if [ ! -d "$(INCDIR)" ] ; then \
+- $(INSTALL) -d -m 2775 $(INCDIR) ; \
++ $(INSTALL) -d -m 0755 $(INCDIR) ; \
+ fi
+ $(INSTALL) -m 444 *.h $(INCDIR)
+ $(RM) $(INCLINK)
+diff -ur wcslib-4.8.4/utils/GNUmakefile wcslib-4.8.4.perm/utils/GNUmakefile
+--- wcslib-4.8.4/utils/GNUmakefile 2011-10-04 09:54:26.000000000 +0200
++++ wcslib-4.8.4.perm/utils/GNUmakefile 2012-01-06 16:56:05.360754907 +0100
+@@ -114,7 +114,7 @@
+ - if [ ! -d "$(MANDIR)" ] ; then \
+ $(INSTALL) -d -m 2775 $(MANDIR)/man1 ; \
+ fi
+- $(INSTALL) -m 755 $(MAN) $(MANDIR)/man1
++ $(INSTALL) -m 644 $(MAN) $(MANDIR)/man1
+
+ GNUmakefile : ../makedefs ;
+
diff --git a/wcslib.spec b/wcslib.spec
index 51900f6..476de76 100644
--- a/wcslib.spec
+++ b/wcslib.spec
@@ -1,13 +1,14 @@
Name: wcslib
-Version: 4.7
-Release: 2%{?dist}
+Version: 4.8.4
+Release: 1%{?dist}
Summary: An implementation of the FITS World Coordinate System standard
Group: Development/Libraries
# Library is under LGPLv3+ utils under GPLv3+
License: LGPLv3+
URL: http://www.atnf.csiro.au/people/mcalabre/WCS/
-Source0: ftp://ftp.atnf.csiro.au/pub/software/wcslib/%{name}-%{version}.tar.bz2
+Source0: ftp://ftp.atnf.csiro.au/pub/software/wcslib/%{name}-%{version}.tar.xz
+Patch0: wcslib-perms.patch
BuildRequires: cfitsio-devel zlib-devel
%description
@@ -32,30 +33,19 @@ Utils provided with %{name}
%prep
%setup -q
+%patch0 -p1
%build
-%configure --disable-fortran
+%configure --disable-fortran --disable-static
# seems to have a race condition
#make %{?_smp_mflags}
make
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}/%{_bindir}
-mkdir -p %{buildroot}/%{_libdir}
-mkdir -p %{buildroot}/%{_libdir}/pkgconfig
-mkdir -p %{buildroot}/%{_includedir}/wcslib
-install -m 755 utils/fitshdr %{buildroot}/%{_bindir}
-install -m 755 utils/HPXcvt %{buildroot}/%{_bindir}
-install -m 644 wcsconfig.h %{buildroot}/%{_includedir}/wcslib
-install -m 644 wcslib.pc %{buildroot}/%{_libdir}/pkgconfig
-install -m 644 C/*.h %{buildroot}/%{_includedir}/wcslib
-install -m 755 C/libwcs.so.%{version} %{buildroot}/%{_libdir}
-ln -s libwcs.so.%{version} %{buildroot}/%{_libdir}/libwcs.so.4
-ln -s libwcs.so.%{version} %{buildroot}/%{_libdir}/libwcs.so
-
-%clean
-rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+# fix permissions
+rm -rf %{buildroot}//usr/share/doc/wcslib-4.8.4
%check
make check
@@ -65,22 +55,26 @@ make check
%postun -p /sbin/ldconfig
%files
-%defattr(-,root,root,-)
%doc COPYING.LESSER README
%{_libdir}/*.so.*
%files devel
-%defattr(-,root,root,-)
+%doc COPYING.LESSER html wcslib.pdf
%{_libdir}/*.so
+%exclude %{_libdir}/*.a
%{_libdir}/pkgconfig/wcslib.pc
%{_includedir}/wcslib
+%{_includedir}/wcslib-4.8.4
%files utils
-%defattr(-,root,root,-)
%doc COPYING
%{_bindir}/*
+%{_mandir}/man1/*
%changelog
+* Fri Jan 06 2012 Sergio Pascual <sergiopr at fedoraproject.org> 4.8.4-1
+- New upstream source
+
* Mon Feb 21 2011 Sergio Pascual <sergiopr at fedoraproject.org> 4.7-2
- EVR bump for rebuilding
More information about the scm-commits
mailing list