%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Summary: Python for Population Genomics Name: pypop Version: 0.7.0 Release: 1%{?dist} Source0: http://www.pypop.org/%{name}-%{version}.tar.gz License: GPLv2+ Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Url: http://www.pypop.org/ BuildRequires: python-devel BuildRequires: swig BuildRequires: gsl-devel Requires: python-numeric Requires: libxslt-python %description PyPop is a bioinformatics framework for performing population genomics analysis, particularly on large-scale multilocus genotype data. %prep %setup -q -n pypop-%{version} # move auxilary documentation files into a sensible place cp slatkin-exact/README README.slatkin-exact cp gthwe/README.1 README.gthwe # remove she-bang lines in certain .py files to keep rpmlint happy find . -type f -name "*.py" ! -name "pypop.py" ! -name "popmeta.py" -exec sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' {} 2>/dev/null ';' %build env DISTRIB=true %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc NEWS README ChangeLog AUTHORS COPYING README.slatkin-exact README.gthwe %{_bindir}/* %dir %{python_sitearch}/pypop %{python_sitearch}/pypop.pth %{python_sitearch}/pypop/* %{_datadir}/* %changelog * Mon Sep 29 2008 Alex Lancaster 0.7.0-1 - Start Fedora package.