|
|
df1b261 |
Name: wcslib
|
|
|
df1b261 |
Version: 4.3.1
|
|
|
df1b261 |
Release: 2%{?dist}
|
|
|
df1b261 |
Summary: An implementation of the FITS World Coordinate System standard
|
|
|
df1b261 |
|
|
|
df1b261 |
Group: Development/Libraries
|
|
|
df1b261 |
# Library is under LGPLv3+ utils under GPLv3+
|
|
|
df1b261 |
License: LGPLv3+
|
|
|
df1b261 |
URL: http://www.atnf.csiro.au/people/mcalabre/WCS/
|
|
|
df1b261 |
Source0: ftp://ftp.atnf.csiro.au/pub/software/wcslib/%{name}-%{version}.tar.gz
|
|
|
df1b261 |
Patch0: wcslib-lm.patch
|
|
|
df1b261 |
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
df1b261 |
BuildRequires: cfitsio-devel zlib-devel
|
|
|
df1b261 |
|
|
|
df1b261 |
%description
|
|
|
df1b261 |
WCSLIB is a library that implements the "World Coordinate System" (WCS)
|
|
|
df1b261 |
convention in FITS (Flexible Image Transport System)
|
|
|
df1b261 |
|
|
|
df1b261 |
%package devel
|
|
|
df1b261 |
Summary: Libraries, includes, etc. used to develop an application with %{name}
|
|
|
df1b261 |
Group: Development/Libraries
|
|
|
df1b261 |
License: LGPLv3+
|
|
|
df1b261 |
Requires: wcslib = %{version}-%{release}
|
|
|
df1b261 |
%description devel
|
|
|
df1b261 |
These are the files needed to develop an application using %{name}.
|
|
|
df1b261 |
|
|
|
df1b261 |
%package utils
|
|
|
df1b261 |
Summary: Utility progrmas provided by %{name}
|
|
|
df1b261 |
Group: Development/Libraries
|
|
|
df1b261 |
License: GPLv3+
|
|
|
df1b261 |
Requires: wcslib = %{version}-%{release}
|
|
|
df1b261 |
%description utils
|
|
|
df1b261 |
Utils provided with %{name}
|
|
|
df1b261 |
|
|
|
df1b261 |
%prep
|
|
|
df1b261 |
%setup -q
|
|
|
df1b261 |
%patch0 -p1
|
|
|
df1b261 |
|
|
|
df1b261 |
%build
|
|
|
df1b261 |
%configure
|
|
|
df1b261 |
make %{?_smp_mflags}
|
|
|
df1b261 |
|
|
|
df1b261 |
%install
|
|
|
df1b261 |
rm -rf %{buildroot}
|
|
|
df1b261 |
mkdir -p %{buildroot}/%{_bindir}
|
|
|
df1b261 |
mkdir -p %{buildroot}/%{_libdir}
|
|
|
df1b261 |
mkdir -p %{buildroot}/%{_includedir}/wcslib
|
|
|
df1b261 |
install -m 755 utils/fitshdr %{buildroot}/%{_bindir}
|
|
|
df1b261 |
install -m 755 utils/HPXcvt %{buildroot}/%{_bindir}
|
|
|
df1b261 |
install -m 644 wcsconfig.h %{buildroot}/%{_includedir}/wcslib
|
|
|
df1b261 |
install -m 644 C/*.h %{buildroot}/%{_includedir}/wcslib
|
|
|
df1b261 |
install -m 755 C/libwcs.so.4.3 %{buildroot}/%{_libdir}
|
|
|
df1b261 |
ln -s libwcs.so.4.3 %{buildroot}/%{_libdir}/libwcs.so.4
|
|
|
df1b261 |
ln -s libwcs.so.4.3 %{buildroot}/%{_libdir}/libwcs.so
|
|
|
df1b261 |
|
|
|
df1b261 |
%clean
|
|
|
df1b261 |
rm -rf %{buildroot}
|
|
|
df1b261 |
|
|
|
df1b261 |
%post -p /sbin/ldconfig
|
|
|
df1b261 |
|
|
|
df1b261 |
%postun -p /sbin/ldconfig
|
|
|
df1b261 |
|
|
|
df1b261 |
%files
|
|
|
df1b261 |
%defattr(-,root,root,-)
|
|
|
df1b261 |
%doc COPYING.LESSER README
|
|
|
df1b261 |
%{_libdir}/*.so.*
|
|
|
df1b261 |
|
|
|
df1b261 |
%files devel
|
|
|
df1b261 |
%defattr(-,root,root,-)
|
|
|
df1b261 |
%{_libdir}/*.so
|
|
|
df1b261 |
%{_includedir}/wcslib
|
|
|
df1b261 |
|
|
|
df1b261 |
%files utils
|
|
|
df1b261 |
%defattr(-,root,root,-)
|
|
|
df1b261 |
%doc COPYING
|
|
|
df1b261 |
%{_bindir}/*
|
|
|
df1b261 |
|
|
|
df1b261 |
%changelog
|
|
|
df1b261 |
* Mon Mar 16 2009 Sergio Pascual <sergiopr at fedoraproject.org> 4.3.1-2
|
|
|
df1b261 |
- Added patch to link explicitly with libmath.
|
|
|
df1b261 |
- Removed duplicate licenses.
|
|
|
df1b261 |
|
|
|
df1b261 |
* Sat Feb 14 2009 Sergio Pascual <sergiopr at fedoraproject.org> 4.3.1-1
|
|
|
df1b261 |
- First version.
|