Skip to content

Commit

Permalink
alvistack/v1.7.3
Browse files Browse the repository at this point in the history
    git clean -xdf
    git submodule sync
    git submodule update --init
    tar zcvf ../python-scipy_1.7.3.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-scipy.spec ../python-scipy_1.7.3-1.spec
    mv ../python*-scipy*1.7.3*.{gz,xz,spec,dsc} /osc/home\:alvistack/scipy-scipy-1.7.3/
    rm -rf ../python*-scipy*1.7.3*.*

See scipy#16719

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
  • Loading branch information
hswong3i committed Jul 29, 2022
1 parent 3f6ac74 commit 7369959
Show file tree
Hide file tree
Showing 87 changed files with 1,549,820 additions and 116 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -288,3 +288,5 @@ scipy/optimize/cython_optimize/_zeros.pyx
scipy/optimize/lbfgsb/_lbfgsbmodule.c
scipy/optimize/_highs/cython/src/_highs_wrapper.cxx
scipy/optimize/_highs/cython/src/_highs_constants.cxx

.pybuild/
6 changes: 6 additions & 0 deletions debian/.gitignore
@@ -0,0 +1,6 @@
*.substvars
*debhelper*
.debhelper
files
python3-scipy
tmp
5 changes: 5 additions & 0 deletions debian/changelog
@@ -0,0 +1,5 @@
python-scipy (100:1.7.3-1) UNRELEASED; urgency=medium

* https://github.com/scipy/scipy/releases/tag/v1.7.3

-- Wong Hoi Sing Edison <hswong3i@gmail.com> Fri, 04 Mar 2022 00:38:15 +0800
46 changes: 46 additions & 0 deletions debian/control
@@ -0,0 +1,46 @@
Source: python-scipy
Section: python
Priority: optional
Standards-Version: 4.5.0
Maintainer: Wong Hoi Sing Edison <hswong3i@gmail.com>
Homepage: https://github.com/scipy/scipy/tags
Vcs-Browser: https://github.com/alvistack/scipy-scipy
Vcs-Git: https://github.com/alvistack/scipy-scipy.git
Build-Depends:
debhelper,
debhelper-compat (= 10),
dh-python,
cython3,
fdupes,
gfortran,
liblapack-dev,
liblbfgsb-dev,
libopenblas-dev,
libsuitesparse-dev,
python3-decorator,
python3-dev,
python3-numpy (>= 1.14.5),
python3-pybind11 (>= 2.4.3),
python3-setuptools,

Package: python3-scipy
Architecture: amd64
Description: Scientific Library for Python
SciPy (pronounced "Sigh Pie") is open-source software for mathematics,
science, and engineering. The SciPy library depends on NumPy, which
provides convenient and fast N-dimensional array manipulation. The SciPy
library is built to work with NumPy arrays, and provides many
user-friendly and efficient numerical routines such as routines for
numerical integration and optimization. Together, they run on all
popular operating systems, are quick to install, and are free of charge.
NumPy and SciPy are easy to use, but powerful enough to be depended upon
by some of the world’s leading scientists and engineers. If you need to
manipulate numbers on a computer and display or publish the results,
give SciPy a try!
Depends:
${misc:Depends},
${python3:Depends},
${shlibs:Depends},
python3,
python3-decorator,
python3-numpy (>= 1.14.5),
Empty file added debian/copyright
Empty file.
1 change: 1 addition & 0 deletions debian/python3-scipy.install
@@ -0,0 +1 @@
usr/lib/python*/*-packages/*
4 changes: 4 additions & 0 deletions debian/python3-scipy.lintian-overrides
@@ -0,0 +1,4 @@
python3-scipy: copyright-without-copyright-notice
python3-scipy: initial-upload-closes-no-bugs
python3-scipy: no-manual-page
python3-scipy: zero-byte-file-in-doc-directory
17 changes: 17 additions & 0 deletions debian/rules
@@ -0,0 +1,17 @@
#!/usr/bin/make -f

SHELL := /bin/bash

export SCIPY_USE_PYTHRAN=0

override_dh_auto_install:
dh_auto_install --destdir=debian/tmp
find debian/tmp/usr/lib/python*/*-packages -type f -name '*.pyc' -exec rm -rf {} \;
fdupes -qnrps debian/tmp/usr/lib/python*/*-packages

override_dh_auto_test:

override_dh_auto_clean:

%:
dh $@ --buildsystem=pybuild --with python3
1 change: 1 addition & 0 deletions debian/source/format
@@ -0,0 +1 @@
3.0 (quilt)
4 changes: 4 additions & 0 deletions debian/source/lintian-overrides
@@ -0,0 +1,4 @@
python-scipy source: no-debian-changes
python-scipy source: source-contains-prebuilt-windows-binary
python-scipy source: source-is-missing
python-scipy source: source-package-encodes-python-version
109 changes: 0 additions & 109 deletions pyproject.toml

This file was deleted.

121 changes: 121 additions & 0 deletions python-scipy.spec
@@ -0,0 +1,121 @@
%global debug_package %{nil}

Name: python-scipy
Epoch: 100
Version: 1.7.3
Release: 1%{?dist}
Summary: Scientific Library for Python
License: BSD-3-Clause
URL: https://github.com/scipy/scipy/tags
Source0: %{name}_%{version}.orig.tar.gz
BuildRequires: fdupes
BuildRequires: gcc-gfortran
BuildRequires: lapack-devel
BuildRequires: openblas-devel
BuildRequires: pybind11-devel >= 2.4.3
BuildRequires: python-rpm-macros
BuildRequires: python3-cython
BuildRequires: python3-decorator
BuildRequires: python3-devel
BuildRequires: python3-numpy >= 1.14.5
BuildRequires: python3-numpy-f2py >= 1.14.5
BuildRequires: python3-pybind11 >= 2.4.3
BuildRequires: python3-setuptools
BuildRequires: suitesparse-devel

%description
SciPy (pronounced "Sigh Pie") is open-source software for mathematics,
science, and engineering. The SciPy library depends on NumPy, which
provides convenient and fast N-dimensional array manipulation. The SciPy
library is built to work with NumPy arrays, and provides many
user-friendly and efficient numerical routines such as routines for
numerical integration and optimization. Together, they run on all
popular operating systems, are quick to install, and are free of charge.
NumPy and SciPy are easy to use, but powerful enough to be depended upon
by some of the world’s leading scientists and engineers. If you need to
manipulate numbers on a computer and display or publish the results,
give SciPy a try!

%prep
%autosetup -T -c -n %{name}_%{version}-%{release}
tar -zx -f %{S:0} --strip-components=1 -C .

%build
set -ex && \
export SCIPY_USE_PYTHRAN=0 && \
export CFLAGS="%{optflags} -lm -fno-strict-aliasing" && \
export FFLAGS="%{optflags} -fPIC -fallow-argument-mismatch" && \
%{__python3} setup.py config_fc --fcompiler=gnu95 --noarch build

%install
set -ex && \
export SCIPY_USE_PYTHRAN=0 && \
%{__python3} setup.py install --prefix=%{_prefix} --root=%{buildroot}
find %{buildroot}%{python3_sitearch} -type f -name '*.pyc' -exec rm -rf {} \;
fdupes -qnrps %{buildroot}%{python3_sitearch}

%check

%if 0%{?suse_version} > 1500
%package -n python%{python3_version_nodots}-scipy
Summary: Scientific Library for Python
Requires: python3
Requires: python3-decorator
Requires: python3-numpy >= 1.14.5
Provides: python3-scipy = %{epoch}:%{version}-%{release}
Provides: python3dist(scipy) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}-scipy = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}dist(scipy) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}-scipy = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}dist(scipy) = %{epoch}:%{version}-%{release}

%description -n python%{python3_version_nodots}-scipy
SciPy (pronounced "Sigh Pie") is open-source software for mathematics,
science, and engineering. The SciPy library depends on NumPy, which
provides convenient and fast N-dimensional array manipulation. The SciPy
library is built to work with NumPy arrays, and provides many
user-friendly and efficient numerical routines such as routines for
numerical integration and optimization. Together, they run on all
popular operating systems, are quick to install, and are free of charge.
NumPy and SciPy are easy to use, but powerful enough to be depended upon
by some of the world’s leading scientists and engineers. If you need to
manipulate numbers on a computer and display or publish the results,
give SciPy a try!

%files -n python%{python3_version_nodots}-scipy
%license LICENSE.txt
%{python3_sitearch}/*
%endif

%if !(0%{?suse_version} > 1500)
%package -n python3-scipy
Summary: Scientific Library for Python
Requires: python3
Requires: python3-decorator
Requires: python3-numpy >= 1.14.5
Provides: python3-scipy = %{epoch}:%{version}-%{release}
Provides: python3dist(scipy) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}-scipy = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}dist(scipy) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}-scipy = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}dist(scipy) = %{epoch}:%{version}-%{release}

%description -n python3-scipy
SciPy (pronounced "Sigh Pie") is open-source software for mathematics,
science, and engineering. The SciPy library depends on NumPy, which
provides convenient and fast N-dimensional array manipulation. The SciPy
library is built to work with NumPy arrays, and provides many
user-friendly and efficient numerical routines such as routines for
numerical integration and optimization. Together, they run on all
popular operating systems, are quick to install, and are free of charge.
NumPy and SciPy are easy to use, but powerful enough to be depended upon
by some of the world’s leading scientists and engineers. If you need to
manipulate numbers on a computer and display or publish the results,
give SciPy a try!

%files -n python3-scipy
%license LICENSE.txt
%{python3_sitearch}/*
%endif

%changelog

0 comments on commit 7369959

Please sign in to comment.