diff --git a/python-wtforms.spec b/python-wtforms.spec index f70dd79..eb4b90d 100644 --- a/python-wtforms.spec +++ b/python-wtforms.spec @@ -71,16 +71,34 @@ popd %find_lang wtforms -%files -f wtforms.lang +grep -v %{python3_sitelib} wtforms.lang > python-wtforms.lang +grep -v %{python_sitelib} wtforms.lang > python3-wtforms.lang + +find $RPM_BUILD_ROOT%{python3_sitelib}/wtforms/locale -name "*.po*" -delete +find $RPM_BUILD_ROOT%{python_sitelib}/wtforms/locale -name "*.po*" -delete + +%files -f python-wtforms.lang %doc docs/ LICENSE.txt PKG-INFO %{python_sitelib}/*.egg-info -%{python_sitelib}/wtforms/ +%dir %{python_sitelib}/wtforms/ +%{python_sitelib}/wtforms/*.py* +%{python_sitelib}/wtforms/csrf/ +%{python_sitelib}/wtforms/ext/ +%{python_sitelib}/wtforms/fields/ +%{python_sitelib}/wtforms/widgets/ %if 0%{?with_python3} -%files -n python3-wtforms -f wtforms.lang +%files -n python3-wtforms -f python3-wtforms.lang %doc docs/ LICENSE.txt PKG-INFO %{python3_sitelib}/*.egg-info/ -%{python3_sitelib}/wtforms/ +%dir %{python3_sitelib}/wtforms/ +%{python3_sitelib}/wtforms/*.py* +%{python3_sitelib}/wtforms/csrf/ +%{python3_sitelib}/wtforms/ext/ +%{python3_sitelib}/wtforms/fields/ +%{python3_sitelib}/wtforms/widgets/ +%{python3_sitelib}/wtforms/__pycache__/ + %endif %changelog