diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..447f23a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/toml-0.10.2.tar.gz diff --git a/mingw-python-toml.spec b/mingw-python-toml.spec new file mode 100644 index 0000000..960d7c5 --- /dev/null +++ b/mingw-python-toml.spec @@ -0,0 +1,70 @@ +%{?mingw_package_header} + +%global pypi_name toml + +Name: mingw-python-%{pypi_name} +Summary: MinGW Python %{pypi_name} +Version: 0.10.2 +Release: 1%{?dist} +BuildArch: noarch + +License: MIT +Url: https://pypi.python.org/pypi/%{pypi_name} +Source0: %{pypi_source} + + +BuildRequires: mingw32-filesystem >= 102 +BuildRequires: mingw32-python3 +BuildRequires: mingw32-python3-setuptools + +BuildRequires: mingw64-filesystem >= 102 +BuildRequires: mingw64-python3 +BuildRequires: mingw64-python3-setuptools + + +%description +MinGW Python %{pypi_name} + + +%package -n mingw32-python3-%{pypi_name} +Summary: MinGW Python 3 %{pypi_name} + +%description -n mingw32-python3-%{pypi_name} +MinGW Python 3 %{pypi_name}. + + +%package -n mingw64-python3-%{pypi_name} +Summary: MinGW Python 3 %{pypi_name} + +%description -n mingw64-python3-%{pypi_name} +MinGW Python 3 %{pypi_name}. + + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + + +%build +%{mingw32_py3_build} +%{mingw64_py3_build} + + +%install +%{mingw32_py3_install} +%{mingw64_py3_install} + + +%files -n mingw32-python3-%{pypi_name} +%license LICENSE +%{mingw32_python3_sitearch}/%{pypi_name}/ +%{mingw32_python3_sitearch}/%{pypi_name}-%{version}*-py%{mingw32_python3_version}.egg-info/ + +%files -n mingw64-python3-%{pypi_name} +%license LICENSE +%{mingw64_python3_sitearch}/%{pypi_name}/ +%{mingw64_python3_sitearch}/%{pypi_name}-%{version}*-py%{mingw64_python3_version}.egg-info/ + + +%changelog +* Tue Sep 14 2021 Sandro Mani - 0.10.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..03fd9a6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (toml-0.10.2.tar.gz) = ede2c8fed610a3827dba828f6e7ab7a8dbd5745e8ef7c0cd955219afdc83b9caea714deee09e853627f05ad1c525dc60426a6e9e16f58758aa028cb4d3db4b39