diff --git a/clang-19.1.7.tar.gz b/clang-19.1.7.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4759c679f04ef517634644d9eee71924e1742f8d Binary files /dev/null and b/clang-19.1.7.tar.gz differ diff --git a/python-clang.spec b/python-clang.spec new file mode 100644 index 0000000000000000000000000000000000000000..d623005c35d9dc2bbd5e06d4e38e974e2344fcfb --- /dev/null +++ b/python-clang.spec @@ -0,0 +1,66 @@ +%global _empty_manifest_terminate_build 0 +Name: python-clang +Version: 19.1.7 +Release: 1 +Summary: libclang python bindings +License: Apache-2.0 with LLVM exception +URL: http://clang.llvm.org/ +Source0: https://files.pythonhosted.org/packages/65/f3/5906d54f4a6e52b76a184cbc22a1b76cd4787908fa2fab43a177b1437930/clang-19.1.7.tar.gz +BuildArch: noarch + + +%description +clang + +%package -n python3-clang +Summary: libclang python bindings +Provides: python-clang +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-scikit-build-core +BuildRequires: python3-pyproject-metadata +BuildRequires: python3-pathspec +%description -n python3-clang +clang + +%prep +%autosetup -n clang-19.1.7 + +%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 +pushd %{buildroot} +touch filelist.lst +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-clang -f filelist.lst +%{python3_sitelib}/* + + +%changelog +* Sat May 10 2025 Python_Bot - 19.1.7-1 +- Package Spec generated