diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3611aca --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/glad2-2.0.2.tar.gz diff --git a/python-glad2.spec b/python-glad2.spec new file mode 100644 index 0000000..d190e3a --- /dev/null +++ b/python-glad2.spec @@ -0,0 +1,61 @@ +%global srcname glad2 + +Name: python-%{srcname} +Version: 2.0.2 +Release: %autorelease +Summary: Multi-Language GL/GLES/EGL/GLX/WGL Loader-Generator + +# Mostly MIT, Apache-2.0 for Khronos and EGL specifications/headers. +License: MIT and Apache-2.0 +URL: https://github.com/Dav1dde/glad +Source0: %pypi_source %{srcname} +BuildArch: noarch + +BuildRequires: python3-devel + +%description +Glad uses the official Khronos-XML specs to generate a GL/GLES/EGL/GLX/WGL +Loader made for your needs. + + +%package -n %{srcname} +Summary: %{summary} + +Requires: python3-glad2 = %{version}-%{release} + +%description -n %{srcname} +Glad uses the official Khronos-XML specs to generate a GL/GLES/EGL/GLX/WGL +Loader made for your needs. + +%package -n python3-%{srcname} +Summary: %{summary} + +Conflicts: python3-glad + +%description -n python3-%{srcname} +Glad uses the official Khronos-XML specs to generate a GL/GLES/EGL/GLX/WGL +Loader made for your needs. + +%prep +%autosetup -n %{srcname}-%{version} +sed -i -e '1{\@^#!@d}' glad/__main__.py + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files glad + +%files -n %{srcname} +%doc README.md +%license LICENSE +%{_bindir}/glad + +%files -n python3-%{srcname} -f %{pyproject_files} + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..5b614ce --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (glad2-2.0.2.tar.gz) = 0685c91bfdcddd686662023da09feabe8e0ed13e9162125156f6c0fb29b1a2a68026969e9b2748130721f7819db40f758bd162087f735ced0540f97ed1e88014