From 75fe26f94ab5da0ae2ae7ed9336161412ffa717076a9c40bc822033bb59a1ddd Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 21 May 2020 11:07:28 +0000 Subject: [PATCH] Accepting request 807027 from home:badshah400:branches:science C-family Abstract Syntax Tree XML Output OBS-URL: https://build.opensuse.org/request/show/807027 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/CastXML?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + CastXML-0.3.4.tar.gz | 3 ++ CastXML.changes | 4 +++ CastXML.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 100 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 CastXML-0.3.4.tar.gz create mode 100644 CastXML.changes create mode 100644 CastXML.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/CastXML-0.3.4.tar.gz b/CastXML-0.3.4.tar.gz new file mode 100644 index 0000000..afb819b --- /dev/null +++ b/CastXML-0.3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a597ef37fe2b43fe3cf2c0c4e2ed0069d5aba2714016c319ac47787760859df4 +size 95604 diff --git a/CastXML.changes b/CastXML.changes new file mode 100644 index 0000000..735660f --- /dev/null +++ b/CastXML.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun May 17 22:44:23 UTC 2020 - Atri Bhattacharya + +- Initial package. diff --git a/CastXML.spec b/CastXML.spec new file mode 100644 index 0000000..bd978b3 --- /dev/null +++ b/CastXML.spec @@ -0,0 +1,69 @@ +# +# spec file for package CastXML +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: CastXML +Version: 0.3.4 +Release: 0 +Summary: C-family Abstract Syntax Tree XML Output +License: Apache-2.0 +URL: https://github.com/CastXML/CastXML +Source: https://github.com/CastXML/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: clang-devel +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: python3-Sphinx + +%description +CastXML is a C-family abstract syntax tree XML output tool. + +%package devel +Summary: C-family Abstract Syntax Tree XML Output + +%description devel +CastXML is a C-family abstract syntax tree XML output tool. + +%prep +%setup -q + +%build +# FOR LLVM/CLANG >= 10 CLANG_LINK_CLANG_DYLIB NEEDS TO BE SET TO ON TO COMPILE +# AGAINST LLVM/CLAN DYNAMIC LIBS +%cmake -DCastXML_INSTALL_MAN_DIR:PATH=%{_mandir} \ + -DCastXML_INSTALL_DOC_DIR:PATH=%{_docdir}/%{name} \ +%if 0%{?suse_version} >= 1550 + -DCLANG_LINK_CLANG_DYLIB:BOOL=ON \ +%endif + -DSPHINX_HTML:BOOL=ON \ + -DSPHINX_MAN:BOOL=ON + +%cmake_build + +%install +%cmake_install + +# REMOVE FILES TO BE INSTALLED USING %%doc OR %%license +rm %{buildroot}%{_docdir}/%{name}/LICENSE + +%files devel +%license LICENSE +%{_bindir}/castxml +%{_mandir}/man1/castxml.1%{?ext_man} +%{_datadir}/castxml/ +%doc %{_docdir}/%{name} + +%changelog