Package NearTree: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | Name: NearTree Version: 5.1.1 Release: alt1 Summary: An API for finding nearest neighbors License: LGPLv2+ Group: System/Libraries Url: http://neartree.sourceforge.net Source: http://downloads.sourceforge.net/project/neartree/neartree/NearTree-%version/NearTree-%version.tar.gz # library should not have version number in their name. # Sent to upstream but upstream cannot accept. Patch: NearTree-5.1.1-fedora.patch # to fix libdir for lib64 architecture Patch1: NearTree-5.1.1-lib64.patch Packager: Michael Shigorin <mike@altlinux.org> # Automatically added by buildreq on Sun Apr 22 2012 # optimized out: libstdc++-devel BuildRequires: gcc-c++ libCVector-devel %description This is a release of an API for finding nearest neighbors among points in spaces of arbitrary dimensions. This release provides a C++ template, TNear.h, and a C library, CNearTree.c, with example/test programs. %package -n lib%name Summary: A shared library for finding nearest neighbors Group: System/Libraries %description -n lib%name This package includes the shared library files for running applications that use NearTree. %package -n lib%name-devel Summary: Development tools for compiling programs using NearTree Group: Development/C++ Requires: lib%name = %version-%release %description -n lib%name-devel The NearTree-devel package includes the header and library files for developing applications that use NearTree. %prep %setup %patch0 -p1 -b .fedora %if %_lib == lib64 %patch1 -p1 -b .lib64 %endif sed -i 's,\(--mode=\(compile\|link\)\) \$(\(CC\|CXX\)),--tag=\3 &,' Makefile # convert end of line code from CRFL to LF mv README_NearTree.txt README_NearTree.txt.orig tr -d \\r < README_NearTree.txt.orig > README_NearTree.txt %build %make_build all CFLAGS="%optflags -ansi -pedantic -DCNEARTREE_SAFE_TRIANG=1" %install %make_install install \ CFLAGS="%optflags -ansi -pedantic -DCNEARTREE_SAFE_TRIANG=1" \ INSTALL_PREFIX="%buildroot%prefix" find %buildroot -name '*.la' -exec rm -f {} ';' find %buildroot -name '*.a' -exec rm -f {} ';' %check # Fails on i686 for some reason (thank you, fedora) %ifnarch %ix86 make tests \ CFLAGS="%optflags -ansi -pedantic -DCNEARTREE_SAFE_TRIANG=1" %endif %files -n lib%name %doc README_NearTree.html README_NearTree.txt lgpl.txt %_libdir/libCNearTree.so.* %files -n lib%name-devel %_includedir/CNearTree.h %_includedir/TNear.h %_includedir/rhrand.h %_includedir/triple.h %_libdir/libCNearTree.so %changelog * Sat Feb 02 2019 Michael Shigorin <mike@altlinux.org> 5.1.1-alt1 - 5.1.1 + updated fedora patches and spec bits * Tue Oct 20 2015 Michael Shigorin <mike@altlinux.org> 3.1.1-alt2 - rebuilt against gcc5-built CVector * Sun Apr 22 2012 Michael Shigorin <mike@altlinux.org> 3.1.1-alt1 - 3.1.1 * Fri Sep 23 2011 Michael Shigorin <mike@altlinux.org> 3.1-alt2 - drop empty package * Fri Sep 23 2011 Michael Shigorin <mike@altlinux.org> 3.1-alt1 - initial build for ALT Linux Sisyphus (based on F15 package) - libtool band-aid (typical for this particular stack, sigh) - spec cleanup - libification * Wed Jun 8 2011 Takanori MATSUURA <t.matsuu@gmail.com> - 3.1-1 - update to 3.1 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 22 2010 Takanori MATSUURA <t.matsuu@gmail.com> - 2.4-1 - update to 2.4 * Tue Dec 14 2010 Takanori MATSUURA <t.matsuu@gmail.com> - 2.3.2-2 - add "-fno-caller-saves" option for gcc-4.4.x * Thu Nov 11 2010 Takanori MATSUURA <t.matsuu@gmail.com> - 2.3.2-1 - update to 2.3.2 * Fri Oct 22 2010 Takanori MATSUURA <t.matsuu@gmail.com> - 2.3.1-1 - initial import (#545047) * Mon Oct 18 2010 Takanori MATSUURA <t.matsuu@gmail.com> - 2.3.1-0.1 - use "make all" instead of "make" - add %%check * Tue Oct 12 2010 Takanori MATSUURA <t.matsuu@gmail.com> - 2.3.1-0 - update to 2.3.1 * Wed Dec 9 2009 Takanori MATSUURA <t.matsuu@gmail.com> - 2.1.4-3 - remove static library * Tue Dec 8 2009 Takanori MATSUURA <t.matsuu@gmail.com> - 2.1.4-2 - fit to Fedora Packaging Guidelines * Fri Dec 3 2009 Takanori MATSUURA <t.matsuu@gmail.com> - 2.1.4-1 - update to 2.1.4 * Wed Jul 29 2009 Takanori MATSUURA <t.matsuu@gmail.com> - 2.1.3-1 - initial build |