diff --git a/picobox-3.0.0.tar.gz b/picobox-3.0.0.tar.gz new file mode 100644 index 0000000..3e53894 Binary files /dev/null and b/picobox-3.0.0.tar.gz differ diff --git a/python-picobox.spec b/python-picobox.spec new file mode 100644 index 0000000..8639481 --- /dev/null +++ b/python-picobox.spec @@ -0,0 +1,64 @@ +%global _empty_manifest_terminate_build 0 +Name: python-picobox +Version: 3.0.0 +Release: 1 +Summary: Dependency injection framework designed with Python in mind. +License: MIT +URL: https://github.com/ikalnytskyi/picobox +Source0: https://files.pythonhosted.org/packages/29/58/62da7083e7d3ce07fb5d13c89636fe8d224083d1d724327636482167dfb9/picobox-3.0.0.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-hatch-vcs + +%description +Dependency injection framework designed with Python in mind. + +%package -n python3-picobox +Summary: Dependency injection framework designed with Python in mind. +Provides: python-picobox +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-hatchling +%description -n python3-picobox +Dependency injection framework designed with Python in mind. + +%package help +Summary: Development documents and examples for picobox +Provides: python3-picobox-doc + +%description help +Development documents and examples for picobox. + +%prep +%autosetup -n picobox-%{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-picobox +%doc README.rst +%license LICENSE +%{python3_sitelib}/picobox +%{python3_sitelib}/picobox*.dist-info/ + + +%files help +%{_docdir}/* + +%changelog +* Tue Nov 7 2023 Dongxing Wang - 3.0.0-1 +- Init package