forked from pool/python-FormEncode
Accepting request 305462 from home:benoit_monin:branches:devel:languages:python
- update to version 1.3.0 - add fdupes as BuildRequires and call it after install - fix end of line of README.rst - remove chmod of msgfmt.py: file deleted upstream - install html documentation in the docdir of the main package - do not install PKG-INFO in the documentation: already provided by the egg-info OBS-URL: https://build.opensuse.org/request/show/305462 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-FormEncode?expand=0&rev=11
This commit is contained in:
parent
fadea04616
commit
74cef21394
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:70fc1d2cf8022b1cc7fcebb5d87cc984dde799e587f05c0a0fe509b374221b0c
|
|
||||||
size 318441
|
|
3
FormEncode-1.3.0.zip
Normal file
3
FormEncode-1.3.0.zip
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e6757280244a0d04e9cef51beeeafb4124087c27b7944c7d41341d0a30f7af78
|
||||||
|
size 347674
|
@ -1,3 +1,24 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 5 14:33:11 UTC 2015 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
- update to version 1.3.0:
|
||||||
|
* Support validation of email addresses with unicode domain names
|
||||||
|
* FormEncode 1.3 is no longer compatible with Python 2.3, 2.4, or
|
||||||
|
2.5
|
||||||
|
* FormEncode now also runs under Python 3.2 and 3.3
|
||||||
|
* Validation of email addresses using resolve_domain option now
|
||||||
|
requires the dnspython third party library instead of pyDNS
|
||||||
|
* The FancyValidator methods _to_python, _from_python,
|
||||||
|
validate_python and validate_other have been renamed to
|
||||||
|
_convert_to_python, _convert_from_python, _validate_python and
|
||||||
|
_validate_other, respectively
|
||||||
|
- add fdupes as BuildRequires and call it after install
|
||||||
|
- fix end of line of README.rst
|
||||||
|
- remove chmod of msgfmt.py: file deleted upstream
|
||||||
|
- install html documentation in the docdir of the main package
|
||||||
|
- do not install PKG-INFO in the documentation: already provided
|
||||||
|
by the egg-info
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 24 11:05:56 UTC 2013 - speilicke@suse.com
|
Thu Oct 24 11:05:56 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-FormEncode
|
# spec file for package python-FormEncode
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-FormEncode
|
Name: python-FormEncode
|
||||||
Version: 1.2.6
|
Version: 1.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://formencode.org
|
Url: http://formencode.org
|
||||||
Summary: HTML form validation, generation, and conversion package
|
Summary: HTML form validation, generation, and conversion package
|
||||||
@ -26,6 +26,7 @@ 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
|
Source1: FormEncode-doc-infrastructure.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
@ -56,7 +57,7 @@ This package contains documentation files for %{name}.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n FormEncode-%{version} -a1
|
%setup -q -n FormEncode-%{version} -a1
|
||||||
find . -name \*.txt -exec sed -i 's/\r$//g' {} \;
|
find . -name \*.txt -exec sed -i 's/\r$//g' {} \;
|
||||||
sed -i 's/\r$//g' PKG-INFO formencode/i18n/msgfmt.py
|
sed -i 's/\r$//g' PKG-INFO README.rst
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
@ -64,15 +65,24 @@ 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
|
|
||||||
|
# install documentation
|
||||||
|
rm -r %{buildroot}/%{python_sitelib}/docs # remove misplaced documentation
|
||||||
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
||||||
|
cp -r README.rst build/sphinx/html %{buildroot}%{_docdir}/%{name}/
|
||||||
|
|
||||||
|
%fdupes %{buildroot}/%{_prefix}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc PKG-INFO README.txt
|
%exclude %{_docdir}/%{name}/html
|
||||||
|
%doc %dir %{_docdir}/%{name}/
|
||||||
|
%doc %{_docdir}/%{name}/README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc build/sphinx/html/
|
%doc %dir %{_docdir}/%{name}/html
|
||||||
|
%doc %{_docdir}/%{name}/html/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user