Mailinglist Archive: opensuse-buildservice (233 mails)

< Previous Next >
[opensuse-buildservice] Handling BuildRequires: Package = 1.2.3
  • From: Matthew Drobnak <mdrobnak@xxxxxxxxxxxx>
  • Date: Mon, 18 Nov 2013 21:46:38 +0000
  • Message-id: <1384811198.3517.8.camel@mdrobnak-MacBookAir>
I'm running 2.3 in a private install.

I seem to be hitting into this bug:

I have python2.7-numpy-1.6.2, python2.7-numpy-1.7.1,
python2.7-pandas-0.9.1, and python2.7-pandas-0.11.

The following is what needs to happen:

Pandas 0.9.1 build and runtime requires NumPy 1.6.2
Pandas 0.11 build and runtime requires NumPy 1.7.1

I cannot seem to get OBS to find numpy 1.6.2. It keeps saying
unresolvable. I've even moved 1.7.1 to another project, but somehow it
still gets installed into the build VM.

So two things:

Why does OBS behave like this for BuildRequires? Why does it stop on
first match?

Is this behavior changed in 2.4?

Here's the specs:

# spec file for python pandas
#
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%global pybasever 2.7
%global __python_ver 2.7
%global __python %{_bindir}/python%{?pybasever}
%global __os_install_post %{?__multiple_python_os_install_post}

%if 0%{?fedora} > 12 || 0%{?rhel} > 6
%global with_python3 1
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print (get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif

%global pkgname pandas

Name: python2.7-pandas
BuildRequires: python%{?__python_ver}-devel
Version: 0.9.1
Release: 0
Summary: Library for pan-el da-ta analysis
License: BSD
Url: http://pypi.python.org/pypi/pandas/
Group: Development/Libraries/Python
Source0: %{pkgname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python2.7-numpy
BuildRequires: python2.7-numpy-devel = 1.6.2
BuildRequires: python%{?__python_ver}-cython
BuildRequires: python%{?__python_ver}-python-dateutil
BuildRequires: gcc-c++
Requires: python2.7-numpy = 1.6.2
Requires: python%{?__python_ver}-python-dateutil


%description
Omitted

%prep
%setup -q -n %{pkgname}-%{version}

%build
%{__python} setup.py build

%install

Omitted

%files
...



Numpy:

#
# spec file for package python-numpy
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

%global pybasever 2.7
%global __python_ver 2.7
%global __python %{_bindir}/python%{?pybasever}
%global __os_install_post %{?__multiple_python_os_install_post}

%if 0%{?fedora} > 12 || 0%{?rhel} > 6
%global with_python3 1
%else
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif

%global pkgname numpy

Name: python2.7-numpy
BuildRequires: python%{?__python_ver}-devel
Summary: NumPy: array processing for numbers, strings, records
and objects
License: BSD
Group: Development/Libraries/Python
Version: 1.6.2
Release: 0
Url: http://sourceforge.net/projects/numpy
Vendor: openSUSE-Education
BuildRequires: lapack
BuildRequires: blas
%if 0%{?rhel} < 6
BuildRequires: gcc44-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: gcc-gfortran
BuildRequires: atlas-devel
BuildRequires: blas-devel
BuildRequires: lapack-devel
Requires: atlas-devel
Obsoletes: numpy
Source: numpy-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build


%description
Omitted


%package devel
Summary: Development files for numpy applications
Group: Development/Libraries/Python
Requires: %{name} = %{version}
Requires: python%{?__python_ver}-devel
Requires: gcc-gfortran
Requires: lapack
Requires: blas

%description devel
This package contains files for developing applications using numpy.

%prep
%setup -q -n numpy-%{version}

%build
Omitted

%install
Omitted

%clean
rm -rf %{buildroot}

%files
Omitted

%files devel
%defattr(-,root,root)
Omitted
N�����r��y隊Z)z{.����Wlz��qﮞ˛���m�)z{.��+�:�{Zr�az�'z��j)h����Ǜ�)]����Ǿ�
ޮ�^�ˬz��
< Previous Next >