From e6e31a9a255188b6bac6550546db15fb8d4bbba1 Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Feb 23 2022 11:27:19 +0000 Subject: chore: spec cleanup --- diff --git a/python-lfpykit.spec b/python-lfpykit.spec index c58cbcb..3b7553d 100644 --- a/python-lfpykit.spec +++ b/python-lfpykit.spec @@ -5,12 +5,6 @@ # mock -r fedora-rawhide-x86_64 rebuild --enable-network --rpmbuild-opts="--with tests" %bcond_without tests -# Requires m2r2 and other deps so disabled for the moment -%bcond_with docs - -%global pypi_name LFPykit -%global lower_name lfpykit - %global _description %{expand: This Python module contain freestanding implementations of electrostatic forward models incorporated in LFPy (https://github.com/LFPy/LFPy, @@ -55,20 +49,20 @@ in microelectrode arrays (MEAs). Neuroinformatics 13:403–426. doi: Corrected Four-sphere Head Model for EEG Signals. Front. Hum. Neurosci. 11:490. doi: 10.3389/fnhum.2017.00490} -Name: python-%{lower_name} +Name: python-lfpykit Version: 0.3 Release: 4%{?dist} Summary: Electrostatic models for multicompartment neuron models License: GPLv3+ -URL: https://pypi.org/pypi/%{pypi_name} +URL: https://pypi.org/pypi/LFPykit Source0: %pypi_source BuildArch: noarch %description %_description -%package -n python3-%{lower_name} +%package -n python3-lfpykit Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -78,14 +72,7 @@ BuildRequires: %{py3_dist numpy} BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist scipy} -%if %{with docs} -# Documentation -BuildRequires: make -BuildRequires: %{py3_dist sphinx} -BuildRequires: %{py3_dist numpydoc} -%endif - -%description -n python3-%{lower_name} %_description +%description -n python3-lfpykit %_description %package doc Summary: %{summary} @@ -94,19 +81,14 @@ Summary: %{summary} Documentation for %{name}. %prep -%autosetup -n %{pypi_name}-%{version} -rm -rf %{pypi_name}.egg-info +%autosetup -n LFPykit-%{version} +rm -rf LFPykit.egg-info find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';' %build %py3_build -%if %{with docs} -make -C doc/source SPHINXBUILD=sphinx-build-3 html -rm -rf doc/source/_build/html/{.doctrees,.buildinfo} -vf -%endif - %install %py3_install @@ -115,20 +97,20 @@ rm -rf doc/source/_build/html/{.doctrees,.buildinfo} -vf %{pytest} %endif -%files -n python3-%{lower_name} +%files -n python3-lfpykit %license LICENSE %doc README.md -%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info -%{python3_sitelib}/%{lower_name} +%{python3_sitelib}/LFPykit-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/lfpykit %files doc %license LICENSE %doc examples -%if %{with docs} -%doc doc/source/_build/html -%endif %changelog +* Wed Feb 23 2022 Ankur Sinha - 0.3-4 +- spec clean ups + * Fri Jan 21 2022 Fedora Release Engineering - 0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild