diff --git a/brotlicffi-1.1.0.0.tar.gz b/brotlicffi-1.1.0.0.tar.gz new file mode 100644 index 0000000..634fd14 Binary files /dev/null and b/brotlicffi-1.1.0.0.tar.gz differ diff --git a/python-brotlicffi.spec b/python-brotlicffi.spec new file mode 100644 index 0000000..fdc3ec4 --- /dev/null +++ b/python-brotlicffi.spec @@ -0,0 +1,62 @@ +%global _empty_manifest_terminate_build 0 +Name: python-brotlicffi +Version: 1.1.0.0 +Release: 1 +Summary: Python CFFI bindings to the Brotli library. +License: MIT +URL: https://github.com/python-hyper/brotlicffi +Source0: https://files.pythonhosted.org/packages/95/9d/70caa61192f570fcf0352766331b735afa931b4c6bc9a348a0925cc13288/brotlicffi-1.1.0.0.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + +%description +Python CFFI bindings to the Brotli library. + +%package -n python3-brotlicffi +Summary: Python CFFI bindings to the Brotli library. +Provides: python-brotlicffi +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-hatchling +%description -n python3-brotlicffi +Python CFFI bindings to the Brotli library. + +%package help +Summary: Development documents and examples for brotlicffi +Provides: python3-brotlicffi-doc + +%description help +Development documents and examples for brotlicffi. + +%prep +%autosetup -n brotlicffi-%{version} + +%build +%pyproject_build + +%install +%pyproject_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi + +%files -n python3-brotlicffi +%doc README.rst HISTORY.rst +%license LICENSE +%{python3_sitelib}/brotlicffi +%{python3_sitearch}/brotlicffi*.dist-info/ + + +%files help +%{_docdir}/* + +%changelog +* Tue Oct 31 2023 Dongxing Wang - 1.1.0.0-1 +- Init package.