## START: Set by rpmautospec ## (rpmautospec version 0.3.1) ## 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 %global forgeurl0 https://github.com/kbarbary/sep Version: 1.2.1 %forgemeta Name: sep # Ensure higher version than the last build of python-sep is used Release: %autorelease -b 4 Summary: Astronomical source extraction and photometry in Python and C # Code from photutils is BSD (src/overlap.h) # Code from sextractor is LGPLv3+ # Python wrapper is MIT (sex.pyx) License: MIT and LGPLv3+ and BSD URL: http://sep.readthedocs.org/ Source0: %forgesource0 BuildRequires: gcc BuildRequires: cmake BuildRequires: python3-devel %global common_desc %{expand: SEP makes available some of the astronomical source extraction and photometry algorithms in Source Extractor as stand-alone functions and classes. These operate directly on in-memory numpy arrays (no FITS files, configuration files, etc). It’s derived directly from (and tested against) the Source Extractor code base.} %description %{common_desc} Native code shared library. %package devel Summary: Astronomical source extraction and photometry development files Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{common_desc} Development header and library in native code. %package -n python3-%{name} Summary: Astronomical source extraction and photometry in Python %{?python_provide:%python_provide python3-%{name}} BuildRequires: %{py3_dist Cython} BuildRequires: %{py3_dist setuptools} BuildRequires: %{py3_dist numpy} %description -n python3-%{name} %{common_desc} %prep %forgeautosetup -p1 %build %cmake %cmake_build %py3_build %install %cmake_install %py3_install %files %doc AUTHORS.md README.md CHANGES.md %license licenses/MIT_LICENSE.txt licenses/LGPL_LICENSE.txt licenses/BSD_LICENSE.txt %{_libdir}/libsep.so.0* %files devel %{_libdir}/libsep.so %{_includedir}/sep.h %files -n python3-%{name} %doc AUTHORS.md README.md CHANGES.md %license licenses/MIT_LICENSE.txt licenses/LGPL_LICENSE.txt licenses/BSD_LICENSE.txt %{python3_sitearch}/sep-*.egg-info %{python3_sitearch}/sep*.so %changelog * Wed Jan 18 2023 Petr Menšík - 1.2.1-4 - Uncommitted changes * Tue Jan 11 2022 Petr Menšík - 1.2.0-5 - Ensure higher version than the last build of python-sep is used * Tue Dec 07 2021 Petr Menšík - 1.2.0-1 - Native package sep * Mon Apr 19 2021 Ingvar Stepanyan - RPMAUTOSPEC: unresolvable merge