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 | # 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 %def_with ruby %def_without doc Name: xapian-bindings Version: 1.4.15 Release: alt3 Summary: Xapian search engine bindings License: GPL-2.0+ 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: %name-%version-alt-no-docs.patch %setup_python_module %name BuildRequires: gcc-c++ libruby-devel libxapian-devel %if_with doc BuildRequires: python-module-sphinx-devel python-module-sphinx %endif %if_with ruby BuildRequires(pre): rpm-macros-ruby BuildRequires(pre): rpm-build-ruby %endif %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-dev %if_with doc BuildRequires: python3-module-sphinx-devel python3-module-sphinx %endif %endif %{?_with_python:BuildRequires: python-devel} %{?_with_ruby:BuildRequires: libruby-devel} BuildRequires: libxapian-devel = %version %description Xapian is an Open Source Probabilistic Information Retrieval framework. It offers a highly adaptable toolkit that allows developers to easily add advanced indexing and search facilities to applications. This package contains programming language bindings. %package -n python-module-xapian Summary: Python bindings for Xapian search engine Group: Development/Python # force rebuild with libxapian Requires: libxapian = %version %description -n python-module-xapian Xapian is an Open Source Probabilistic Information Retrieval framework. It offers a highly adaptable toolkit that allows developers to easily add advanced indexing and search facilities to applications. 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 # force rebuild with libxapian Requires: libxapian = %version %description -n python3-module-xapian Xapian is an Open Source Probabilistic Information Retrieval framework. It offers a highly adaptable toolkit that allows developers to easily add advanced indexing and search facilities to applications. This package provides the files needed for developing Python 3 scripts which use Xapian. %define get_ruby_version() %(ruby -e 'print RUBY_VERSION' || echo 'unknown') %package -n ruby-xapian Summary: Ruby bindings for Xapian search engine Group: Development/Ruby Requires: libxapian = %version Requires: ruby = %get_ruby_version %description -n ruby-xapian Xapian is an Open Source Probabilistic Information Retrieval framework. It offers a highly adaptable toolkit that allows developers to easily add advanced indexing and search facilities to applications. This package provides the files needed for developing Ruby scripts which use Xapian. %prep %setup %if_without doc %patch1 -p2 %endif sed -i '/puts/d' ruby/xapian.rb ruby/docs/xapian.rb %build %ifarch %e2k # http://stackoverflow.com/questions/14892101/ %add_optflags -ftls-model=global-dynamic %endif %autoreconf %configure %{subst_with python} %{subst_with python3} %{subst_with ruby} %make_build # FIXME: maybe we should drop %version there as well and get rid of this %install %makeinstall_std rm -rf %buildroot%_defaultdocdir/%name/ %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_sitearchdir/_xapian.so %ruby_sitelibdir/xapian.rb %endif # TODO: # - package other bindings (perl, tcl...) # - package docs/examples properly # NOTE: # - do NOT build this package from git unless you want to maintain it, # I use watch file and it's more convenient to do that with srpms %changelog * 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 |