diff --git a/README.md b/README.md index 095e8eb..c5a1731 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-pydantic_core +Provides the core functionality for pydantic validation and serialization. + diff --git a/python-pydantic_core.spec b/python-pydantic_core.spec new file mode 100644 index 0000000..8a94019 --- /dev/null +++ b/python-pydantic_core.spec @@ -0,0 +1,55 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-pydantic_core +Version: 2.14.6 +Release: 1mamba +Summary: Provides the core functionality for pydantic validation and serialization +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/pydantic/pydantic-core +Source: https://pypi.debian.net/pydantic-core/pydantic_core-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: (python3.11dist(typing-extensions) < 4.7 or python3.11dist(typing-extensions) > 4.7) +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libpython311-devel +BuildRequires: python3.11dist(typing-extensions) +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n pydantic_core-%{version} + +%build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -m installer --destdir=%{buildroot} dist/*.whl + +#%if "%{?with_pyver}" != "3" +## Rename any conflicting file outside of python site packages tree +#for f in %{_bindir}/pdm; do +# mv %{buildroot}${f}{,-%{?pyappend}} +#done +#%endif + +%files %{?pyappend} +%defattr(-,root,root) +%dir %{python_sitearch}/%{pkgname}-%{version}.dist-info +%{python_sitearch}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitearch}/%{pkgname} +%{python_sitearch}/%{pkgname}/* +%doc LICENSE + +%changelog +* Sat Jan 27 2024 Silvan Calarco 2.14.6-1mamba +- package created using the webbuild interface