diff --git a/glad-0.1.36.tar.gz b/glad-0.1.36.tar.gz deleted file mode 100644 index 3f87cafe6ce1bee50dc8dee8a4912c7484aca6c8..0000000000000000000000000000000000000000 Binary files a/glad-0.1.36.tar.gz and /dev/null differ diff --git a/glad2-2.0.5.tar.gz b/glad2-2.0.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..08924323b40b58ae1e0d041727ebfbf9de13c49d Binary files /dev/null and b/glad2-2.0.5.tar.gz differ diff --git a/python-glad.spec b/python-glad.spec index 4baceb1d63a1533af5e79a588b22a77300aa3eae..26e37c891a6ffdbb12dfea3a3164b3a2bd9a6ba8 100644 --- a/python-glad.spec +++ b/python-glad.spec @@ -1,77 +1,66 @@ -%global _empty_manifest_terminate_build 0 -Name: python-glad -Version: 0.1.36 -Release: 1 -Summary: Multi-Language GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs. -License: MIT -URL: https://github.com/Dav1dde/glad -Source0: https://files.pythonhosted.org/packages/ba/5f/14c65b8f4be10be731844834f3377f9acbeeb8ead6363d10b2c758baca96/glad-0.1.36.tar.gz -BuildArch: noarch +%global srcname glad2 +Name: python-glad +Version: 2.0.5 +Release: 1 +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: https://files.pythonhosted.org/packages/source/g/glad2/glad2-%{version}.tar.gz +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. +Glad uses the official Khronos-XML specs to generate a GL/GLES/EGL/GLX/WGL +Loader made for your needs. + %package -n python3-glad -Summary: Multi-Language GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs. -Provides: python-glad -BuildRequires: python3-devel -BuildRequires: python3-setuptools +Summary: Multi-Language GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs. +Provides: python-glad +BuildRequires: python3-devel +BuildRequires: python3-setuptools + %description -n python3-glad Glad uses the official Khronos-XML specs to generate a GL/GLES/EGL/GLX/WGL Loader made for your needs. -%package help -Summary: Development documents and examples for glad -Provides: python3-glad-doc -%description help -Glad uses the official Khronos-XML specs to generate a -GL/GLES/EGL/GLX/WGL Loader made for your needs. %prep -%autosetup -n glad-0.1.36 +%autosetup -n %{srcname}-%{version} +sed -i -e '1{\@^#!@d}' glad/__main__.py + %build %py3_build + %install %py3_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 -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . - -%files -n python3-glad -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst -%{_docdir}/* + + +%files -n python3-glad +%doc README.md +%license LICENSE +%{_bindir}/glad +%{python3_sitelib}/* + %changelog +* Mon Mar 18 2024 liweigang - 2.0.5-1 +- update to version 2.0.5 +- Fix missing Vulkan video headers +- Use FindPython instead of FindPythonInterp +- Add --version option to command-line interface +- Remove one duplicated check for glGetString(GL_VERSION) +- Fix extensions loading and parsing +- Provide CMake package + * Thu Aug 04 2022 liqiuyu - 0.1.36-1 - update to 0.1.36 * Thu Sep 09 2021 Python_Bot - 0.1.34-1 -- Package Init \ No newline at end of file +- Package Init