forked from pool/python-FormEncode
Accepting request 195602 from devel:languages: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 (forwarded request 195401 from frispete) OBS-URL: https://build.opensuse.org/request/show/195602 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-FormEncode?expand=0&rev=5
This commit is contained in:
commit
ee3cc55787
3
FormEncode-doc-infrastructure.tar.gz
Normal file
3
FormEncode-doc-infrastructure.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9ce55ab4cbf3c284e1a3d8f0e2340b5c9201c106e1b34f15eae669143885452a
|
||||||
|
size 16730
|
@ -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
|
Mon Jun 10 12:28:02 UTC 2013 - dmueller@suse.com
|
||||||
|
|
||||||
|
@ -24,12 +24,16 @@ Summary: HTML form validation, generation, and conversion package
|
|||||||
License: Python-2.0
|
License: Python-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: http://pypi.python.org/packages/source/F/FormEncode/FormEncode-%{version}.zip
|
Source: http://pypi.python.org/packages/source/F/FormEncode/FormEncode-%{version}.zip
|
||||||
|
Source1: FormEncode-doc-infrastructure.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-distribute
|
BuildRequires: python-distribute
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
Provides: python-formencode = %{version}
|
Provides: python-formencode = %{version}
|
||||||
Obsoletes: python-formencode < %{version}
|
Obsoletes: python-formencode < %{version}
|
||||||
|
# Documentation requirements:
|
||||||
|
BuildRequires: python-Sphinx
|
||||||
|
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%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()")}
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
%else
|
%else
|
||||||
@ -41,17 +45,34 @@ FormEncode validates and converts nested structures. It allows for
|
|||||||
a declarative form of defining the validation, and decoupled processes
|
a declarative form of defining the validation, and decoupled processes
|
||||||
for filling and generating forms.
|
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
|
%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
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
chmod 755 %{buildroot}%{python_sitelib}/formencode/i18n/msgfmt.py
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%doc PKG-INFO README.txt
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc build/sphinx/html/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user