diff --git a/PyMca.spec b/PyMca.spec index 50d2f1a..87e47cf 100644 --- a/PyMca.spec +++ b/PyMca.spec @@ -1,17 +1,16 @@ Name: PyMca -Version: 5.9.4 +Version: 5.6.7 Release: %autorelease Summary: X-ray Fluorescence Toolkit -License: GPL-2.0-or-later +License: GPLv2+ URL: http://pymca.sourceforge.net/ -# https://github.com/vasole/pymca %if 0 Original source: http://downloads.sourceforge.net/sourceforge/pymca/pymca%%{version}-src.tgz However it bundles a copy of the "sift" module which implements a patented algorithm. The algorithm can be used for non-commercial research purposes ONLY. Per: http://fedoraproject.org/wiki/Packaging:SourceURL#When_Upstream_uses_Prohibited_Code we must remove them before uploading: - ./getsources.sh [%{version}] + ./getsources.sh %{version} %endif Source0: pymca-%{version}-filtered.tar.xz Source1: PyMca.desktop @@ -22,7 +21,6 @@ Source5: peakidentifier.desktop Source6: pymcabatch.desktop Source7: pymcapostbatch.desktop Source8: pymcaroitool.desktop - BuildRequires: gcc BuildRequires: desktop-file-utils BuildRequires: ImageMagick @@ -61,7 +59,20 @@ This package contains photon interaction data/elements data for %{name}. %prep %autosetup -p1 -n pymca-%{version} -sed -r -i 's|(os.path.join.")(PyMca5")|\1src/\2|' setup.py +# Drop bundled qhull. +rm -frv third-party/ +# Patch for the craps qhull brings in. +sed -i -e 's|"geom.h"||' \ + -e 's|"libqhull.h"||' \ + -e 's|"poly.h"||' \ + -e 's|"qset.h"||' \ + PyMca5/Object3D/Object3DQhull/Object3DQhull.c + +# Fix wrong shebang of pymcapostbatch. +sed -i "s|!python|!%{__python3}|g" PyMca5/scripts/pymcapostbatch + +# grep -rE $'(^\\s*if.*)is(\\s+not)?(\\s+[\'"0-9])' . | \ +# xargs sed -r -i $'s/(^\\s*if.*)is(\\s+not)?(\\s+[\'"0-9])/\1==\2/' %build # Need to define manually. Note using pkg-config to export the cflags @@ -79,8 +90,6 @@ PYMCA_DATA_DIR=/usr/share/PyMca \ PYMCA_DOC_DIR=/usr/share/doc/PyMca \ %py3_install -cp -ap src/PyMca5/PyMcaData/attdata/* %{buildroot}%{_datadir}/PyMca/attdata/ - # Install desktop file. desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{S:1} desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{S:2} @@ -92,8 +101,8 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{S:7} desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{S:8} # Merge applications into one software center item -mkdir -p %{buildroot}%{_datadir}/appdata -cat >%{buildroot}%{_datadir}/appdata/edfviewer.appdata.xml < $RPM_BUILD_ROOT%{_datadir}/appdata/edfviewer.appdata.xml < @@ -104,7 +113,7 @@ cat >%{buildroot}%{_datadir}/appdata/edfviewer.appdata.xml < EOF -cat >%{buildroot}%{_datadir}/appdata/elementsinfo.appdata.xml < $RPM_BUILD_ROOT%{_datadir}/appdata/elementsinfo.appdata.xml < @@ -115,7 +124,7 @@ cat >%{buildroot}%{_datadir}/appdata/elementsinfo.appdata.xml < EOF -cat >%{buildroot}%{_datadir}/appdata/mca2edf.appdata.xml < $RPM_BUILD_ROOT%{_datadir}/appdata/mca2edf.appdata.xml < @@ -126,7 +135,7 @@ cat >%{buildroot}%{_datadir}/appdata/mca2edf.appdata.xml < EOF -cat >%{buildroot}%{_datadir}/appdata/peakidentifier.appdata.xml < $RPM_BUILD_ROOT%{_datadir}/appdata/peakidentifier.appdata.xml < @@ -137,7 +146,7 @@ cat >%{buildroot}%{_datadir}/appdata/peakidentifier.appdata.xml < EOF -cat >%{buildroot}%{_datadir}/appdata/pymcabatch.appdata.xml < $RPM_BUILD_ROOT%{_datadir}/appdata/pymcabatch.appdata.xml < @@ -148,7 +157,7 @@ cat >%{buildroot}%{_datadir}/appdata/pymcabatch.appdata.xml < EOF -cat >%{buildroot}%{_datadir}/appdata/pymcapostbatch.appdata.xml < $RPM_BUILD_ROOT%{_datadir}/appdata/pymcapostbatch.appdata.xml < @@ -159,7 +168,7 @@ cat >%{buildroot}%{_datadir}/appdata/pymcapostbatch.appdata.xml < EOF -cat >%{buildroot}%{_datadir}/appdata/pymcaroitool.appdata.xml < $RPM_BUILD_ROOT%{_datadir}/appdata/pymcaroitool.appdata.xml < @@ -194,7 +203,7 @@ PYMCA_DATA_DIR=%{buildroot}/usr/share/PyMca \ PYMCA_DOC_DIR=%{buildroot}/usr/share/doc/PyMca \ QT_QPA_PLATFORM=offscreen \ LC_ALL=pl_PL.utf8 \ -%python3 src/PyMca5/tests/TestAll.py +%{__python3} PyMca5/tests/TestAll.py # Test results are ingored. In F34 rawhide mock: # ERROR: testHdf5Uri (ConfigDictTest.testConfigDict) diff --git a/changelog b/changelog index 9c3d896..9bd2c0d 100644 --- a/changelog +++ b/changelog @@ -1,93 +1,3 @@ -* Sat Jun 08 2024 Python Maint - 5.9.2-4 -- Rebuilt for Python 3.13 - -* Mon Jan 22 2024 Fedora Release Engineering - 5.9.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jan 19 2024 Fedora Release Engineering - 5.9.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sun Dec 17 2023 Zbigniew Jędrzejewski-Szmek - 5.9.2-1 -- Version 5.9.2 (rhbz#2252290) - -* Tue Nov 21 2023 Zbigniew Jędrzejewski-Szmek - 5.9.1-2 -- Convert license tag to SPDX - -* Thu Sep 28 2023 Zbigniew Jędrzejewski-Szmek - 5.9.1-1 -- Version 5.9.1 (rhbz#2240987) - -* Sat Sep 02 2023 Zbigniew Jędrzejewski-Szmek - 5.9.0-1 -- Version 5.9.0 (rhbz#2233556) - -* Sun Aug 06 2023 Zbigniew Jędrzejewski-Szmek - 5.8.9-1 -- Version 5.8.9 (rhbz#2228541) - -* Wed Jul 19 2023 Fedora Release Engineering - 5.8.7-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Sun Jul 16 2023 Zbigniew Jędrzejewski-Szmek - 5.8.7-1 -- Version 5.8.7 (rhbz#2213795) - -* Wed Jul 12 2023 Python Maint - 5.8.2-2 -- Rebuilt for Python 3.12 - -* Sat May 20 2023 Zbigniew Jędrzejewski-Szmek - 5.8.2-1 -- Version 5.8.2 (rhbz#2207560) - -* Tue Feb 21 2023 Zbigniew Jędrzejewski-Szmek - 5.8.1-1 -- Version 5.8.1 (rhbz#2143705) - -* Wed Jan 18 2023 Fedora Release Engineering - 5.7.5-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Sun Nov 27 2022 Florian Weimer - 5.7.5-2 -- Fix a C99 compatibility issue - -* Tue Aug 23 2022 Zbigniew Jędrzejewski-Szmek - 5.7.5-1 -- Version 5.7.5 (rhbz#2119849) - -* Tue Aug 16 2022 Zbigniew Jędrzejewski-Szmek - 5.7.4-1 -- Version 5.7.4 (rhbz#2113982) - -* Mon Jul 25 2022 Zbigniew Jędrzejewski-Szmek - 5.7.3-1 -- Version 5.7.3 (rhbz#2109982) - -* Fri Jul 22 2022 Zbigniew Jędrzejewski-Szmek - 5.7.2-2 -- Add patch to skip failing tests (rhbz#2098667) - -* Fri Jul 22 2022 Zbigniew Jędrzejewski-Szmek - 5.7.2-1 -- Version 5.7.2 - -* Fri Jul 22 2022 Zbigniew Jędrzejewski-Szmek - 5.6.7-9 -- Modernize macros - -* Wed Jul 20 2022 Fedora Release Engineering - 5.6.7-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Wed Jun 15 2022 Python Maint - 5.6.7-7 -- Rebuilt for Python 3.11 - -* Mon May 16 2022 Zbigniew Jędrzejewski-Szmek - 5.6.7-6 -- Fix mixup between Requires and BuildRequires (#2084297) - -* Thu May 12 2022 Zbigniew Jędrzejewski-Szmek - 5.6.7-5 -- Tweak requires - -* Thu May 12 2022 Zbigniew Jędrzejewski-Szmek - 5.6.7-4 -- Add explicit dependency on PyQt5 (rhbz#2084297) - -* Wed Jan 19 2022 Fedora Release Engineering - 5.6.7-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Wed Dec 01 2021 Zbigniew Jędrzejewski-Szmek - 5.6.7-2 -- Adjust dependencies and environment so that tests pass - -* Wed Dec 01 2021 Zbigniew Jędrzejewski-Szmek - 5.6.7-1 -- Version 5.6.7 (#2027722) - -* Wed Sep 29 2021 Zbigniew Jędrzejewski-Szmek - 5.6.5-1 -- Version 5.6.5 (#1763697) - * Wed Jul 21 2021 Fedora Release Engineering - 5.5.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index 81ef8da..0c282cf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pymca-5.9.4-filtered.tar.xz) = 08304ccfda672aa7fe9075eb72a17d5a12c72924c15546c0706435970d754e8dcf75870bdac99509a52d539e5f6d8cc42131bae823d9c0cbda688e4b5dfa39f4 +SHA512 (pymca-5.6.7-filtered.tar.xz) = 565b0524c5b56ed8d74f7f52b7b6aefa58770043786fdcee55e24c971901ab5f56f60b3bc54f63f2b059a8f7a95d22161d8f587361125dd55bf78b91d7c6cd2b