2020-05-21 13:07:28 +02:00
|
|
|
#
|
|
|
|
# spec file for package CastXML
|
|
|
|
#
|
2024-01-20 13:16:28 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-05-21 13:07:28 +02:00
|
|
|
#
|
|
|
|
# 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
|
2024-01-20 13:16:28 +01:00
|
|
|
Version: 0.6.3
|
2020-05-21 13:07:28 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: C-family Abstract Syntax Tree XML Output
|
|
|
|
License: Apache-2.0
|
|
|
|
URL: https://github.com/CastXML/CastXML
|
2022-09-01 11:44:26 +02:00
|
|
|
Source0: https://github.com/CastXML/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
Source1: %{name}-rpmlintrc
|
2020-05-21 13:07:28 +02:00
|
|
|
BuildRequires: clang-devel
|
|
|
|
BuildRequires: cmake
|
2022-09-01 11:44:26 +02:00
|
|
|
BuildRequires: fdupes
|
2020-05-21 13:07:28 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: python3-Sphinx
|
2022-03-15 12:43:24 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2020-05-21 13:07:28 +02:00
|
|
|
|
|
|
|
%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
|
2021-10-27 17:27:16 +02:00
|
|
|
%autosetup -p1
|
2020-05-21 13:07:28 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -DCastXML_INSTALL_MAN_DIR:PATH=%{_mandir} \
|
|
|
|
-DCastXML_INSTALL_DOC_DIR:PATH=%{_docdir}/%{name} \
|
|
|
|
-DCLANG_LINK_CLANG_DYLIB:BOOL=ON \
|
2022-03-15 12:43:24 +01:00
|
|
|
-DBUILD_TESTING:BOOL=ON \
|
2020-05-21 13:07:28 +02:00
|
|
|
-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
|
|
|
|
|
2022-09-01 11:44:26 +02:00
|
|
|
%fdupes %{buildroot}%{_datadir}/castxml/clang/include/
|
|
|
|
|
2022-03-15 12:43:24 +01:00
|
|
|
%check
|
|
|
|
%ctest
|
|
|
|
|
2020-05-21 13:07:28 +02:00
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/castxml
|
|
|
|
%{_mandir}/man1/castxml.1%{?ext_man}
|
|
|
|
%{_datadir}/castxml/
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|