- Add "Conflicts: glibc-devel" (/usr/include/execinfo.h) OBS-URL: https://build.opensuse.org/request/show/765247 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libexecinfo?expand=0&rev=2
85 lines
2.8 KiB
RPMSpec
85 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package libexecinfo
|
|
#
|
|
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
%global sover 1
|
|
%global libname %{name}%{sover}
|
|
Name: libexecinfo
|
|
Version: 1.1
|
|
Release: 0
|
|
Summary: A library for inspecting program's backtrace
|
|
License: BSD-2-Clause
|
|
Group: System/Libraries
|
|
URL: https://www.freshports.org/devel/libexecinfo
|
|
Source: http://distcache.freebsd.org/local-distfiles/itetcu/%{name}-%{version}.tar.bz2
|
|
Patch0: 10-execinfo.patch
|
|
Patch1: 20-define-gnu-source.patch
|
|
Patch2: 30-linux-makefile.patch
|
|
|
|
%description
|
|
A clone of backtrace facility found in the GNU libc, mainly intended
|
|
for porting linuxish code to BSD platforms, however it can be used
|
|
at any platform which has a gcc compiler.
|
|
|
|
%package -n %{libname}
|
|
Summary: Shared library part of libexecinfo
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n %{libname}
|
|
A clone of backtrace facility found in the GNU libc, mainly intended
|
|
for porting linuxish code to BSD platforms, however it can be used
|
|
at any platform which has a gcc compiler.
|
|
|
|
%package devel
|
|
Summary: Development files for the libexecinfo library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{libname} = %{version}
|
|
Conflicts: glibc-devel
|
|
|
|
%description devel
|
|
A clone of backtrace facility found in the GNU libc, mainly intended
|
|
for porting linuxish code to BSD platforms, however it can be used
|
|
at any platform which has a gcc compiler.
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
applications that want to make use of libexecinfo.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
|
|
|
%install
|
|
install -D -m644 execinfo.h %{buildroot}%{_includedir}/execinfo.h
|
|
install -D -m644 stacktraverse.h %{buildroot}%{_includedir}/stacktraverse.h
|
|
install -D -m644 libexecinfo.so.1 %{buildroot}%{_libdir}/libexecinfo.so.1
|
|
ln -s %{_libdir}/libexecinfo.so.1 %{buildroot}%{_libdir}/libexecinfo.so
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
%files -n %{libname}
|
|
%doc README
|
|
%{_libdir}/libexecinfo.so.%{sover}*
|
|
|
|
%files devel
|
|
%{_includedir}/execinfo.h
|
|
%{_includedir}/stacktraverse.h
|
|
%{_libdir}/libexecinfo.so
|
|
|
|
%changelog
|