## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 # Sphinx-generated HTML documentation is not suitable for packaging; see # https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion. # # We can generate PDF documentation as a substitute. # # For simplicity, starting with F44, we merged the examples into the library # package and stopped building the PDF documentation. %bcond doc %[ %{defined fc43} || %{defined fc42} || %{defined el10} || %{defined el9} ] Name: python-brukerapi Version: 0.1.10 Release: %autorelease Summary: Python package providing I/O interface for Bruker data sets # SPDX License: MIT URL: https://github.com/isi-nmr/brukerapi-python # The PyPI sdist lacks the documentation, examples, and CHANGELOG.rst. Source0: %{url}/archive/v%{version}/brukerapi-python-%{version}.tar.gz # Man pages hand-written for Fedora in groff_man(7) format based on --help # output; see: # # Interest in man pages? # https://github.com/isi-nmr/brukerapi-python/issues/19 Source10: bruker.1 Source11: bruker-filter.1 Source12: bruker-report.1 Source13: bruker-split.1 BuildSystem: pyproject %if %{with doc} BuildOption(generate_buildrequires): docs/requirements.txt %endif BuildOption(install): -l brukerapi BuildArch: noarch BuildRequires: %{py3_dist pytest} %if %{with doc} BuildRequires: make BuildRequires: %{py3_dist sphinx} BuildRequires: python3-sphinx-latex BuildRequires: latexmk %endif %global common_description %{expand: A Python package providing I/O interface for Bruker data sets.} %description %{common_description} %package -n python3-brukerapi Summary: %{summary} %if %{without doc} Obsoletes: python-brukerapi-doc < 0.1.10-1 %endif %description -n python3-brukerapi %{common_description} %if %{with doc} %package doc Summary: Documentation and examples for python-brukerapi %description doc %{common_description} %build -a PYTHONPATH="${PWD}" %make_build -C docs latex \ SPHINXOPTS='-j%{?_smp_build_ncpus}' %make_build -C docs/build/latex LATEXMKOPTS='-quiet' %endif %install -a install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 \ '%{SOURCE10}' '%{SOURCE11}' '%{SOURCE12}' '%{SOURCE13}' %check -a # Two test errors due to request fixture issues # https://github.com/isi-nmr/brukerapi-python/issues/17 k="${k-}${k+ and }not test_data_load" k="${k-}${k+ and }not test_data_save" %pytest -v -k "${k-}" %files -n python3-brukerapi -f %{pyproject_files} %if %{without doc} %doc CHANGELOG.rst %doc README.rst %doc examples/ %endif %{_bindir}/bruker %{_mandir}/man1/bruker*.1* %if %{with doc} %files doc %license LICENSE %doc CHANGELOG.rst %doc README.rst %doc examples/ %doc docs/build/latex/brukerapi.pdf %endif %changelog ## START: Generated by rpmautospec * Sat Jan 31 2026 Benjamin A. Beasley - 0.1.10-1 - Update to 0.1.10 (close RHBZ#2435502) - Starting in Fedora 44, drop the PDF manual and the -doc subpackage * Sat Jan 17 2026 Fedora Release Engineering - 0.1.9-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Sep 19 2025 Python Maint - 0.1.9-14 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 0.1.9-13 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 0.1.9-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint - 0.1.9-11 - Rebuilt for Python 3.14 * Fri May 09 2025 Benjamin A. Beasley - 0.1.9-10 - Fix doc_pdf build conditional (empty BuildOption fields are not permitted) * Sat May 03 2025 Benjamin A. Beasley - 0.1.9-9 - F41+: Use the provisional pyproject declarative buildsystem * Sat Jan 18 2025 Fedora Release Engineering - 0.1.9-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 19 2024 Fedora Release Engineering - 0.1.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 0.1.9-6 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.1.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.1.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Dec 17 2023 Benjamin A. Beasley - 0.1.9-3 - Assert that %%pyproject_files contains a license file * Thu Sep 07 2023 Benjamin A. Beasley - 0.1.9-2 - Patch to explicitly distribute brukerapi.config - Fixes a warning from setuptools about ambiguous configuration * Thu Sep 07 2023 Benjamin A. Beasley - 0.1.9-1 - Initial package (close RHBZ#2235132) ## END: Generated by rpmautospec