Init packaging for openEuler
(cherry picked from commit 9f5a2e6eb6aa98c8e2d8262877f0d0f3ae5c1120)
This commit is contained in:
parent
2cd3ba62f7
commit
6b74954244
BIN
castxml-0.6.1.tar.gz
Normal file
BIN
castxml-0.6.1.tar.gz
Normal file
Binary file not shown.
64
castxml.spec
Normal file
64
castxml.spec
Normal file
@ -0,0 +1,64 @@
|
||||
%undefine __cmake_in_source_build
|
||||
|
||||
Name: castxml
|
||||
Version: 0.6.1
|
||||
Release: 1
|
||||
Summary: C-family abstract syntax tree XML output tool
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/CastXML/CastXML
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: llvm-devel >= 3.6.0
|
||||
BuildRequires: clang-devel >= 3.6.0
|
||||
BuildRequires: libedit-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: python3-sphinx
|
||||
Obsoletes: gccxml < 0.9.0-0.28
|
||||
|
||||
%description
|
||||
Parse C-family source files and optionally write a subset of the
|
||||
Abstract Syntax Tree (AST) to a representation in XML.
|
||||
|
||||
Source files are parsed as complete translation units using the clang
|
||||
compiler. XML output is enabled by the --castxml-gccxml option and
|
||||
produces a format close to that of gccxml. Future versions of castxml
|
||||
may support alternative output formats.
|
||||
|
||||
%prep
|
||||
%setup -q -n CastXML-%{version}
|
||||
|
||||
%build
|
||||
%cmake -DCastXML_INSTALL_DOC_DIR:STRING=share/doc/%{name} \
|
||||
-DCastXML_INSTALL_MAN_DIR:STRING=share/man \
|
||||
-DCLANG_RESOURCE_DIR:PATH=$(clang -print-file-name=include)/.. \
|
||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||
-DCLANG_LINK_CLANG_DYLIB:BOOL=ON \
|
||||
-DBUILD_TESTING:BOOL=ON \
|
||||
-DSPHINX_MAN:BOOL=ON
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm %{buildroot}%{_pkgdocdir}/LICENSE
|
||||
rm %{buildroot}%{_pkgdocdir}/NOTICE
|
||||
|
||||
%check
|
||||
ctest -v
|
||||
|
||||
%files
|
||||
%{_bindir}/castxml
|
||||
%doc %{_mandir}/man1/castxml.1*
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/%{name}/clang
|
||||
%{_datadir}/%{name}/detect_vs.c
|
||||
%{_datadir}/%{name}/detect_vs.cpp
|
||||
%{_datadir}/%{name}/empty.c
|
||||
%{_datadir}/%{name}/empty.cpp
|
||||
%license LICENSE NOTICE
|
||||
|
||||
%changelog
|
||||
* Fri Apr 28 2023 liweiganga <liweiganga@uniontech.com> - 0.6.1-1
|
||||
- Init packaging for openEuler
|
||||
Loading…
x
Reference in New Issue
Block a user