Package xapian-bindings: 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 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 | # SPDX-License-Identifier: GPL-2.0-only %define _unpackaged_files_terminate_build 1 %define _stripped_files_terminate_build 1 %set_verify_elf_method strict,unresolved=normal %def_with python %def_with python3 %ifarch %e2k # needs thorough update, esp. rpm-macros-ruby %def_without ruby %else %def_with ruby %endif %def_without doc Name: xapian-bindings Version: 1.4.24 Release: alt4 Summary: Xapian search engine bindings License: GPL-2.0-or-later Group: Development/Databases Url: http://www.xapian.org/ Vcs: git://git.xapian.org/xapian Source: http://www.oligarchy.co.uk/xapian/%version/%name-%version.tar Source100: xapian-bindings.watch Patch1: xapian-bindings-1.4.15-alt-no-docs.patch BuildRequires: gcc-c++ BuildRequires: libruby-devel BuildRequires: libxapian-devel = %version %if_with ruby BuildRequires(pre): rpm-macros-ruby BuildRequires: gem(test-unit) BuildRequires: rpm-build-ruby BuildRequires: /usr/bin/rdoc %endif %if_with python %setup_python_module %name %endif %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-dev %endif %if_with doc BuildRequires: python3-module-sphinx BuildRequires: python3-module-sphinx-devel %endif %description Xapian is a highly adaptable toolkit which allows developers to easily add advanced indexing and search facilities to their own applications. It has built-in support for several families of weighting models and also supports a rich set of boolean query operators. This package contains programming language bindings. %package -n python-module-xapian Summary: Python bindings for Xapian search engine Group: Development/Python %description -n python-module-xapian Xapian is a highly adaptable toolkit which allows developers to easily add advanced indexing and search facilities to their own applications. It has built-in support for several families of weighting models and also supports a rich set of boolean query operators. This package provides the files needed for developing Python scripts which use Xapian. %package -n python3-module-xapian Summary: Python 3 bindings for Xapian search engine Group: Development/Python3 %description -n python3-module-xapian Xapian is a highly adaptable toolkit which allows developers to easily add advanced indexing and search facilities to their own applications. It has built-in support for several families of weighting models and also supports a rich set of boolean query operators. This package provides the files needed for developing Python 3 scripts which use Xapian. %package -n ruby-xapian Summary: Ruby bindings for Xapian search engine Group: Development/Ruby %description -n ruby-xapian Xapian is a highly adaptable toolkit which allows developers to easily add advanced indexing and search facilities to their own applications. It has built-in support for several families of weighting models and also supports a rich set of boolean query operators. This package provides the files needed for developing Ruby scripts which use Xapian. %prep %setup %if_without doc %patch1 -p2 %endif # Link to the libruby for a proper dependency. sed -i '/_xapian_la_LDFLAGS/s/$/ -lruby/' ruby/Makefile.am # Workaround to https://bugzilla.altlinux.org/44173 %define ruby_vendorarchdir %(ruby -rrubygems -rrbconfig -e 'puts RbConfig::CONFIG["vendorarchdir"]') %build %ifarch %e2k # http://stackoverflow.com/questions/14892101/ %add_optflags -ftls-model=global-dynamic %endif %autoreconf export RUBY_LIB=%ruby_vendorlibdir export RUBY_LIB_ARCH=%ruby_vendorarchdir %configure %{subst_with python} %{subst_with python3} %{subst_with ruby} %make_build %install %makeinstall_std rm -rf %buildroot%_defaultdocdir/%name/ %check %if_with ruby ruby -Iruby -Iruby/.libs -rxapian -e '(p Xapian.version_string) == "%version"' make -C ruby check %endif %if_with python make -C python check %endif %if_with python3 make -C python3 check %endif %if_with python %files -n python-module-xapian %doc README python/docs/* %python_sitelibdir/* %endif %if_with python3 %files -n python3-module-xapian %doc README python/docs/* %python3_sitelibdir/* %endif %if_with ruby %files -n ruby-xapian %doc README ruby/docs/* %ruby_vendorarchdir/_xapian.so %ruby_vendorlibdir/xapian.rb %endif %changelog * Thu Feb 01 2024 Vitaly Chikunov <vt@altlinux.org> 1.4.24-alt4 - spec: check: Fix ALT beekeeper build (ruby test failure). * Sat Dec 16 2023 Vitaly Chikunov <vt@altlinux.org> 1.4.24-alt3 - Fix FTBFS after ruby-3.1.4-alt1 update not bringing rdoc tool. * Tue Dec 05 2023 Michael Shigorin <mike@altlinux.org> 1.4.24-alt2 - E2K: build without ruby (macros need update) * Sat Dec 02 2023 Vitaly Chikunov <vt@altlinux.org> 1.4.24-alt1 - Update to 1.4.24 (2023-11-06). * Tue Jul 11 2023 Vitaly Chikunov <vt@altlinux.org> 1.4.23-alt1 - Update to 1.4.23 (2023-07-07). * Sun Feb 05 2023 Vitaly Chikunov <vt@altlinux.org> 1.4.22-alt1 - Update to 1.4.22 (2023-02-02). * Sun Oct 23 2022 Vitaly Chikunov <vt@altlinux.org> 1.4.21-alt1 - Update to 1.4.21 (2022-09-22). * Mon Sep 26 2022 Vitaly Chikunov <vt@altlinux.org> 1.4.15-alt5 - Rebuild with newer libruby(2->3). - Remove checkinstall test and replace it with tests run in %%check, so that ALT beekeeper will try them too. * Tue Mar 22 2022 Vitaly Chikunov <vt@altlinux.org> 1.4.15-alt4 - spec: Build ruby module in vendor directories. - spec: Build ruby-xapian-checkinstall with a simple test. - spec: Link xapian.so with the libruby to cause proper dependence. * Tue Jan 11 2022 Vitaly Chikunov <vt@altlinux.org> 1.4.15-alt3 - Fixed build of ruby module. * Sat Oct 17 2020 Vitaly Lipatov <lav@altlinux.ru> 1.4.15-alt2 - fix build * Mon Mar 23 2020 Vitaly Lipatov <lav@altlinux.ru> 1.4.15-alt1 - new version 1.4.15 (with rpmrb script) * Sun Sep 15 2019 Vitaly Chikunov <vt@altlinux.org> 1.4.5-alt4 - Fix packaging of ruby module. * Tue Mar 05 2019 Vitaly Chikunov <vt@altlinux.org> 1.4.5-alt3 - Enable building of ruby module * Thu Jul 12 2018 Igor Vlasenko <viy@altlinux.ru> 1.4.5-alt2.qa1 - NMU (by repocop). See http://www.altlinux.org/Tools/Repocop - applied repocop fixes: * altlinux-python-obsolete-buildreq-python-dev for xapian-bindings * Sun Jul 01 2018 Michael Shigorin <mike@altlinux.org> 1.4.5-alt2 - support e2kv4 through %%e2k macro (grenka@) - merged my changes back - changed docs knob to doc (see also http://altlinux.org/bootstrap) - minor spec cleanup: package descriptions need no conditionals * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.4.5-alt1.1 - (NMU) Rebuilt with python-3.6.4. * Thu Oct 19 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.4.5-alt1 - Updated to latest stable upstream version 1.4.5. - Enabled building bindings for python-3. * Tue Oct 17 2017 Michael Shigorin <mike@altlinux.org> 1.4.5-alt0 - new version (watch file uupdate) * Tue May 09 2017 Michael Shigorin <mike@altlinux.org> 1.4.4-alt1 - new version (watch file uupdate) * Fri Jan 27 2017 Michael Shigorin <mike@altlinux.org> 1.4.3-alt1 - new version (watch file uupdate) * Wed Dec 28 2016 Michael Shigorin <mike@altlinux.org> 1.4.2-alt2 - BOOTSTRAP: introduce doc knob for cyclic BR: python-module-sphinx <-> python-module-xapian * Tue Dec 27 2016 Michael Shigorin <mike@altlinux.org> 1.4.2-alt1 - new version (watch file uupdate) * Mon Oct 24 2016 Michael Shigorin <mike@altlinux.org> 1.4.1-alt1 - new version (watch file uupdate) - disable sphinx for bootstrap * Tue Sep 27 2016 Michael Shigorin <mike@altlinux.org> 1.4.0-alt1 - new version (watch file uupdate) * Tue Sep 27 2016 Michael Shigorin <mike@altlinux.org> 1.2.23-alt2 - rebuilt against ruby-2.3.1 * Wed Mar 30 2016 Michael Shigorin <mike@altlinux.org> 1.2.23-alt1 - new version (watch file uupdate) * Fri Jan 01 2016 Michael Shigorin <mike@altlinux.org> 1.2.22-alt1 - new version (watch file uupdate) * Thu May 21 2015 Michael Shigorin <mike@altlinux.org> 1.2.21-alt1 - new version (watch file uupdate) * Sun Mar 22 2015 Michael Shigorin <mike@altlinux.org> 1.2.20-alt1 - new version (watch file uupdate) * Tue Oct 21 2014 Michael Shigorin <mike@altlinux.org> 1.2.19-alt1 - new version (watch file uupdate) * Mon Jun 23 2014 Michael Shigorin <mike@altlinux.org> 1.2.18-alt1 - new version (watch file uupdate) * Fri Mar 21 2014 Michael Shigorin <mike@altlinux.org> 1.2.17-alt1 - new version (watch file uupdate) * Thu Mar 20 2014 Led <led@altlinux.ru> 1.2.16-alt1.1 - Rebuilt with ruby-2.0.0-alt1 * Thu Dec 05 2013 Michael Shigorin <mike@altlinux.org> 1.2.16-alt1 - 1.2.16 - merged standalone python-module-xapian and ruby-xapian packages which used to build parts of xapian-bindings independently - dropped libtool related hacks (thanks upstream notice) - buildreq * Sat Mar 23 2013 Michael Shigorin <mike@altlinux.org> 1.2.14-alt1 - 1.2.14 * Thu Feb 21 2013 Michael Shigorin <mike@altlinux.org> 1.2.13-alt1 - 1.2.13 * Thu Jun 28 2012 Michael Shigorin <mike@altlinux.org> 1.2.12-alt1 - 1.2.12 * Thu May 10 2012 Michael Shigorin <mike@altlinux.org> 1.2.10-alt1 - 1.2.10 - added watch file - minor spec cleanup * Sun Mar 25 2012 Michael Shigorin <mike@altlinux.org> 1.2.9-alt2 - argh, forgotten rebuild * Sun Mar 25 2012 Michael Shigorin <mike@altlinux.org> 1.2.9-alt1 - 1.2.9 * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.2.7-alt1.1 - Rebuild with Python-2.7 * Tue Aug 16 2011 Michael Shigorin <mike@altlinux.org> 1.2.7-alt1 - 1.2.7 * Wed Mar 30 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.3-alt1.2 - Rebuilt for debuginfo * Sat Oct 09 2010 Michael Shigorin <mike@altlinux.org> 1.2.3-alt1.1 - simplify dependency invariant * Wed Oct 06 2010 Vitaly Lipatov <lav@altlinux.ru> 1.2.3-alt1 - new version 1.2.3 (with rpmrb script) * Wed Jun 23 2010 Vitaly Lipatov <lav@altlinux.ru> 1.0.21-alt1 - new version 1.0.21 (with rpmrb script) * Tue May 04 2010 Vitaly Lipatov <lav@altlinux.ru> 1.0.20-alt1 - new version 1.0.20 (with rpmrb script) * Mon Apr 19 2010 Vitaly Lipatov <lav@altlinux.ru> 1.0.19-alt1 - new version 1.0.19 (with rpmrb script) * Mon Apr 19 2010 Vitaly Lipatov <lav@altlinux.ru> 1.0.18-alt1 - new version 1.0.18 (with rpmrb script) * Sat Feb 20 2010 Vitaly Lipatov <lav@altlinux.ru> 1.0.17-alt1 - new version 1.0.17 (with rpmrb script) (fix alt bug #22673) * Fri Nov 13 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.6-alt1.1 - Rebuilt with python 2.6 * Sat Jul 05 2008 Vitaly Lipatov <lav@altlinux.ru> 1.0.6-alt1 - new version 1.0.6 (with rpmrb script) * Mon Dec 31 2007 Vitaly Lipatov <lav@altlinux.ru> 1.0.5-alt1 - new version 1.0.5 (with rpmrb script) * Tue Nov 13 2007 Vitaly Lipatov <lav@altlinux.ru> 1.0.4-alt1 - initial build for ALT Linux Sisyphus |