Added expat devel
+# A few variables that make this a tiny bit more portable
+{% set name = "expat" %}
+{% set version = '2.1.0' %}
+{% set centos_build = '10' %}
+{% set el = 'el7_3' %}
{% set arch = "aarch64" %}
{% set cos = "cos7" %}
{% set url_base = "http://mirror.centos.org/altarch/7/os/aarch64/Packages/" %}
package:
- name: expat-{{ cos }}-{{ arch }}
- version: 2.0.1
+ name: {{ name }}-{{ cos }}-{{ arch }}
+ version: {{ version }}
source:
- - url: {{ url_base }}expat-2.1.0-10.el7_3.aarch64.rpm
+ - url: {{ url_base }}{{ name }}-{{ version }}-{{ centos_build }}.{{ el }}.{{ arch }}.rpm
sha256: f5313d176b7ea683b1abdf3152d6bee22903628b99e9d07372377985a1d25edb
# conda seems to remove folders if they are the only ones there
# we need to keep the structure of the RPM
# https://github.com/conda/conda-build/issues/3595
folder: binary/usr
+ - url: {{ url_base }}{{ name }}-devel-{{ version }}-{{ centos_build }}.{{ el }}.{{ arch }}.rpm
+ sha256: 3feb40b3e54a9313750494730125931de854569e42e7a9bd72d77d52b1569469
+ folder: devel/usr
build:
number: 0
noarch: generic
missing_dso_whitelist:
- '*'
+
+
+test:
+ commands:
+ - test -f "$PREFIX/{{ arch }}-conda_{{ cos }}-linux-gnu/sysroot/usr/bin/xmlwf"
+
+outputs:
+ - name: {{ name }}-{{ cos }}-{{ arch }}
+ build:
script:
- mkdir -p {{ PREFIX }}/{{ arch }}-conda_{{ cos }}-linux-gnu/sysroot
- pushd {{ PREFIX }}/{{ arch }}-conda_{{ cos }}-linux-gnu/sysroot > /dev/null 2>&1
- cp -Rf {{ SRC_DIR }}/binary/* .
+ - name: {{ name }}-devel-{{ cos }}-{{ arch }}
+ build:
+ noarch: generic
+ script:
+ - mkdir -p {{ PREFIX }}/{{ arch }}-conda_{{ cos }}-linux-gnu/sysroot
+ - pushd {{ PREFIX }}/{{ arch }}-conda_{{ cos }}-linux-gnu/sysroot > /dev/null 2>&1
+ - cp -Rf {{ SRC_DIR }}/devel/* .
+ requirements:
+ - {{ pin_subpackage(name + '-' + cos + '-' + arch, exact=True) }}
test:
commands:
- - test -f "${PREFIX}/{{ arch }}-conda_{{ cos }}-linux-gnu/sysroot/usr/bin/xmlwf"
+ - test -f "$PREFIX/{{ arch }}-conda_{{ cos }}-linux-gnu/sysroot/usr/lib64/libexpat.so"
about:
home: http://www.libexpat.org/
license: MIT
license_family: MIT
- license_file: binary/usr/share/doc/expat-2.1.0/COPYING
+ license_file: binary/usr/share/doc/{{ name }}-{{ version }}/COPYING
summary: "(CDT) An XML parser library"
extra:
