Projects
Eulaceura:Mainline:GA
python-FormEncode
_service:obs_scm:python-formencode.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:python-formencode.spec of Package python-FormEncode
%global srcname FormEncode Name: python-%{srcname} Version: 2.1.0 Release: 1 Summary: HTML form validation, generation, and convertion package License: MIT and Python-2.0 URL: http://formencode.org/ Source0: https://files.pythonhosted.org/packages/source/F/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-pip %description 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 -n python3-formencode Summary: HTML form validation, generation, and convertion package BuildRequires: python3-devel python3-setuptools python3-docutils BuildRequires: python3-setuptools_scm Requires: python3-setuptools python-formencode-langpacks %{?python_provide:%python_provide python3-formencode} %description -n python3-formencode FormEncode validates and converts nested structures. It allows for a declarative form of defining the validation, and decoupled processes for filling and generating forms. This package contains the python3 version of the module. %package -n python-formencode-langpacks Summary: Locale files for the python-formencode library %description -n python-formencode-langpacks The FormEncode library validates and converts nested structures. This package contains the locale files for localizing the message strings in code within the library. %prep %autosetup -n %{srcname}-%{version} -p1 %build sed -i "s|'setuptools_scm_git_archive',||" setup.py %py3_build %install %py3_install rm -rf $RPM_BUILD_ROOT%{python3_sitelib}/docs/ for file in $RPM_BUILD_ROOT%{python3_sitelib}/formencode/i18n/* ; do if [ -d $file ] ; then if [ -e $file/LC_MESSAGES/%{srcname}.mo ] ; then mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/`basename $file`/LC_MESSAGES/ mv $file/LC_MESSAGES/%{srcname}.mo $RPM_BUILD_ROOT%{_datadir}/locale/`basename $file`/LC_MESSAGES/ fi fi done rm -rf $RPM_BUILD_ROOT%{python3_sitelib}/formencode/i18n rm -rf $RPM_BUILD_ROOT/usr/LICENSE.txt %find_lang %{srcname} %files -n python3-formencode %doc PKG-INFO docs %license LICENSE.txt %{python3_sitelib}/formencode/ %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ %files -n python-formencode-langpacks -f %{srcname}.lang %changelog * Wed Sep 04 2024 yaoxin <yao_xin001@hoperun.com> - 2.1.0-1 - Update to 2.1.0: * Add support for Python 3.7 to 3.12, end support for older Python versions * Context.set() now works as a context manager * Fix binary of swedish translation * Some internal code cleanup and modernization * Mon Aug 8 2022 caodongxia <caodongxia@h-partners.com> - 2.0.1-1 - Update to 2.0.1 * Wed May 26 2021 Ge Wang <wangge20@huawei.com> - 2.0.0-1 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2