Better parameterise rpm-tools URL
{% set name = "rpm-tools" %}
{% set version = "4.15.1" %}
+{% set major_minor = ".".join(version.split(".")[:-1]) %}
package:
name: {{ name|lower }}
@@ -7,7 +8,7 @@ package:
source:
- url: http://ftp.rpm.org/releases/rpm-4.15.x/rpm-{{ version }}.tar.bz2
+ url: http://ftp.rpm.org/releases/rpm-{{ major_minor }}.x/rpm-{{ version }}.tar.bz2
sha256: ddef45f9601cd12042edfc9b6e37efcca32814e1e0f4bb8682d08144a3e2d230
build:
