File python-wxpython.spec of Package python-wxpython

Name: python-wxpython
Version: 2
Release: 1
Summary: WxPython transitional package
License: GPL-3.0-or-later

%define buildsubdir %{name}-%{version}
%description
%{summary}.

%prep
mkdir -p %{_builddir}/%{buildsubdir}
mkdir -p %{specpartsdir}

%install
file=%{specpartsdir}/parts.specpart
echo '' > "$file"
c='%%'
for i in %pythons
do
cat << EOF >> "$file"
${c}package -n ${i}-wxpython
Requires: ${i}-wxPython
Provides: ${i}dist(wxpython) python3-wxpython python3dist(wxpython)
Summary: WxPython transitional package for ${i}
BuildArch: noarch

${c}description -n ${i}-wxpython
${c}{summary}.

${c}files -n ${i}-wxpython

EOF
done
openSUSE Build Service is sponsored by