## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 9; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec ## https://github.com/prody/ProDy/issues/266 ExcludeArch: ppc64 s390x # Tests need internet connection; # correctly executed in local. %global with_check 0 ## Filtering of private libraries %global _privatelibs ^%{python3_sitearch}/prody/.*\\.so$ %global __provides_exclude_from ^(%{_privatelibs})$ %global __requires_exclude_from ^(%{_privatelibs})$ Name: ProDy Summary: Application for protein structure, dynamics and sequence analysis Version: 2.4.1 Release: %autorelease # MIT is the main license for ProDy # part of prody/dynamics/editing.py is MIT-Modern-Variant # Biopython is MIT-CMU # prody/utilities/tnt/* code is NIST-PD # CEalign module is distributed under BSD-2-Clause license # scikit-learn is BSD-3-Clause License: MIT AND MIT-CMU AND MIT-Modern-Variant AND BSD-2-Clause AND BSD-3-Clause AND Python-2.0.1 AND NIST-PD URL: http://www.csb.pitt.edu/ProDy Source0: https://github.com/prody/ProDy/archive/v%{version}/ProDy-%{version}.tar.gz BuildRequires: gcc, gcc-c++ # Patch for NumPy 2.x compatibility (backported) # https://github.com/prody/ProDy/pull/1959 # This includes previous patch dropping version pinnings. Patch: Fix-rtbtools-to-permit-numpy-upgrade.patch # Patch for SciPy >= 1.14 (backported) # https://github.com/prody/ProDy/issues/1955 # https://github.com/prody/ProDy/pull/1958 Patch: eigh-evd-when-no-turbo.patch %description ProDy is a free and open-source Python package for protein structure, dynamics, and sequence analysis. It allows for comparative analysis and modeling of protein structural dynamics and sequence co-evolution. Fast and flexible ProDy API is for interactive usage as well as application development. ProDy also comes with several analysis applications and a graphical user interface for visual analysis. - Visit http://www.csb.pitt.edu/ProDy/ - %package -n python3-%{name} Summary: Application for protein structure, dynamics and sequence analysis %{?python_provide:%python_provide python3-%{name}} Provides: ProDy = 0:%{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-nose BuildRequires: python3-urllib3 BuildRequires: python3-scipy BuildRequires: python3-numpy >= 1:1.10.0 BuildRequires: python3-matplotlib BuildRequires: python3-biopython BuildRequires: python3-setuptools Requires: python3-scipy Requires: python3-biopython Requires: python3-ipython Requires: python3-pyparsing Requires: python3-numpy ## Explicit library require for using plotting functions Requires: python3-matplotlib %description -n python3-%{name} This is ProDy Python3 package for protein structure, dynamics, and sequence analysis. It allows for comparative analysis and modeling of protein structural dynamics and sequence co-evolution. Fast and flexible ProDy API is for interactive usage as well as application development. ProDy also comes with several analysis applications and a graphical user interface for visual analysis. - Visit http://www.csb.pitt.edu/ProDy/ - %prep %autosetup -p1 # Fix permissions find prody/proteins/ccealign -name '*.h' -exec chmod 0644 '{}' \; find prody/proteins/ccealign -name '*.cpp' -exec chmod 0644 '{}' \; %build %py3_build %install %py3_install mkdir -p $RPM_BUILD_ROOT%{_bindir} rm -f $RPM_BUILD_ROOT%{_bindir}/* cd scripts cp -pr ./prody ./python%{python3_version}-prody cp -pr ./evol ./python%{python3_version}-evol # Fix shebangs sed -i '1s=^#!/usr/bin/\(python\|env python\)[0-9.]*=#!%{__python3}=' \ ./prody \ ./evol \ ./python%{python3_version}-prody \ ./python%{python3_version}-evol for i in prody-%{python3_version}; do touch -r ./python%{python3_version}-prody $i install -p $i $RPM_BUILD_ROOT%{_bindir} install -p ./prody $RPM_BUILD_ROOT%{_bindir} install -p ./python%{python3_version}-prody $RPM_BUILD_ROOT%{_bindir} ln -sf %{_bindir}/python%{python3_version}-prody $RPM_BUILD_ROOT%{_bindir}/$i done for i in evol-%{python3_version}; do touch -r ./python%{python3_version}-evol $i install -p $i $RPM_BUILD_ROOT%{_bindir} install -p ./evol $RPM_BUILD_ROOT%{_bindir} install -p ./python%{python3_version}-evol $RPM_BUILD_ROOT%{_bindir} ln -sf %{_bindir}/python%{python3_version}-evol $RPM_BUILD_ROOT%{_bindir}/$i done cd .. %if 0%{?with_check} %check pushd scripts PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch} nosetests-%{python3_version} --verbosity=2 \ -w $RPM_BUILD_ROOT%{python3_sitearch}/prody/tests --tests prody -a '!slow' popd %endif %files -n python3-%{name} %license LICENSE.rst %doc README.rst %{_bindir}/prody %{_bindir}/prody-%{python3_version} %{_bindir}/python%{python3_version}-prody %{_bindir}/evol %{_bindir}/evol-%{python3_version} %{_bindir}/python%{python3_version}-evol %{python3_sitearch}/prody/ %{python3_sitearch}/%{name}-*.egg-info %changelog ## START: Generated by rpmautospec * Wed Dec 25 2024 Sandro - 2.4.1-9 - Backport patch for SciPy >= 1.14 * Wed Dec 25 2024 Sandro - 2.4.1-8 - Backport patch for NumPy 2.x * Mon Sep 16 2024 Miroslav Suchý - 2.4.1-7 - Migrate to SPDX license * Wed Sep 04 2024 Miroslav Suchý - 2.4.1-6 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 2.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 2.4.1-4 - Rebuilt for Python 3.13 * Mon Jan 22 2024 Fedora Release Engineering - 2.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 2.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Aug 14 2023 Antonio Trande - 2.4.1-1 - Release 4.2.1 * Wed Jul 19 2023 Fedora Release Engineering - 2.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jul 01 2023 Python Maint - 2.4.0-3 - Rebuilt for Python 3.12 * Sun Feb 05 2023 Antonio Trande - 2.4.0-2 - Change required packages version * Sun Feb 05 2023 Antonio Trande - 2.4.0-1 - Release 2.4.0 * Wed Jan 18 2023 Fedora Release Engineering - 2.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 15 2022 Antonio Trande - 2.3.1-1 - Release 2.3.1 * Sun Nov 13 2022 Antonio Trande - 2.3.0-2 - Release 2.3.0| Obsolete old patch * Sun Nov 13 2022 Antonio Trande - 2.3.0-1 - Release 2.3.0 * Wed Jul 20 2022 Fedora Release Engineering - 2.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Zbigniew Jędrzejewski-Szmek - 2.2.0-4 - Rebuilt for pyparsing-3.0.9 * Wed Jun 15 2022 Python Maint - 2.2.0-3 - Rebuilt for Python 3.11 * Wed May 25 2022 Antonio Trande - 2.2.0-2 - Do not restrict to Biopython<=1.76 * Sun May 22 2022 Antonio Trande - 2.2.0-1 - Release 2.2.0 * Fri Apr 29 2022 Antonio Trande - 2.1.2-1 - Release 2.1.2 * Tue Apr 19 2022 Antonio Trande - 2.1.1-1 - Release 2.1.1 * Fri Apr 15 2022 Antonio Trande - 2.1.0-1 - Release 2.1.0 * Thu Feb 17 2022 Antonio Trande - 2.0.2-1 - Release 2.0.2 * Wed Jan 19 2022 Fedora Release Engineering - 2.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Dec 23 2021 Antonio Trande - 2.0.1-1 - Release 2.0.1 * Wed Jul 21 2021 Fedora Release Engineering - 2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.0-2 - Rebuilt for Python 3.10 * Wed Feb 24 2021 Antonio T - 2.0-1 - Release 2.0 * Mon Jan 25 2021 Fedora Release Engineering - 1.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Dec 26 2020 Antonio T - 1.11-1 - Release 1.11 * Mon Aug 03 2020 sagitter - 1.10.10-11 - Fix _privatelibs macro * Sat Aug 01 2020 Fedora Release Engineering - 1.10.10-10 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.10.10-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 24 2020 sagitter - 1.10.10-8 - BuildRequires python-setuptools explicitly * Tue May 26 2020 Miro Hrončok - 1.10.10-7 - Rebuilt for Python 3.9 * Tue Jan 28 2020 Fedora Release Engineering - 1.10.10-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 09 2020 Zbigniew Jędrzejewski-Szmek - 1.10.10-5 - Remove dependency on unittest2 * Thu Oct 03 2019 Miro Hrončok - 1.10.10-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.10.10-3 - Rebuilt for Python 3.8 * Wed Jul 24 2019 Fedora Release Engineering - 1.10.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jul 23 2019 sagitter - 1.10.10-1 - Release 1.10.10| Unversioned commands point to Python3 on Fedora and EPEL8+ * Thu Jan 31 2019 Fedora Release Engineering - 1.10.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jan 04 2019 sagitter - 1.10.8-1 - Release 1.10.8 * Thu Aug 23 2018 sagitter - 1.10.6-6 - Build with Python3 on fedora and rhel 8+ * Sun Jul 15 2018 sagitter - 1.10.6-5 - Add gcc-c++ BR * Thu Jul 12 2018 Fedora Release Engineering - 1.10.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.10.6-3 - Rebuilt for Python 3.7 * Fri May 25 2018 sagitter - 1.10.6-2 - Fix numpy epoch * Fri May 18 2018 sagitter - 1.10.6-1 - Release 1.10.6 * Tue May 15 2018 sagitter - 1.10.3-1 - Release 1.10.3 * Sat Mar 03 2018 sagitter - 1.9.4-1 - Pre-release 1.9.4 * Thu Mar 01 2018 sagitter - 1.9.3-6 - Release 1.9 final (1.9.3 post-release) * Mon Feb 19 2018 sagitter - 1.9.3-5 - Fix python3 shebang * Mon Feb 19 2018 Iryna Shcherbina - 1.9.3-4 - Fix shebangs for Python 3 subpackage * Wed Feb 07 2018 Fedora Release Engineering - 1.9.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 10 2018 Iryna Shcherbina - 1.9.3-2 - Remove useless Python 2 build-time requirements * Fri Nov 10 2017 sagitter - 1.9.3-1 - Update to 1.9.3 * Wed Aug 02 2017 Fedora Release Engineering - 1.8.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.8.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu May 11 2017 sagitter - 1.8.2-10 - Drop python2-ProDy for missing python2-ipython on fedora <27 * Fri Apr 14 2017 sagitter - 1.8.2-9 - Rebuild for biopython-1.69 * Fri Feb 17 2017 sagitter - 1.8.2-8 - Fix bug (upstream ticket #363) * Fri Feb 10 2017 Fedora Release Engineering - 1.8.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sat Dec 24 2016 sagitter - 1.8.2-6 - Exclude architestures ppc64 s390 (upstream bug #266) * Mon Dec 19 2016 Miro Hrončok - 1.8.2-5 - Rebuild for Python 3.6 * Mon Sep 26 2016 Dominik 'Rathann' Mierzejewski - 1.8.2-4 - rebuilt for matplotlib-2.0.0 * Tue Aug 16 2016 sagitter - 1.8.2-3 - Rebuild for Python 3.5.2 * Tue Jul 19 2016 Fedora Release Engineering - 1.8.2-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_ Packages * Mon Jul 11 2016 sagitter - 1.8.2-1 - Update to 1.8.2. * Sun May 15 2016 sagitter - 1.8.1-1 - Update to 1.8 * Sun Feb 14 2016 sagitter - 1.7.1-4 - Python2 package renamed;test disabled * Wed Feb 03 2016 Dennis Gilmore - 1.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Dec 10 2015 sagitter - 1.7.1-2 - Built with Python3 * Fri Nov 13 2015 sagitter - 1.7.1-1 - Update to 1.7.1 * Sun Sep 27 2015 sagitter - 1.6.1-1 - Version changed to 1.6.1. Some tests excluded on EPEL6 * Sat Sep 26 2015 sagitter - 1.6-1 - Update to 1.6 * Tue Jun 16 2015 Dennis Gilmore - 1.5.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed May 13 2015 sagitter - 1.5.1-8 - PPC64 excluded * Mon May 04 2015 sagitter - 1.5.1-7 - Fixed License tag. * Mon May 04 2015 sagitter - 1.5.1-6 - Rebuild * Mon May 04 2015 sagitter - 1.5.1-5 - Built with Python3 * Fri Aug 15 2014 Peter Robinson - 1.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jul 13 2014 sagitter - 1.5.1-3 - Some fixes based on Python guidelines. * Fri Jun 06 2014 Dennis Gilmore - 1.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Jan 03 2014 sagitter - 1.5.1-1 - Update to 1.5.1 * Mon Nov 25 2013 sagitter - 1.4.10-1 - Update to 1.4.10 * Sat Nov 16 2013 sagitter - 1.4.9-1 - Update to 1.4.9 * Wed Nov 06 2013 sagitter - 1.4.8-1 - Update to 1.4.8 * Thu Oct 24 2013 sagitter - 1.4.6-2 - Defined a python2 macro for building in Fedora * Thu Oct 24 2013 sagitter - 1.4.6-1 - Initial import (#996222). ## END: Generated by rpmautospec