Notification time stamped 2021-12-31 10:49:58 UTC
From 8d8d3bf012596bcf35b92d358eb8f177c13348b9 Mon Sep 17 00:00:00 2001
From: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur(a)gmail.com>
Date: Dec 27 2021 22:00:32 +0000
Subject: chore: cleanup macros
---
diff --git a/python-pynn.spec b/python-pynn.spec
index 9264143..c5dc3d6 100644
--- a/python-pynn.spec
+++ b/python-pynn.spec
@@ -14,10 +14,6 @@
# Exclude privately used libnrnmech from provides
%global __provides_exclude ^libnrnmech\\.so.*$
-%global pypi_name PyNN
-%global mod_name pyNN
-%global lower_name pynn
-
%global _description %{expand:
PyNN (pronounced 'pine') is a simulator-independent language for building
neuronal network models.
@@ -46,14 +42,14 @@ Mailing list:
https://groups.google.com/forum/?fromgroups#!forum/neuralensemble
This package supports the NEURON, NEST, and Brian simulators.}
-Name: python-%{lower_name}
+Name: python-pynn
Version: 0.9.6
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A package for simulator-independent specification of neuronal network
models
License: CeCILL
-URL:
http://neuralensemble.org/%{pypi_name}/
-Source0: %pypi_source %{pypi_name}
+URL:
http://neuralensemble.org/PyNN/
+Source0: %pypi_source PyNN
# Random123 does not build on these, so neither can NEURON, so nothing that
# depends on NEURON supports them either
@@ -122,16 +118,16 @@ BuildRequires: openmpi-devel
%package devel
Summary: %{summary}
-Requires: python3-%{lower_name}%{?_isa} = %{version}-%{release}
+Requires: python3-pynn%{?_isa} = %{version}-%{release}
%description devel %_description
-%package -n python3-%{lower_name}
+%package -n python3-pynn
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
-%description -n python3-%{lower_name} %_description
+%description -n python3-pynn %_description
%package doc
Summary: %{summary}
@@ -141,8 +137,8 @@ BuildArch: noarch
Documentation for %{name}.
%prep
-%autosetup -n %{pypi_name}-%{version} -S git
-rm -rfv %{pypi_name}-%{version}/%{mod_name}.egg-info
+%autosetup -n PyNN-%{version} -S git
+rm -rfv PyNN-%{version}/pyNN.egg-info
%build
%py3_build
@@ -176,7 +172,7 @@ popd
%if "%{python3_sitelib}" != "%{python3_sitearch}"
mkdir -p 0644 $RPM_BUILD_ROOT/%{python3_sitearch}/
mv $RPM_BUILD_ROOT/%{python3_sitelib}/pyNN $RPM_BUILD_ROOT/%{python3_sitearch}/
-mv
$RPM_BUILD_ROOT/%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
$RPM_BUILD_ROOT/%{python3_sitearch}/
+mv $RPM_BUILD_ROOT/%{python3_sitelib}/PyNN-%{version}-py%{python3_version}.egg-info
$RPM_BUILD_ROOT/%{python3_sitearch}/
%endif
# Delete temporary files that do not need to be installed
@@ -204,16 +200,16 @@ rm -rf $RPM_BUILD_ROOT/%{python3_sitearch}/pyNN/nest/extensions
find $RPM_BUILD_ROOT/%{python3_sitearch}/pyNN/neuron/nmodl/*/ -name "*.c" -o
-name "*.c" -o -name "*.mod" -delete
-%files -n python3-%{lower_name}
+%files -n python3-pynn
%license LICENSE
%doc README.rst AUTHORS changelog
%{_libdir}/nest/
%{_datadir}/nest/sli/pynn_extensions-init.sli
-%{python3_sitearch}/%{mod_name}
-%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
+%{python3_sitearch}/pyNN
+%{python3_sitearch}/PyNN-%{version}-py%{python3_version}.egg-info
%files devel
-%{_includedir}/%{lower_name}_extensions.h
+%{_includedir}/pynn_extensions.h
%files doc
%license LICENSE
@@ -221,6 +217,9 @@ find $RPM_BUILD_ROOT/%{python3_sitearch}/pyNN/neuron/nmodl/*/ -name
"*.c" -o -na
%changelog
+* Mon Dec 27 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.9.6-4
+- Remove excess macros for package name
+
* Fri Jul 23 2021 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.9.6-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
https://src.fedoraproject.org/rpms/python-pynn/c/8d8d3bf012596bcf35b92d35...