Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > bfa8590c06c7be7be1b8b6194b2564fb > files > 3

pywcs-1.6-1.fc13.src.rpm


%define upversion 1.6-4.3.3

Name: pywcs
Version: 1.6
Release: 1%{?dist}
Summary: Python World Coordinate System routines
License: BSD

Group: Development/Languages
URL: https://trac6.assembla.com/astrolib
Source0: http://stsdas.stsci.edu/astrolib/%{name}-%{upversion}.tar.gz
Patch0: pywcs-unbundle.patch

BuildRequires: python-devel numpy wcslib-devel
Requires: numpy pyfits

# we don't want to provide private python extension libs
%{?filter_setup:
%filter_provides_in %{python_sitearch}/.*\.so$ 
%filter_setup
}

%description
pywcs is a set of routines for handling the FITS World Coordinate System (WCS) 
standard. It is a thin wrapper around the high- and mid-level interfaces 
of Dr. Mark Calabretta's WCSLIB. 

%prep
%setup -q -n %{name}-%{upversion}
%patch0 -p1

%build
%{__python} setup.py build


%install
rm -rf %{buildroot}
%{__python} setup.py install --skip-build --root  %{buildroot}
chmod 755 %{buildroot}/%{python_sitearch}/pywcs/_pywcs.so
 

%files
%defattr(-,root,root,-)
%doc CHANGELOG LICENSE README examples/
%{python_sitearch}/pywcs/
%{python_sitearch}/*.egg-info
%exclude %{python_sitearch}/pywcs/include

%changelog
* Tue Apr 26 2011 Sergio Pascual <sergiopr at fedoraproject.com> - 1.6-1
- Initial spec file