From 3446e2d086742d297bb3b19734d766d60014e40e Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Jan 10 2023 13:49:00 +0000 Subject: chore: remove unneeded macro --- diff --git a/python-gradunwarp.spec b/python-gradunwarp.spec index de6894a..c8c30f7 100644 --- a/python-gradunwarp.spec +++ b/python-gradunwarp.spec @@ -1,13 +1,13 @@ %global modname gradunwarp -Name: python-%{modname} +Name: python-gradunwarp Version: 1.2.0 Release: %autorelease Summary: Gradient Unwarping License: MIT URL: https://github.com/Washington-University/gradunwarp -Source0: https://github.com/Washington-University/gradunwarp/archive/v%{version}/%{modname}-%{version}.tar.gz +Source0: https://github.com/Washington-University/gradunwarp/archive/v%{version}/gradunwarp-%{version}.tar.gz BuildRequires: gcc @@ -15,9 +15,9 @@ BuildRequires: gcc Python/Numpy package used to unwarp the distorted volumes (due to the gradient field inhomogenities). -%package -n python3-%{modname} +%package -n python3-gradunwarp Summary: %{summary} -%{?python_provide:%python_provide python3-%{modname}} +%{?python_provide:%python_provide python3-gradunwarp} BuildRequires: python3-devel BuildRequires: python3-numpy BuildRequires: python3-scipy @@ -27,14 +27,14 @@ Requires: python3-numpy Requires: python3-scipy Requires: python3-nibabel -%description -n python3-%{modname} +%description -n python3-gradunwarp Python/Numpy package used to unwarp the distorted volumes (due to the gradient field inhomogenities). Python 3 version. %prep -%autosetup -n %{modname}-%{version} -p1 +%autosetup -n gradunwarp-%{version} -p1 %build %py3_build @@ -45,24 +45,24 @@ Python 3 version. mv %{buildroot}%{_bindir}/gradient_unwarp.py %{buildroot}%{_bindir}/gradient_unwarp sed -i -e '1s|^.*$|#!%{__python3}|' %{buildroot}%{_bindir}/gradient_unwarp -find %{buildroot}%{python3_sitearch}/%{modname} -name '*.c' -delete +find %{buildroot}%{python3_sitearch}/gradunwarp -name '*.c' -delete # remove file which installs into bindir -rm -f %{buildroot}%{python3_sitearch}/%{modname}/core/gradient_unwarp.py* +rm -f %{buildroot}%{python3_sitearch}/gradunwarp/core/gradient_unwarp.py* # fix perms on .so -find %{buildroot}%{python3_sitearch}/%{modname}/ -name '*.so' -exec chmod 755 {} \+ +find %{buildroot}%{python3_sitearch}/gradunwarp/ -name '*.so' -exec chmod 755 {} \+ %check pushd gradunwarp/core/tests/ PYTHONPATH=%{buildroot}%{python3_sitearch} nosetests-%{python3_version} -v popd -%files -n python3-%{modname} +%files -n python3-gradunwarp %license Copying.md %doc README.md %{_bindir}/gradient_unwarp -%{python3_sitearch}/%{modname}* +%{python3_sitearch}/gradunwarp* %changelog %autochangelog