Blame SPECS/lldb.spec

951281
#%%global rc_ver 5
432819
%global lldb_version 13.0.0
432819
%global lldb_srcdir %{name}-%{lldb_version}%{?rc_ver:rc%{rc_ver}}.src
951281
951281
Name:		lldb
432819
Version:	%{lldb_version}%{?rc_ver:~rc%{rc_ver}}
432819
Release:	1%{?dist}
951281
Summary:	Next generation high-performance debugger
951281
951281
License:	NCSA
951281
URL:		http://lldb.llvm.org/
432819
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{lldb_version}%{?rc_ver:-rc%{rc_ver}}/%{lldb_srcdir}.tar.xz
432819
Source1:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{lldb_version}%{?rc_ver:-rc%{rc_ver}}/%{lldb_srcdir}.tar.xz.sig
951281
Source2:	tstellar-gpg-key.asc
951281
951281
BuildRequires:	gcc
951281
BuildRequires:	gcc-c++
951281
BuildRequires:	cmake
951281
BuildRequires:	ninja-build
951281
BuildRequires:	llvm-devel = %{version}
951281
BuildRequires:	llvm-test = %{version}
951281
BuildRequires:	clang-devel = %{version}
951281
BuildRequires:	ncurses-devel
951281
BuildRequires:	swig
951281
BuildRequires:	llvm-static = %{version}
951281
BuildRequires:	libffi-devel
951281
BuildRequires:	zlib-devel
951281
BuildRequires:	libxml2-devel
951281
BuildRequires:	libedit-devel
951281
BuildRequires:	python3-lit
951281
BuildRequires:	multilib-rpm-config
951281
951281
Requires:	python3-lldb
951281
951281
# For origin certification
951281
BuildRequires:	gnupg2
951281
951281
%description
951281
LLDB is a next generation, high-performance debugger. It is built as a set
951281
of reusable components which highly leverage existing libraries in the
951281
larger LLVM Project, such as the Clang expression parser and LLVM
951281
disassembler.
951281
951281
%package devel
951281
Summary:	Development header files for LLDB
951281
Requires:	%{name}%{?_isa} = %{version}-%{release}
951281
951281
%description devel
951281
The package contains header files for the LLDB debugger.
951281
951281
%package -n python3-lldb
951281
%{?python_provide:%python_provide python3-lldb}
951281
Summary:	Python module for LLDB
951281
BuildRequires:	python3-devel
951281
BuildRequires:	python3-setuptools
951281
Requires:	python3-six
951281
Requires:	%{name}%{?_isa} = %{version}-%{release}
951281
951281
%description -n python3-lldb
951281
The package contains the LLDB Python module.
951281
951281
%prep
951281
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
951281
%autosetup -n %{lldb_srcdir} -p2
951281
951281
%build
951281
951281
CFLAGS="%{optflags} -Wno-error=format-security"
951281
CXXFLAGS="%{optflags} -Wno-error=format-security"
951281
951281
%cmake  -GNinja \
951281
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
951281
	-DCMAKE_SKIP_RPATH:BOOL=ON \
951281
	-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
951281
	-DLLVM_CONFIG:FILEPATH=/usr/bin/llvm-config-%{__isa_bits} \
951281
	\
951281
	-DLLDB_DISABLE_CURSES:BOOL=OFF \
951281
	-DLLDB_DISABLE_LIBEDIT:BOOL=OFF \
951281
	-DLLDB_DISABLE_PYTHON:BOOL=OFF \
951281
%if 0%{?__isa_bits} == 64
951281
	-DLLVM_LIBDIR_SUFFIX=64 \
951281
%else
951281
	-DLLVM_LIBDIR_SUFFIX= \
951281
%endif
951281
	\
951281
	-DPYTHON_EXECUTABLE:STRING=%{__python3} \
951281
	-DPYTHON_VERSION_MAJOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.major)") \
951281
	-DPYTHON_VERSION_MINOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.minor)") \
951281
	-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
951281
	-DCLANG_LINK_CLANG_DYLIB=ON \
951281
	-DLLVM_LIT_ARGS="-sv \
951281
	--path %{_libdir}/llvm" \
951281
951281
%cmake_build
951281
951281
%install
951281
%cmake_install
951281
951281
%multilib_fix_c_header --file %{_includedir}/lldb/Host/Config.h
951281
951281
# remove static libraries
951281
rm -fv %{buildroot}%{_libdir}/*.a
951281
951281
# python: fix binary libraries location
951281
liblldb=$(basename $(readlink -e %{buildroot}%{_libdir}/liblldb.so))
951281
ln -vsf "../../../${liblldb}" %{buildroot}%{python3_sitearch}/lldb/_lldb.so
951281
%py_byte_compile %{__python3} %{buildroot}%{python3_sitearch}/lldb
951281
951281
# remove bundled six.py
951281
rm -f %{buildroot}%{python3_sitearch}/six.*
951281
951281
%ldconfig_scriptlets
951281
951281
%check
951281
951281
951281
%files
951281
%license LICENSE.TXT
951281
%{_bindir}/lldb*
951281
%{_libdir}/liblldb.so.*
951281
%{_libdir}/liblldbIntelFeatures.so.*
951281
951281
%files devel
951281
%{_includedir}/lldb
951281
%{_libdir}/*.so
951281
951281
%files -n python3-lldb
951281
%{python3_sitearch}/lldb
951281
951281
%changelog
432819
* Tue Oct 12 2021 Timm Bäder <tbaeder@redhat.com> - 13.0.0-1
432819
- Release 13.0.0
432819
951281
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 12.0.1-2
951281
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
951281
  Related: rhbz#1991688
951281
951281
* Wed Jul 14 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1-1
951281
- 12.0.1 Release
951281
951281
* Thu May 13 2021 Tom Stellard <tstellar@redhat.com> 12.0.0-1
951281
- 12.0.0 Release
951281
951281
* Thu Apr 29 2021 sguelton@redhat.com - 11.1.0-7.rc2
951281
- Backport dwarf-5 compatibility patch
951281
951281
* Wed Apr 28 2021 sguelton@redhat.com - 11.1.0-6.rc2
951281
- rebuilt with NVR fixup
951281
951281
* Wed Apr 28 2021 sguelton@redhat.com - 11.1.0-0.5.rc2
951281
- rebuilt
951281
951281
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 11.1.0-0.4.rc2
951281
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
951281
951281
* Wed Feb 17 2021 Serge Guelton - 11.1.0-0.3.rc2
951281
- rebuilt
951281
951281
* Fri Jan 22 2021 Serge Guelton - 11.1.0-0.2.rc2
951281
- llvm 11.1.0-rc2 release
951281
951281
* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1
951281
- 11.1.0-rc1 release
951281
951281
* Wed Jan 06 2021 Serge Guelton - 11.0.1-3
951281
- LLVM 11.0.1 final
951281
951281
* Tue Dec 22 2020 sguelton@redhat.com - 11.0.1-2.rc2
951281
- llvm 11.0.1-rc2
951281
951281
* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1
951281
- llvm 11.0.1-rc1
951281
951281
* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1
951281
- Fix NVR
951281
951281
* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.5
951281
- llvm 11.0.0 - final release
951281
951281
* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.4.rc6
951281
- 11.0.0-rc6
951281
951281
* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.3.rc5
951281
- 11.0.0-rc5 Release
951281
951281
* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.2.rc3
951281
- Fix NVR
951281
951281
* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3
951281
- 11.0.0-rc3 Release
951281
951281
* Tue Sep 01 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
951281
- 11.0.0-rc2 Release
951281
951281
* Mon Aug 10 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.1.rc1
951281
- 11.0.0-rc1 Release
951281
951281
* Wed Jul 29 2020 sguelton@redhat.com - 10.0.0-8
951281
- Make gcc dependency explicit, see https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires
951281
- use %%license macro
951281
951281
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-7
951281
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
951281
951281
* Fri Jul 17 2020 sguelton@redhat.com - 10.0.0-6
951281
- Use ninja and according macros as build system
951281
951281
* Tue Jun 16 2020 sguelton@redhat.com - 10.0.0-5
951281
- Finer grain specification of python3-lldb deps
951281
951281
* Tue Jun 02 2020 sguelton@redhat.com - 10.0.0-4
951281
- Fix arch-dependent header
951281
951281
* Tue Jun 02 2020 sguelton@redhat.com - 10.0.0-3
951281
- Instruct cmake not to generate RPATH
951281
951281
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 10.0.0-2
951281
- Rebuilt for Python 3.9
951281
951281
* Mon Mar 30 2020 sguelton@redhat.com - 10.0.0-1
951281
- 10.0.0 final
951281
951281
* Wed Mar 25 2020 sguelton@redhat.com - 10.0.0-0.6.rc6
951281
- 10.0.0 rc6
951281
951281
* Fri Mar 20 2020 sguelton@redhat.com - 10.0.0-0.5.rc5
951281
- 10.0.0 rc5
951281
951281
* Sun Mar 15 2020 sguelton@redhat.com - 10.0.0-0.4.rc4
951281
- 10.0.0 rc4
951281
951281
* Thu Mar 05 2020 sguelton@redhat.com - 10.0.0-0.3.rc3
951281
- 10.0.0 rc3
951281
951281
* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.2.rc2
951281
- 10.0.0 rc2
951281
951281
* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1
951281
- 10.0.0 rc1
951281
951281
* Wed Jan 29 2020 Tom Stellard <tstellar@redhat.com> - 9.0.1-4
951281
- Link against libclang-cpp.so
951281
- https://fedoraproject.org/wiki/Changes/Stop-Shipping-Individual-Component-Libraries-In-clang-lib-Package
951281
951281
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.1-3
951281
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
951281
951281
* Sat Dec 21 2019 Tom Stellard <tstellar@redhat.com> - 9.0.1-2
951281
- 9.0.1 Release
951281
951281
* Thu Sep 19 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
951281
- 9.0.0 Release
951281
951281
* Thu Aug 22 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-0.1.rc3
951281
- 9.0.0-rc3 Release
951281
951281
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 8.0.0-2.2
951281
- Rebuilt for Python 3.8
951281
951281
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.0-2.1
951281
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
951281
951281
* Tue Mar 26 2019 sguelton@redhat.com - 8.0.0-2
951281
- Only depend on Python3
951281
951281
* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1
951281
- 8.0.0 final
951281
951281
* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.4.rc4
951281
- 8.0.0 Release candidate 4
951281
951281
* Tue Mar 5 2019 sguelton@redhat.com - 8.0.0-0.3.rc3
951281
- 8.0.0 Release candidate 3
951281
951281
* Fri Feb 22 2019 sguelton@redhat.com - 8.0.0-0.2.rc2
951281
- 8.0.0 Release candidate 2
951281
951281
* Mon Feb 11 2019 sguelton@redhat.com - 8.0.0-0.1.rc1
951281
- 8.0.0 Release candidate 1
951281
951281
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.1-1.1
951281
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
951281
951281
* Mon Dec 17 2018 sguelton@redhat.com - 7.0.1-1
951281
- 7.0.1 Release
951281
951281
* Tue Dec 04 2018 sguelton@redhat.com - 7.0.0-2
951281
- Ensure rpmlint passes on specfile
951281
951281
* Tue Sep 25 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
951281
- 7.0.0 Release
951281
951281
* Fri Sep 21 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.5.rc3
951281
- lldb should depend on python2-lldb
951281
951281
* Mon Sep 17 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.4.rc3
951281
- 7.0.0-rc3 Release
951281
951281
* Wed Sep 12 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.3.rc2
951281
- Enable build on s390x
951281
951281
* Fri Aug 31 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.2.rc2
951281
- 7.0.0-rc2 Release
951281
951281
* Tue Aug 14 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.1.rc1
951281
- 7.0.1-rc1 Release
951281
951281
* Tue Aug 07 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-3
951281
- Enable ppc64le arch
951281
951281
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-2
951281
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
951281
951281
* Mon May 21 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
951281
- 6.0.1 Release
951281
951281
* Mon May 21 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-0.1.rc1
951281
- 6.0.1-rc1 Release
951281
951281
* Sat May 05 2018 Miro Hrončok <mhroncok@redhat.com> - 6.0.0-4
951281
- Update Python macros to new packaging standards
951281
  (See https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build)
951281
951281
* Tue Mar 20 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-3
951281
- Rebuild against llvm with the rhbz#1558657 fix
951281
951281
* Wed Mar 14 2018 Tilmann Scheller <tschelle@redhat.com> - 6.0.0-2
951281
- Restore LLDB SB API headers, fixes rhbz#1548758
951281
951281
* Fri Mar 09 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-1
951281
- 6.0.0 Release
951281
951281
* Tue Feb 13 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.3.rc2
951281
- 6.0.0-rc2 release
951281
951281
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-0.2.rc1
951281
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
951281
951281
* Thu Jan 25 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.1.rc1
951281
- 6.0.1-rc1 Release
951281
951281
* Thu Dec 21 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
951281
- 5.0.1 Release
951281
951281
* Fri Oct 06 2017 Tom Stellard <tstellar@redhat.com> - 5.0.0-1
951281
- 5.0.0 Release
951281
951281
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.0.1-4
951281
- Python 2 binary package renamed to python2-lldb
951281
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
951281
951281
* Mon Jul 31 2017 Jan Kratochvil <jan.kratochvil@redhat.com> - 4.0.1-3
951281
- Backport lldb r303907
951281
  Resolves rhbz #1356140
951281
951281
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
951281
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
951281
951281
* Mon Jun 26 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
951281
- 4.0.1 Release
951281
951281
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-2
951281
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
951281
951281
* Fri Mar 24 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
951281
- lldb 4.0.0
951281
951281
* Tue Mar 21 2017 Tom Stellard <tstellar@redhat.com> - 3.9.1-4
951281
- Add explicit Requires for llvm-libs and clang-libs
951281
951281
* Fri Mar 17 2017 Tom Stellard <tstellar@redhat.org> - 3.9.1-3
951281
- Adjust python sys.path so lldb can find readline.so
951281
951281
* Tue Mar 14 2017 Tom Stellard <tstellar@redhat.com> - 3.9.1-2
951281
- Fix build with gcc 7
951281
951281
* Thu Mar 02 2017 Dave Airlie 
951281
- lldb 3.9.1
951281
951281
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-4
951281
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
951281
951281
* Mon Nov 14 2016 Nathaniel McCallum <npmccallum@redhat.com> - 3.9.0-3
951281
- Disable libedit support until upstream fixes it (#1356140)
951281
951281
* Wed Nov  2 2016 Peter Robinson <pbrobinson@fedoraproject.org> 3.9.0-2
951281
- Set upstream supported architectures in an ExclusiveArch
951281
951281
* Wed Oct 26 2016 Dave Airlie <airlied@redhat.com> - 3.9.0-1
951281
- lldb 3.9.0
951281
- fixup some issues with MIUtilParse by removing it
951281
- build with -fno-rtti
951281
951281
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.0-2
951281
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
951281
951281
* Thu Mar 10 2016 Dave Airlie <airlied@redhat.com> 3.8.0-1
951281
- lldb 3.8.0
951281
951281
* Thu Mar 03 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.3
951281
- lldb 3.8.0 rc3
951281
951281
* Wed Feb 24 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.2
951281
- dynamically link to llvm
951281
951281
* Thu Feb 18 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.1
951281
- lldb 3.8.0 rc2
951281
951281
* Sun Feb 14 2016 Dave Airlie <airlied@redhat.com> 3.7.1-3
951281
- rebuild lldb against latest llvm
951281
951281
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-2
951281
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
951281
951281
* Tue Oct 06 2015 Jan Vcelak <jvcelak@fedoraproject.org> 3.7.0-100
951281
- initial version using cmake build system