diff --git a/FormEncode-doc-infrastructure.tar.gz b/FormEncode-doc-infrastructure.tar.gz new file mode 100644 index 0000000..bfb7df0 --- /dev/null +++ b/FormEncode-doc-infrastructure.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ce55ab4cbf3c284e1a3d8f0e2340b5c9201c106e1b34f15eae669143885452a +size 16730 diff --git a/python-FormEncode.changes b/python-FormEncode.changes index 0231d54..069fb57 100644 --- a/python-FormEncode.changes +++ b/python-FormEncode.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Aug 5 13:25:42 UTC 2013 - hpj@urpla.net + +- somebody updated this package to 1.2.6 (not me) +- added missing pieces in order to generate sphinx documentation +- create documentation in separate -doc package +- fix various wrong line endings + ------------------------------------------------------------------- Mon Jun 10 12:28:02 UTC 2013 - dmueller@suse.com diff --git a/python-FormEncode.spec b/python-FormEncode.spec index c246ed6..544d9b3 100644 --- a/python-FormEncode.spec +++ b/python-FormEncode.spec @@ -24,12 +24,16 @@ Summary: HTML form validation, generation, and conversion package License: Python-2.0 Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/F/FormEncode/FormEncode-%{version}.zip +Source1: FormEncode-doc-infrastructure.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-distribute BuildRequires: unzip Provides: python-formencode = %{version} Obsoletes: python-formencode < %{version} +# Documentation requirements: +BuildRequires: python-Sphinx + %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else @@ -41,17 +45,34 @@ FormEncode validates and converts nested structures. It allows for a declarative form of defining the validation, and decoupled processes for filling and generating forms. +%package doc +Summary: HTML form validation, generation, and conversion package +Group: Development/Libraries/Python +Requires: %{name} = %{version} + +%description doc +This package contains documentation files for %{name}. + %prep -%setup -q -n FormEncode-%{version} +%setup -q -n FormEncode-%{version} -a1 +find . -name \*.txt -exec sed -i 's/\r$//g' {} \; +sed -i 's/\r$//g' PKG-INFO formencode/i18n/msgfmt.py %build python setup.py build +python setup.py build_sphinx && rm build/sphinx/html/.buildinfo %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +chmod 755 %{buildroot}%{python_sitelib}/formencode/i18n/msgfmt.py %files %defattr(-,root,root,-) +%doc PKG-INFO README.txt %{python_sitelib}/* +%files doc +%defattr(-,root,root,-) +%doc build/sphinx/html/ + %changelog