]> git.pld-linux.org Git - packages/python-scikit-umfpack.git/blame - python-scikit-umfpack.spec
rebuild with separate debuginfo build-ids
[packages/python-scikit-umfpack.git] / python-scikit-umfpack.spec
CommitLineData
3112f01a
JB
1#
2# Conditional build:
3%bcond_without tests # unit tests
4%bcond_without python2 # CPython 2.x module
5%bcond_without python3 # CPython 3.x module
6
7Summary: Wrapper of UMFPACK sparse direct solver to SciPy
8Summary(pl.UTF-8): Obudowanie procedur UMFPACK do rozwiązywania problemów na macierzach rzadkich dla SciPy
9Name: python-scikit-umfpack
10Version: 0.3.2
c81b8015 11Release: 3
3112f01a
JB
12License: BSD
13Group: Libraries/Python
14#Source0Download: https://pypi.org/simple/scikit-umfpack/
15Source0: https://files.pythonhosted.org/packages/source/s/scikit-umfpack/scikit-umfpack-%{version}.tar.gz
16# Source0-md5: a92e3b8b7c864a9d5b25bf3d1a7ca39c
17URL: https://pypi.org/project/scikit-umfpack/
18BuildRequires: AMD-devel
19BuildRequires: UMFPACK-devel
20BuildRequires: blas-devel
21BuildRequires: rpm-pythonprov
22BuildRequires: rpmbuild(macros) >= 1.714
23BuildRequires: swig-python >= 2.0.4
24%if %{with python2}
25BuildRequires: python-devel >= 1:2.5
26BuildRequires: python-numpy-devel
27BuildRequires: python-setuptools
28%if %{with tests}
dd9241ca 29BuildRequires: python-nose
3112f01a
JB
30BuildRequires: python-scipy >= 1.0.0
31%endif
32%endif
33%if %{with python3}
34BuildRequires: python3-devel >= 1:3.2
35BuildRequires: python3-numpy-devel
36BuildRequires: python3-setuptools
37%if %{with tests}
dd9241ca 38BuildRequires: python3-nose
3112f01a
JB
39BuildRequires: python3-scipy >= 1.0.0
40%endif
41%endif
42Requires: python-modules >= 1:2.5
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
46scikit-umfpack provides wrapper of UMFPACK sparse direct solver to
47SciPy.
48
49%description -l pl.UTF-8
50scikit-umfpack to obudowanie procedur UMFPACK do rozwiązywania
51problemów na macierzach rzadkich dla SciPy.
52
53%package -n python3-scikit-umfpack
54Summary: Wrapper of UMFPACK sparse direct solver to SciPy
55Summary(pl.UTF-8): Obudowanie procedur UMFPACK do rozwiązywania problemów na macierzach rzadkich dla SciPy
56Group: Libraries/Python
57Requires: python3-modules >= 1:3.2
58
59%description -n python3-scikit-umfpack
60scikit-umfpack provides wrapper of UMFPACK sparse direct solver to
61SciPy.
62
63%description -n python3-scikit-umfpack -l pl.UTF-8
64scikit-umfpack to obudowanie procedur UMFPACK do rozwiązywania
65problemów na macierzach rzadkich dla SciPy.
66
67%prep
68%setup -q -n scikit-umfpack-%{version}
69
70%build
71export BLAS=%{_libdir}
72export UMFPACK=%{_libdir}
73
74%if %{with python2}
75%py_build %{?with_tests:test}
76
77%if %{with tests}
78PYTHONPATH=$(readlink -f build-2/lib.*) \
79nosetests-%{py_ver} scikits
80%endif
81%endif
82
83%if %{with python3}
84%py3_build %{?with_tests:test}
85
86%if %{with tests}
87PYTHONPATH=$(readlink -f build-3/lib.*) \
88nosetests-%{py3_ver} scikits
89%endif
90%endif
91
92%install
93rm -rf $RPM_BUILD_ROOT
94
f85e5201
JB
95export BLAS=%{_libdir}
96export UMFPACK=%{_libdir}
97
3112f01a
JB
98%if %{with python2}
99%py_install
100# ensure scikits/__init__.py is compiled
101%py_comp $RPM_BUILD_ROOT%{py_sitedir}
102%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
103
104%py_postclean
105%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/MANIFEST.in
106%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/scikits/umfpack/tests
107%endif
108
109%if %{with python3}
110%py3_install
111# ensure scikits/__init__.py is compiled
112%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
113%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
114
115%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/MANIFEST.in
116%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/scikits/umfpack/tests
117%endif
118
119%clean
120rm -rf $RPM_BUILD_ROOT
121
122%if %{with python2}
123%files
124%defattr(644,root,root,755)
125%doc LICENSE README.rst
126%dir %{py_sitedir}/scikits
127%{py_sitedir}/scikits/__init__.py[co]
128%dir %{py_sitedir}/scikits/umfpack
129%attr(755,root,root) %{py_sitedir}/scikits/umfpack/__umfpack.so
130%{py_sitedir}/scikits/umfpack/*.py[co]
131%{py_sitedir}/scikit_umfpack-%{version}-py*.egg-info
132%endif
133
134%if %{with python3}
135%files -n python3-scikit-umfpack
136%defattr(644,root,root,755)
137%doc LICENSE README.rst
138%dir %{py3_sitedir}/scikits
139%{py3_sitedir}/scikits/__init__.py
140%dir %{py3_sitedir}/scikits/__pycache__
141%{py3_sitedir}/scikits/__pycache__/__init__.cpython-*.py[co]
142%dir %{py3_sitedir}/scikits/umfpack
143%attr(755,root,root) %{py3_sitedir}/scikits/umfpack/__umfpack.cpython-*.so
144%{py3_sitedir}/scikits/umfpack/*.py
145%{py3_sitedir}/scikits/umfpack/__pycache__
146%{py3_sitedir}/scikit_umfpack-%{version}-py*.egg-info
147%endif
This page took 0.095779 seconds and 4 git commands to generate.