Package log4cplus: 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 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | %define _unpackaged_files_terminate_build 1 Name: log4cplus Version: 2.0.5 Release: alt1.1 Summary: Logging library to C++ License: Apache-2.0 or BSD-2-Clause Group: Development/C++ Url: http://log4cplus.sourceforge.net/ # https://github.com/log4cplus/log4cplus.git Source0: %name-%version.tar # submodules Source1: %name-%version-catch.tar Source2: %name-%version-threadpool.tar Patch: %name-%version-alt.patch BuildRequires(pre): rpm-build-python3 BuildRequires: gcc-c++ doxygen graphviz swig BuildRequires: python3-devel %description log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modeled after the Java log4j API. %package -n lib%name Summary: Shared libraries of logging library to C++ Group: System/Libraries %description -n lib%name log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modeled after the Java log4j API. This package contains shared libraries of log4cplus. %package -n lib%name-devel Summary: Development files of logging library to C++ Group: Development/C++ Requires: lib%name = %EVR %description -n lib%name-devel log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modeled after the Java log4j API. This package contains development files of log4cplus. %package -n lib%name-devel-docs Summary: Development documentation for logging library to C++ Group: Development/Documentation BuildArch: noarch %description -n lib%name-devel-docs log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modeled after the Java log4j API. This package contains development documentation and manpages for log4cplus. %package -n python3-module-%name Summary: Python bindings of logging library to C++ Group: Development/Python3 Requires: lib%name = %EVR %py3_provides %name %description -n python3-module-%name log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modeled after the Java log4j API. This package contains Python bindings of log4cplus. %prep %setup -a1 -a2 %patch -p1 %build export PYTHON=python3 %autoreconf %configure \ --enable-static=no \ --enable-threads=yes \ --with-working-c-locale \ --with-python sed -i 's|^\(SWIG =.*\)|\1 -py3|' $(find ./ -name Makefile) %make_build pushd docs doxygen doxygen.config popd %install %makeinstall_std %if "%python3_sitelibdir_noarch" != "%python3_sitelibdir" mv %buildroot%python3_sitelibdir_noarch/%name/* \ %buildroot%python3_sitelibdir/%name/ %endif install -d %buildroot%_man3dir install -m644 docs/man/man3/* %buildroot%_man3dir %check %make check %files -n lib%name %doc LICENSE %doc AUTHORS ChangeLog NEWS README* TODO %_libdir/*.so.* %files -n lib%name-devel %_includedir/* %_libdir/*.so %_pkgconfigdir/* %files -n lib%name-devel-docs %doc docs/html/* %_man3dir/* %files -n python3-module-%name %python3_sitelibdir/* %changelog * Tue Mar 16 2021 Michael Shigorin <mike@altlinux.org> 2.0.5-alt1.1 - Fixed ftbfs with lcc on e2k (patch proposed upstream) - Minor spec cleanup * Mon Oct 26 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 2.0.5-alt1 - Updated to upstream version 2.0.5. * Thu Mar 12 2020 Andrey Bychkov <mrdrew@altlinux.org> 2.0.0-alt3.rc2.1 - Build fot python2 disabled. * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 2.0.0-alt2.rc2.1 - (NMU) Rebuilt with python-3.6.4. * Wed Nov 15 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 2.0.0-alt2.rc2 - Updated to upstream version 2.0.0-rc2. * Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.0.0-alt1.git20150807.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Fri Aug 28 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.git20150807 - New snapshot (ALT #31238) * Sat Jun 13 2015 Gleb F-Malinovskiy <glebfm@altlinux.org> 2.0.0-alt1.git20150412.1 - Rebuilt for gcc5 C++11 ABI. * Thu May 07 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.git20150412 - Version 2.0.0 - Added module for Python * Mon Jul 07 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.0-alt1.rc2 - Version 1.2.0-rc2 * Thu Jun 05 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.0-alt1.rc1 - Version 1.2.0-rc1 * Thu Nov 14 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.2-alt1 - Version 1.1.2 * Wed Feb 06 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.1-alt1.rc3 - Version 1.1.1-rc3 * Fri Nov 30 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.0-alt1 - Initial build for Sisyphus |