%{?filter_setup: %filter_provides_in %{python_sitearch}/.*\.so$ %filter_setup } Name: libkdtree++ Version: 0.7.0 Release: 18%{?dist} Summary: C++ template container implementation of kd-tree sorting URL: http://libkdtree.alioth.debian.org/ License: Artistic 2.0 Group: System Environment/Libraries BuildRequires: autoconf automake python2-devel swig 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 %description %{summary}. %package devel Summary: C++ template container implementation of kd-tree sorting Group: Development/Libraries Provides: libkdtree++-static = %{version} BuildArch: noarch %description devel %{summary}. %package -n python2-libkdtree++ %{?python_provide:%python_provide python2-libkdtree++} # Remove before F30 Provides: %{name}-python%{?_isa} = %{version}-%{release} Obsoletes: %{name}-python < %{version}-%{release} Summary: Python language bindings for libkdtree++ Group: Development/Languages %description -n python2-libkdtree++ %{summary}. %package examples Summary: Examples for libkdtree++ Group: Development/Libraries Requires: libkdtree++-devel = %{version} BuildArch: noarch %description examples %{summary}. %prep %setup -q -n %{name}_%{version} %patch0 -p1 -b .pkgconfig %patch1 -p1 -b .pkgconfig %patch2 -p1 -b .examples-optflags # 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 python`" cd .. %check cd examples make %{?_smpflags} CPPFLAGS="%{optflags}" ./test_kdtree ./test_hayne cd .. cd python-bindings python py-kdtree_test.py cd .. %install make install DESTDIR=%{buildroot} install -d %{buildroot}%{python_sitearch} install -pm 0755 python-bindings/_kdtree.so %{buildroot}%{python_sitearch}/ install -d %{buildroot}%{python_sitelib} install -pm 0644 python-bindings/kdtree.py %{buildroot}%{python_sitelib}/ %files devel %doc COPYING AUTHORS README NEWS TODO ChangeLog %{_includedir}/kdtree++/ %{_datadir}/pkgconfig/*.pc %files -n python2-libkdtree++ %doc COPYING AUTHORS README NEWS TODO ChangeLog %{python_sitearch}/_kdtree.so %{python_sitelib}/kdtree.py %{python_sitelib}/kdtree.pyc %{python_sitelib}/kdtree.pyo %files examples %doc examples/CMakeLists.txt %doc examples/Makefile %doc examples/test*.cpp %changelog * 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