Accepting request 195401 from home:frispete:python

- 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

OBS-URL: https://build.opensuse.org/request/show/195401
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-FormEncode?expand=0&rev=7
This commit is contained in:
Todd R 2013-08-19 11:44:42 +00:00 committed by Git OBS Bridge
parent c2d6701df7
commit 135199ecc6
3 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9ce55ab4cbf3c284e1a3d8f0e2340b5c9201c106e1b34f15eae669143885452a
size 16730

View File

@ -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

View File

@ -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