Name: libkdtree++ Version: 0.7.0 Release: 40%{?dist} Summary: C++ template container implementation of kd-tree sorting URL: http://libkdtree.alioth.debian.org/ License: Artistic-2.0 BuildRequires: gcc-c++ BuildRequires: autoconf automake python3-devel swig BuildRequires: make Source0: http://alioth.debian.org/frs/download.php/2702/libkdtree++-0.7.0.tar.bz2 # patch to make GCC 4.7 happy (fixed in upstream git, not yet in release): Patch0: libkdtree++-0.7.0-pedantic.patch # patch to make pkgconfig file (.pc) (submitted to upstream mailing list # on 29-Sep-2012): Patch1: libkdtree++-0.7.0-pkgconfig.patch # patch to build examples/test with optflags Patch2: libkdtree++-0.7.0-examples-optflags.patch # patch to build with GCC 5 or later, from Debian bug 777951 Patch3: libkdtree++-0.7.0-gcc5.patch # patch for Python 3 compatibility, portions from Debian Patch4: libkdtree++-0.7.0-py3.patch %description %{summary}. %package devel Summary: C++ template container implementation of kd-tree sorting Provides: libkdtree++-static = %{version} BuildArch: noarch %description devel %{summary}. %package -n python3-libkdtree++ Provides: %{name}-python3%{?_isa} = %{version}-%{release} Summary: Python3 language bindings for libkdtree++ %description -n python3-libkdtree++ %{summary}. %package examples Summary: Examples for libkdtree++ Requires: libkdtree++-devel = %{version} BuildArch: noarch %description examples %{summary}. %prep %setup -q -n %{name}_%{version} %patch -P0 -p1 -b .pkgconfig %patch -P1 -p1 -b .pkgconfig %patch -P2 -p1 -b .examples-optflags %patch -P3 -p1 -b .gcc5 %patch -P4 -p1 -b .py3 # convert files from ISO-8859-1 to UTF-8 encoding for f in README do iconv -fiso88591 -tutf8 $f >$f.new touch -r $f $f.new mv $f.new $f done %build autoreconf -f -i %configure make cd python-bindings make CPPFLAGS="%{optflags} -fPIC `pkg-config --cflags python3`" cd .. %check cd examples make %{?_smpflags} CPPFLAGS="%{optflags}" ./test_kdtree ./test_hayne cd .. cd python-bindings python3 py-kdtree_test.py cd .. %install make install DESTDIR=%{buildroot} install -d %{buildroot}%{python3_sitearch} install -pm 0755 python-bindings/_kdtree.so %{buildroot}%{python3_sitearch}/ install -d %{buildroot}%{python3_sitelib} install -pm 0644 python-bindings/kdtree.py %{buildroot}%{python3_sitelib}/ %files devel %doc COPYING AUTHORS README NEWS TODO ChangeLog %{_includedir}/kdtree++/ %{_datadir}/pkgconfig/*.pc %files -n python3-libkdtree++ %doc COPYING AUTHORS README NEWS TODO ChangeLog %{python3_sitearch}/_kdtree.so %{python3_sitelib}/kdtree.py %{python3_sitelib}/__pycache__/* %files examples %doc examples/CMakeLists.txt %doc examples/Makefile %doc examples/test*.cpp %changelog * Fri Jun 07 2024 Python Maint - 0.7.0-40 - Rebuilt for Python 3.13 * Sat Apr 20 2024 Miroslav Suchý - 0.7.0-39 - convert license to SPDX * Thu Jan 25 2024 Fedora Release Engineering - 0.7.0-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.7.0-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.7.0-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.7.0-35 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 0.7.0-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0.7.0-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.7.0-32 - Rebuilt for Python 3.11 * Thu Jan 20 2022 Fedora Release Engineering - 0.7.0-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.7.0-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.7.0-29 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 0.7.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.7.0-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.7.0-26 - Rebuilt for Python 3.9 * Wed Jan 29 2020 Fedora Release Engineering - 0.7.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.7.0-24 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.7.0-23 - Rebuilt for Python 3.8 * Thu Jul 25 2019 Fedora Release Engineering - 0.7.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Mar 19 2019 Eric Smith - 0.7.0-21 - Added Debian's patch for GCC 5 and newer. - Add Python 3 bindings and drop Python 2 bindings * Fri Feb 01 2019 Fedora Release Engineering - 0.7.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.7.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0.7.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.7.0-17 - Python 2 binary package renamed to python2-libkdtree++ See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Aug 03 2017 Fedora Release Engineering - 0.7.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.7.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jul 07 2017 Igor Gnatenko - 0.7.0-14 - Rebuild due to bug in RPM (RHBZ #1468476) * Mon May 15 2017 Fedora Release Engineering - 0.7.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.7.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jul 19 2016 Fedora Release Engineering - 0.7.0-11 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.7.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.7.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.7.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.7.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.7.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sun Oct 14 2012 Eric Smith - 0.7.0-4 - Updated based on package review. * Sat Sep 29 2012 Eric Smith - 0.7.0-3 - Updated based on package review. * Fri Jun 22 2012 Eric Smith - 0.7.0-2 - Updated based on package review. * Sat Dec 03 2011 Eric Smith - 0.7.0-1 - Initial version