Commit aa287423 authored by Jakub Jirutka's avatar Jakub Jirutka

main/py-uritemplate: fix name of subpackages

pyX-uritemplate.py -> pyX-uritemplate
parent b3f9e7f5
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
pkgname=py-uritemplate pkgname=py-uritemplate
_pkgname=uritemplate.py _pkgname=uritemplate.py
pkgver=3.0.0 pkgver=3.0.0
pkgrel=0 pkgrel=1
pkgdesc="Python module to use URO templates" pkgdesc="Python module to use URO templates"
url=" https://uritemplate.readthedocs.org" url="https://uritemplate.readthedocs.org"
arch="noarch" arch="noarch"
license="BSD" license="BSD"
options="!check" options="!check"
depends="" depends=""
makedepends="python2-dev python3-dev py-setuptools" makedepends="python2-dev python3-dev py-setuptools"
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver" builddir="$srcdir/$_pkgname-$pkgver"
...@@ -36,11 +36,14 @@ _py() { ...@@ -36,11 +36,14 @@ _py() {
} }
_py2() { _py2() {
replaces="$pkgname" replaces="$pkgname py2-$_pkgname" # for backward compatibility
provides="py2-$_pkgname" # for backward compatibility
_py python2 _py python2
} }
_py3() { _py3() {
replaces="py3-$_pkgname" # for backward compatibility
provides="py3-$_pkgname" # for backward compatibility
_py python3 _py python3
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment