Remove some unnecessary macroification
This commit is contained in:
parent
7ac9fc7ac1
commit
9eb2e99016
1 changed files with 5 additions and 10 deletions
|
|
@ -1,15 +1,10 @@
|
|||
%global module blosc
|
||||
|
||||
# Use the same directory of the main package for subpackage licence and docs
|
||||
%global _docdir_fmt %{name}
|
||||
|
||||
Summary: Python wrapper for the Blosc high performance compressor
|
||||
Name: python-%{module}
|
||||
Name: python-blosc
|
||||
Version: 1.5.1
|
||||
Release: 3%{?dist}
|
||||
License: MIT
|
||||
URL: https://github.com/Blosc/python-blosc
|
||||
Source0: https://github.com/Blosc/python-blosc/archive/v%{version}.tar.gz#/%{module}-%{version}.tar.gz
|
||||
Source0: https://github.com/Blosc/python-blosc/archive/v%{version}/blosc-%{version}.tar.gz
|
||||
# remove the build-time CPU detection
|
||||
Patch0: python-blosc-alt-arch.patch
|
||||
|
||||
|
|
@ -23,13 +18,13 @@ BuildRequires: python%{python3_pkgversion}-psutil
|
|||
%description
|
||||
%{summary}.
|
||||
|
||||
%package -n python%{python3_pkgversion}-%{module}
|
||||
%package -n python%{python3_pkgversion}-blosc
|
||||
Summary: Python wrapper for the blosc high performance compressor
|
||||
|
||||
%{?python_provide:%python_provide python%{python3_pkgversion}-blosc}
|
||||
%{?fedora:Recommends: python%{python3_pkgversion}-numpy}
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{module}
|
||||
%description -n python%{python3_pkgversion}-blosc
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
|
|
@ -46,7 +41,7 @@ export BLOSC_DIR=%{_libdir}/blosc CFLAGS="%{optflags}"
|
|||
cd / # avoid interference with build dir
|
||||
PYTHONPATH=%{buildroot}%{python3_sitearch} %__python3 -c 'import sys, blosc; sys.exit(blosc.test())'
|
||||
|
||||
%files -n python%{python3_pkgversion}-%{module}
|
||||
%files -n python%{python3_pkgversion}-blosc
|
||||
%{python3_sitearch}/blosc/
|
||||
%{python3_sitearch}/blosc-%{version}*-py*.egg-info
|
||||
%license LICENSES/PYTHON-BLOSC.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue