Package libcoredumper: 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 141 142 143 144 145 146 147 148 149 150 151 | Packager: Repocop Q. A. Robot <repocop@altlinux.org> %def_enable shared %def_enable static %def_with examples %define bname coredumper Name: lib%bname Version: 1.2.1 Release: alt2.4 Summary: Library to create core dumps of the running program Group: System/Libraries License: %bsdstyle URL: http://code.google.com/p/google-%bname/ Source: http://google-%bname.googlecode.com/files/%bname-%version.tar Patch: %bname-1.2.1-alt-include.patch Patch1: %bname-1.2.1-alt-glibc-kernheaders-3.5.4.patch # Automatically added by buildreq on Tue Apr 15 2008 BuildRequires: gcc-c++ BuildRequires: rpm-build-licenses ExclusiveArch: x86_64 %ix86 %description The %bname library can be compiled into applications to create core dumps of the running program - without terminating. It supports both single- and multi-threaded core dumps, even if the kernel does not natively support multi-threaded core files. %package devel Summary: Development files of %bname library Group: Development/C Requires: %name%{?_disable_shared:-devel-static} = %version-%release %description devel The %bname library can be compiled into applications to create core dumps of the running program - without terminating. It supports both single- and multi-threaded core dumps, even if the kernel does not natively support multi-threaded core files. This package includes the header file needed to develop %name-based software. %if_enabled static %package devel-static Summary: Static %bname library Group: Development/C Requires: %name-devel = %version-%release %description devel-static The %bname library can be compiled into applications to create core dumps of the running program - without terminating. It supports both single- and multi-threaded core dumps, even if the kernel does not natively support multi-threaded core files. This package includes the static library needed to develop %name-based software. %endif %if_with examples %package devel-examples Summary: Examples of using %name Group: Documentation BuildArch: noarch %description devel-examples The %bname library can be compiled into applications to create core dumps of the running program - without terminating. It supports both single- and multi-threaded core dumps, even if the kernel does not natively support multi-threaded core files. This package includes examples of using %name. %endif %prep %setup -n %bname-%version %patch -p1 %patch1 -p2 sed -i '/#include <sys\/sysctl.h>/d' src/elfcore.c %build %configure %{subst_enable shared} %{subst_enable static} %make_build %install %make_install DESTDIR=%buildroot docdir=%_docdir/%name-%version install %if_with examples install -d -m 0755 %buildroot%_docdir/%name-%version/examples install -m 0644 examples/* %buildroot%_docdir/%name-%version/examples/ %endif %if_enabled shared %files %_libdir/*.so.* %endif %files devel %dir %_includedir/google %_includedir/google/* %_man3dir/* %{?_enable_shared:%_libdir/*.so} %_docdir/%name-%version %{?_with_examples:%exclude %_docdir/%name-%version/examples} %if_enabled static %files devel-static %_libdir/*.a %endif %if_with examples %files devel-examples %dir %_docdir/%name-%version %_docdir/%name-%version/examples %endif %changelog * Wed Apr 07 2021 Grigory Ustinov <grenka@altlinux.org> 1.2.1-alt2.4 - Fixed FTBFS. * Thu Dec 06 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.1-alt2.3 - Fixed build with glibc-kernheaders 3.5.4 * Tue Jul 24 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.1-alt2.2 - Rebuilt for set-versions * Wed Nov 04 2009 Igor Vlasenko <viy@altlinux.ru> 1.2.1-alt2.1 - NMU (by repocop): the following fixes applied: * post_ldconfig for libcoredumper * postun_ldconfig for libcoredumper * Tue Sep 16 2008 Led <led@altlinux.ru> 1.2.1-alt2 - added %bname-1.2.1-alt-include.patch * Tue Apr 15 2008 Led <led@altlinux.ru> 1.2.1-alt1 - 1.2.1 * Tue Oct 30 2007 Led <led@altlinux.ru> 1.1-alt1 - initial build |