meta.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {% set version = "0.7.22" %}
  2. {% set sha256 = "968aef452b5493751fa0168cd58745a77c755e202a43fe8d549d791eb16034d5" %}
  3. {% set build_number = "0" %}
  4. package:
  5. name: libsolv-suite
  6. version: {{ version }}
  7. source:
  8. url: https://github.com/openSUSE/libsolv/archive/{{ version }}.tar.gz
  9. sha256: {{ sha256 }}
  10. patches:
  11. - win_export_and_static_build.patch # [win]
  12. - conda_variant_priorization.patch
  13. - pcre2-compat.patch # See https://github.com/openSUSE/libsolv/pull/506
  14. build:
  15. number: {{ build_number }}
  16. run_exports:
  17. - {{ pin_subpackage('libsolv', max_pin='x.x') }}
  18. ignore_run_exports: # [win]
  19. - zlib # [win]
  20. requirements:
  21. build:
  22. - {{ compiler('c') }}
  23. - {{ compiler('cxx') }}
  24. - m2-patch # [win]
  25. - patch # [not win]
  26. - ninja
  27. - cmake
  28. host:
  29. - pkg-config
  30. - zlib
  31. - pcre2
  32. outputs:
  33. - name: libsolv
  34. script: install.sh # [unix]
  35. script: install_dynamic.bat # [win]
  36. requirements:
  37. build:
  38. - {{ compiler('c') }}
  39. - {{ compiler('cxx') }}
  40. - ninja
  41. - cmake
  42. host:
  43. - pkg-config
  44. - zlib
  45. - pcre2
  46. test:
  47. commands:
  48. - test -f ${PREFIX}/lib/libsolv${SHLIB_EXT} # [unix]
  49. - test -f ${PREFIX}/lib/libsolvext${SHLIB_EXT} # [unix]
  50. - test -f ${PREFIX}/lib/libsolv.so.1 # [linux]
  51. - test -f ${PREFIX}/include/solv/repo.h # [unix]
  52. - if exist %LIBRARY_INC%\solv\repo.h (exit 0) else (exit 1) # [win]
  53. - if exist %LIBRARY_LIB%\solv.lib (exit 0) else (exit 1) # [win]
  54. - if exist %LIBRARY_LIB%\solvext.lib (exit 0) else (exit 1) # [win]
  55. - if exist %LIBRARY_BIN%\solv.dll (exit 0) else (exit 1) # [win]
  56. - dumpsolv.exe -h # [win]
  57. - dumpsolv -h # [unix]
  58. - name: libsolv-static
  59. script: install.sh # [unix]
  60. script: install_static.bat # [win]
  61. requirements:
  62. build:
  63. - {{ compiler('c') }}
  64. - {{ compiler('cxx') }}
  65. - ninja
  66. - cmake
  67. host:
  68. - pkg-config
  69. - zlib
  70. - pcre2
  71. - {{ pin_subpackage("libsolv", exact=True) }}
  72. run:
  73. - {{ pin_subpackage("libsolv", exact=True) }}
  74. test:
  75. commands:
  76. - test -f ${PREFIX}/lib/libsolv.a # [unix]
  77. - test -f ${PREFIX}/lib/libsolvext.a # [unix]
  78. - if exist %LIBRARY_LIB%\solv_static.lib (exit 0) else (exit 1) # [win]
  79. - if exist %LIBRARY_LIB%\solvext_static.lib (exit 0) else (exit 1) # [win]
  80. about:
  81. home: https://github.com/openSUSE/libsolv
  82. license: BSD-3-Clause
  83. license_family: BSD
  84. license_file: LICENSE.BSD
  85. summary: Library for solving packages and reading repositories
  86. description: libsolv, a free package dependency solver using a satisfiability algorithm.
  87. dev_url: https://github.com/openSUSE/libsolv
  88. doc_url: https://github.com/openSUSE/libsolv/tree/master/doc
  89. doc_src_url: https://github.com/openSUSE/libsolv/tree/master/doc
  90. extra:
  91. recipe-maintainers:
  92. - SylvainCorlay
  93. - JohanMabille
  94. - wolfv
  95. - davidbrochart
  96. - adriendelsalle