Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7aadb306f3 |
3 changed files with 29 additions and 140 deletions
65
PyMca.spec
65
PyMca.spec
|
|
@ -1,17 +1,16 @@
|
|||
Name: PyMca
|
||||
Version: 5.9.4
|
||||
Version: 5.5.0
|
||||
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,29 +21,21 @@ Source5: peakidentifier.desktop
|
|||
Source6: pymcabatch.desktop
|
||||
Source7: pymcapostbatch.desktop
|
||||
Source8: pymcaroitool.desktop
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: ImageMagick
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3dist(cython)
|
||||
BuildRequires: python3dist(numpy)
|
||||
BuildRequires: python3dist(h5py)
|
||||
BuildRequires: python3dist(pyqt5)
|
||||
BuildRequires: python3dist(fisx)
|
||||
BuildRequires: python3dist(matplotlib)
|
||||
BuildRequires: python3-matplotlib-qt5
|
||||
BuildRequires: %py3_dist cython
|
||||
BuildRequires: %py3_dist numpy
|
||||
BuildRequires: python3-PyQt4
|
||||
BuildRequires: %py3_dist fisx
|
||||
BuildRequires: mesa-libGL-devel
|
||||
BuildRequires: mesa-libGLU-devel
|
||||
BuildRequires: qhull-devel
|
||||
BuildRequires: glibc-langpack-pl
|
||||
BuildRequires: %py3_dist h5py
|
||||
Requires: hicolor-icon-theme
|
||||
Requires: %{name}-data = %{version}-%{release}
|
||||
# Dependency on the graphical toolkit is not autogenerated because many different
|
||||
# ones are supported, https://bugzilla.redhat.com/show_bug.cgi?id=2084297.
|
||||
Requires: python3dist(pyqt5)
|
||||
Requires: python3-matplotlib-qt5
|
||||
|
||||
%description
|
||||
PyMCA provides a graphical interface for multi-channel analyzer spectra
|
||||
|
|
@ -61,7 +52,17 @@ 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"|<geom.h>|' \
|
||||
-e 's|"libqhull.h"|<libqhull.h>|' \
|
||||
-e 's|"poly.h"|<poly.h>|' \
|
||||
-e 's|"qset.h"|<qset.h>|' \
|
||||
PyMca5/Object3D/Object3DQhull/Object3DQhull.c
|
||||
|
||||
# Fix wrong shebang of pymcapostbatch.
|
||||
sed -i "s|!python|!%{__python3}|g" PyMca5/scripts/pymcapostbatch
|
||||
|
||||
%build
|
||||
# Need to define manually. Note using pkg-config to export the cflags
|
||||
|
|
@ -79,8 +80,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 +91,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 <<EOF
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
|
||||
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/edfviewer.appdata.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="desktop">
|
||||
|
|
@ -104,7 +103,7 @@ cat >%{buildroot}%{_datadir}/appdata/edfviewer.appdata.xml <<EOF
|
|||
</metadata>
|
||||
</component>
|
||||
EOF
|
||||
cat >%{buildroot}%{_datadir}/appdata/elementsinfo.appdata.xml <<EOF
|
||||
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/elementsinfo.appdata.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="desktop">
|
||||
|
|
@ -115,7 +114,7 @@ cat >%{buildroot}%{_datadir}/appdata/elementsinfo.appdata.xml <<EOF
|
|||
</metadata>
|
||||
</component>
|
||||
EOF
|
||||
cat >%{buildroot}%{_datadir}/appdata/mca2edf.appdata.xml <<EOF
|
||||
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/mca2edf.appdata.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="desktop">
|
||||
|
|
@ -126,7 +125,7 @@ cat >%{buildroot}%{_datadir}/appdata/mca2edf.appdata.xml <<EOF
|
|||
</metadata>
|
||||
</component>
|
||||
EOF
|
||||
cat >%{buildroot}%{_datadir}/appdata/peakidentifier.appdata.xml <<EOF
|
||||
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/peakidentifier.appdata.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="desktop">
|
||||
|
|
@ -137,7 +136,7 @@ cat >%{buildroot}%{_datadir}/appdata/peakidentifier.appdata.xml <<EOF
|
|||
</metadata>
|
||||
</component>
|
||||
EOF
|
||||
cat >%{buildroot}%{_datadir}/appdata/pymcabatch.appdata.xml <<EOF
|
||||
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/pymcabatch.appdata.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="desktop">
|
||||
|
|
@ -148,7 +147,7 @@ cat >%{buildroot}%{_datadir}/appdata/pymcabatch.appdata.xml <<EOF
|
|||
</metadata>
|
||||
</component>
|
||||
EOF
|
||||
cat >%{buildroot}%{_datadir}/appdata/pymcapostbatch.appdata.xml <<EOF
|
||||
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/pymcapostbatch.appdata.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="desktop">
|
||||
|
|
@ -159,7 +158,7 @@ cat >%{buildroot}%{_datadir}/appdata/pymcapostbatch.appdata.xml <<EOF
|
|||
</metadata>
|
||||
</component>
|
||||
EOF
|
||||
cat >%{buildroot}%{_datadir}/appdata/pymcaroitool.appdata.xml <<EOF
|
||||
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/pymcaroitool.appdata.xml <<EOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="desktop">
|
||||
|
|
@ -192,15 +191,7 @@ find %{buildroot}%{python3_sitearch}/PyMca5 -type f -name '*.py' \
|
|||
PYTHONPATH=%{buildroot}%{python3_sitearch} \
|
||||
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
|
||||
|
||||
# Test results are ingored. In F34 rawhide mock:
|
||||
# ERROR: testHdf5Uri (ConfigDictTest.testConfigDict)
|
||||
# FAIL: testNxExtStringAttribute (NexusUtilsTest.testNexusUtils)
|
||||
# FAIL: testNxExtStringDataset (NexusUtilsTest.testNexusUtils)
|
||||
# FAIL: testNxStringDataset (NexusUtilsTest.testNexusUtils)
|
||||
%{__python3} PyMca5/tests/TestAll.py
|
||||
|
||||
%files
|
||||
%license LICENSE.GPL
|
||||
|
|
|
|||
102
changelog
102
changelog
|
|
@ -1,105 +1,3 @@
|
|||
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 5.9.2-4
|
||||
- Rebuilt for Python 3.13
|
||||
|
||||
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Dec 17 2023 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.9.2-1
|
||||
- Version 5.9.2 (rhbz#2252290)
|
||||
|
||||
* Tue Nov 21 2023 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.9.1-2
|
||||
- Convert license tag to SPDX
|
||||
|
||||
* Thu Sep 28 2023 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.9.1-1
|
||||
- Version 5.9.1 (rhbz#2240987)
|
||||
|
||||
* Sat Sep 02 2023 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.9.0-1
|
||||
- Version 5.9.0 (rhbz#2233556)
|
||||
|
||||
* Sun Aug 06 2023 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.8.9-1
|
||||
- Version 5.8.9 (rhbz#2228541)
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.8.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Sun Jul 16 2023 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.8.7-1
|
||||
- Version 5.8.7 (rhbz#2213795)
|
||||
|
||||
* Wed Jul 12 2023 Python Maint <python-maint@redhat.com> - 5.8.2-2
|
||||
- Rebuilt for Python 3.12
|
||||
|
||||
* Sat May 20 2023 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.8.2-1
|
||||
- Version 5.8.2 (rhbz#2207560)
|
||||
|
||||
* Tue Feb 21 2023 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.8.1-1
|
||||
- Version 5.8.1 (rhbz#2143705)
|
||||
|
||||
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Sun Nov 27 2022 Florian Weimer <fweimer@redhat.com> - 5.7.5-2
|
||||
- Fix a C99 compatibility issue
|
||||
|
||||
* Tue Aug 23 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.7.5-1
|
||||
- Version 5.7.5 (rhbz#2119849)
|
||||
|
||||
* Tue Aug 16 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.7.4-1
|
||||
- Version 5.7.4 (rhbz#2113982)
|
||||
|
||||
* Mon Jul 25 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.7.3-1
|
||||
- Version 5.7.3 (rhbz#2109982)
|
||||
|
||||
* Fri Jul 22 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.7.2-2
|
||||
- Add patch to skip failing tests (rhbz#2098667)
|
||||
|
||||
* Fri Jul 22 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.7.2-1
|
||||
- Version 5.7.2
|
||||
|
||||
* Fri Jul 22 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.6.7-9
|
||||
- Modernize macros
|
||||
|
||||
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.7-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 5.6.7-7
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
* Mon May 16 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.6.7-6
|
||||
- Fix mixup between Requires and BuildRequires (#2084297)
|
||||
|
||||
* Thu May 12 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.6.7-5
|
||||
- Tweak requires
|
||||
|
||||
* Thu May 12 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.6.7-4
|
||||
- Add explicit dependency on PyQt5 (rhbz#2084297)
|
||||
|
||||
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.7-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Wed Dec 01 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.6.7-2
|
||||
- Adjust dependencies and environment so that tests pass
|
||||
|
||||
* Wed Dec 01 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.6.7-1
|
||||
- Version 5.6.7 (#2027722)
|
||||
|
||||
* Wed Sep 29 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.6.5-1
|
||||
- Version 5.6.5 (#1763697)
|
||||
|
||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 5.5.0-8
|
||||
- Rebuilt for Python 3.10
|
||||
|
||||
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Wed Jan 6 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.5.0-6
|
||||
- Fix build, ignore test results (#1903058)
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (pymca-5.9.4-filtered.tar.xz) = 08304ccfda672aa7fe9075eb72a17d5a12c72924c15546c0706435970d754e8dcf75870bdac99509a52d539e5f6d8cc42131bae823d9c0cbda688e4b5dfa39f4
|
||||
SHA512 (pymca-5.5.0-filtered.tar.xz) = 83c325329605ee410cf2c1e296db261191d528bbe3a08ab4d33a6bd20700533b0e91592a4fc93b5d483ab7d85ed86f653f439d699895b7eea4073c4bdf59d95d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue