Package python-module-js.jquery_maskedinput: Specfile

# REMOVE ME (I was set for NMU) and uncomment real Release tags:
Release: alt1.dev.git20130509.2
%define oname js.jquery_maskedinput

%def_with python3

Name: python-module-%oname
Version: 1.3.2
#Release: alt1.dev.git20130509.1
Summary: Fanstatic packaging of jquery.maskedinput
License: BSD
Group: Development/Python
Url: https://pypi.python.org/pypi/js.jquery_maskedinput/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

# https://github.com/Kotti/js.jquery_maskedinput.git
Source: %name-%version.tar

BuildPreReq: python-devel python-module-setuptools
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildPreReq: python3-devel python3-module-setuptools
%endif

%py_provides %oname
%py_requires js js.jquery

%description
This library packages jquery.maskedinput for fanstatic.

%package -n python3-module-%oname
Summary: Fanstatic packaging of jquery.maskedinput
Group: Development/Python3
%py3_provides %oname
%py3_requires js js.jquery

%description -n python3-module-%oname
This library packages jquery.maskedinput for fanstatic.

%prep
%setup

%if_with python3
cp -fR . ../python3
%endif

%build
%python_build_debug

%if_with python3
pushd ../python3
%python3_build_debug
popd
%endif

%install
%python_install

%if_with python3
pushd ../python3
%python3_install
popd
%endif

%if "%_libexecdir" != "%_libdir"
mv %buildroot%_libexecdir %buildroot%_libdir
%endif

cp -fR js/jquery_maskedinput/resources \
	%buildroot%python_sitelibdir/js/jquery_maskedinput/
%if_with python3
pushd ../python3
cp -fR js/jquery_maskedinput/resources \
	%buildroot%python3_sitelibdir/js/jquery_maskedinput/
popd
%endif

%files
%doc *.txt
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%doc *.txt
%python3_sitelibdir/*
%endif

%changelog
* Tue Apr 30 2019 Grigory Ustinov <grenka@altlinux.org> 1.3.2-alt1.dev.git20130509.2
- Rebuild with python3.7.

* Tue May 24 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.3.2-alt1.dev.git20130509.1.1
- (AUTO) subst_x86_64.

* Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.3.2-alt1.dev.git20130509.1
- (NMU) rebuild with rpm-build-python3-0.1.9
  (for common python3/site-packages/ and auto python3.3-ABI dep when needed)

* Fri Oct 10 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.3.2-alt1.dev.git20130509
- Initial build for Sisyphus