Accepting request 832393 from home:jengelh:branches:devel:libraries:c_c++
- Add ExclusiveArch declaration to specfile. OBS-URL: https://build.opensuse.org/request/show/832393 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gperftools?expand=0&rev=50
This commit is contained in:
parent
5fe45b2f1f
commit
1bdce6cf53
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 4 20:33:52 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Add ExclusiveArch declaration to specfile.
|
||||||
|
- Trim some old specfile constructs.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Aug 2 07:00:37 UTC 2019 - Martin Liška <mliska@suse.cz>
|
Fri Aug 2 07:00:37 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gperftools
|
# spec file for package gperftools
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -22,7 +22,7 @@ Release: 0
|
|||||||
Summary: Performance Tools for C++
|
Summary: Performance Tools for C++
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: https://github.com/gperftools/gperftools
|
URL: https://github.com/gperftools/gperftools
|
||||||
Source0: https://github.com/gperftools/gperftools/releases/download/gperftools-%{version}/gperftools-%{version}.tar.gz
|
Source0: https://github.com/gperftools/gperftools/releases/download/gperftools-%{version}/gperftools-%{version}.tar.gz
|
||||||
Patch1: %{name}_fix_unassigned_malloc_in_unittest.patch
|
Patch1: %{name}_fix_unassigned_malloc_in_unittest.patch
|
||||||
Patch2: %{name}_gcc46.patch
|
Patch2: %{name}_gcc46.patch
|
||||||
@ -39,9 +39,10 @@ BuildRequires: pkg-config
|
|||||||
%ifnarch s390
|
%ifnarch s390
|
||||||
BuildRequires: valgrind-devel
|
BuildRequires: valgrind-devel
|
||||||
%endif
|
%endif
|
||||||
|
# based on basictypes.h in the source tree
|
||||||
|
ExclusiveArch: %ix86 x86_64 ppc ppc64 ppc64le %arm aarch64 mips s390x
|
||||||
Provides: google-perftools
|
Provides: google-perftools
|
||||||
Obsoletes: google-perftools
|
Obsoletes: google-perftools
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The gperftools package contains some utilities to improve and analyze the
|
The gperftools package contains some utilities to improve and analyze the
|
||||||
@ -87,11 +88,7 @@ The gperftools-devel-static package contains static libraries for developing
|
|||||||
applications that use the gperftools package.
|
applications that use the gperftools package.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
%patch3 -p1
|
|
||||||
%patch4 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||||
@ -109,7 +106,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing $VALGRIND_FL"
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
%make_install
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%post -n libprofiler0 -p /sbin/ldconfig
|
%post -n libprofiler0 -p /sbin/ldconfig
|
||||||
@ -121,17 +118,14 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
|||||||
%postun -n libtcmalloc4 -p /sbin/ldconfig
|
%postun -n libtcmalloc4 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/pprof
|
%{_bindir}/pprof
|
||||||
%{_mandir}/man1/pprof.1.*
|
%{_mandir}/man1/pprof.1.*
|
||||||
%{_docdir}/%{name}
|
%{_docdir}/%{name}
|
||||||
|
|
||||||
%files -n libprofiler0
|
%files -n libprofiler0
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libprofiler.so.0*
|
%{_libdir}/libprofiler.so.0*
|
||||||
|
|
||||||
%files -n libtcmalloc4
|
%files -n libtcmalloc4
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libtcmalloc.so.4*
|
%{_libdir}/libtcmalloc.so.4*
|
||||||
%{_libdir}/libtcmalloc_debug.so.4*
|
%{_libdir}/libtcmalloc_debug.so.4*
|
||||||
%{_libdir}/libtcmalloc_minimal.so.4*
|
%{_libdir}/libtcmalloc_minimal.so.4*
|
||||||
@ -139,7 +133,6 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
|||||||
%{_libdir}/libtcmalloc_and_profiler.so.4*
|
%{_libdir}/libtcmalloc_and_profiler.so.4*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_includedir}/google
|
%{_includedir}/google
|
||||||
%{_includedir}/gperftools
|
%{_includedir}/gperftools
|
||||||
%{_libdir}/libprofiler.so
|
%{_libdir}/libprofiler.so
|
||||||
@ -151,7 +144,6 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
|||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
%files devel-static
|
%files devel-static
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libprofiler.a
|
%{_libdir}/libprofiler.a
|
||||||
%{_libdir}/libtcmalloc.a
|
%{_libdir}/libtcmalloc.a
|
||||||
%{_libdir}/libtcmalloc_debug.a
|
%{_libdir}/libtcmalloc_debug.a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user