Use common build directory, new python macros
- Filter provides - Fix provides
This commit is contained in:
parent
912f32203e
commit
9ef72d0b2e
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: python-pandas
|
Name: python-pandas
|
||||||
Version: 0.17.0
|
Version: 0.17.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Python library providing high-performance data analysis tools
|
Summary: Python library providing high-performance data analysis tools
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -25,7 +25,9 @@ Requires: python-tables
|
|||||||
Requires: python-matplotlib
|
Requires: python-matplotlib
|
||||||
Requires: python-Bottleneck
|
Requires: python-Bottleneck
|
||||||
Requires: python-numexpr
|
Requires: python-numexpr
|
||||||
Provides: python2-%{upname} = %{version}-%{release}
|
Provides: python2-%{pkgname} = %{version}-%{release}
|
||||||
|
|
||||||
|
%global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$
|
||||||
|
|
||||||
%description
|
%description
|
||||||
pandas is an open source, BSD-licensed library providing
|
pandas is an open source, BSD-licensed library providing
|
||||||
@ -45,7 +47,6 @@ Requires: python3-tables
|
|||||||
Requires: python3-matplotlib
|
Requires: python3-matplotlib
|
||||||
Requires: python3-Bottleneck
|
Requires: python3-Bottleneck
|
||||||
Requires: python3-numexpr
|
Requires: python3-numexpr
|
||||||
Provides: python3-%{upname} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python3-pandas
|
%description -n python3-pandas
|
||||||
pandas is an open source, BSD-licensed library providing
|
pandas is an open source, BSD-licensed library providing
|
||||||
@ -55,42 +56,22 @@ analysis tools for the Python programming language.
|
|||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qc -n %{pkgname}-%{version}
|
%setup -q -n %{pkgname}-%{version}
|
||||||
mv %{pkgname}-%{version} python2
|
|
||||||
pushd python2
|
|
||||||
# Common docs
|
|
||||||
cp -a LICENSE RELEASE.md ../
|
|
||||||
popd
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
cp -a python2 python3
|
|
||||||
find python3 -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
find python2 -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd python2
|
%py2_build
|
||||||
CFLAGS=$RPM_OPT_FLAGS %{__python2} setup.py build
|
|
||||||
popd
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd python3
|
%py3_build
|
||||||
CFLAGS=$RPM_OPT_FLAGS %{__python3} setup.py build
|
|
||||||
popd
|
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd python3
|
%py3_install
|
||||||
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
||||||
popd
|
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
pushd python2
|
%py2_install
|
||||||
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
||||||
popd
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc RELEASE.md
|
%doc RELEASE.md
|
||||||
@ -106,6 +87,11 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 28 2015 Orion Poplawski <orion@cora.nwra.com> - 0.17.0-2
|
||||||
|
- Use common build directory, new python macros
|
||||||
|
- Filter provides
|
||||||
|
- Fix provides
|
||||||
|
|
||||||
* Mon Oct 12 2015 Sergio Pascual <sergiopr@fedoraproject.org> - 0.17.0-1
|
* Mon Oct 12 2015 Sergio Pascual <sergiopr@fedoraproject.org> - 0.17.0-1
|
||||||
- New release of pandas 0.17.0
|
- New release of pandas 0.17.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user