Accepting request 341816 from home:pluskalm:branches:devel:libraries:c_c++
- Update project and download url - Tiny spec file cleanup with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/341816 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gperftools?expand=0&rev=29
This commit is contained in:
parent
15145287ff
commit
9ee6e8c644
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 31 13:35:12 UTC 2015 - mpluskal@suse.com
|
||||
|
||||
- Update project and download url
|
||||
- Tiny spec file cleanup with spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 10 16:30:24 UTC 2015 - cgardner@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package gperftools
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -15,15 +15,15 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: gperftools
|
||||
Version: 2.4
|
||||
Release: 0
|
||||
Summary: Performance Tools for C++
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: http://code.google.com/p/gperftools/
|
||||
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Url: https://github.com/gperftools/gperftools
|
||||
Source0: https://github.com/gperftools/gperftools/releases/download/gperftools-%{version}/gperftools-%{version}.tar.gz
|
||||
Patch4: %{name}-fix_docdir.patch
|
||||
Patch12: %{name}_fix_unassigned_malloc_in_unittest.patch
|
||||
Patch14: %{name}_gcc46.patch
|
||||
@ -33,9 +33,9 @@ BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
BuildRequires: libunwind-devel
|
||||
BuildRequires: pkg-config
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Provides: google-perftools
|
||||
Obsoletes: google-perftools
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
ExcludeArch: s390 s390x
|
||||
|
||||
%description
|
||||
@ -61,10 +61,10 @@ malloc().
|
||||
%package devel
|
||||
Summary: Performance tools for C++
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %name = %version
|
||||
Requires: libprofiler0 = %version
|
||||
Requires: %{name} = %{version}
|
||||
Requires: libprofiler0 = %{version}
|
||||
Requires: libstdc++-devel
|
||||
Requires: libtcmalloc4 = %version
|
||||
Requires: libtcmalloc4 = %{version}
|
||||
Provides: google-perftools-devel
|
||||
Obsoletes: google-perftools-devel
|
||||
|
||||
@ -72,8 +72,6 @@ Obsoletes: google-perftools-devel
|
||||
The gperftools-devel package contains static and debug libraries and header
|
||||
files for developing applications that use the gperftools package.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch4 -p1
|
||||
@ -82,48 +80,54 @@ files for developing applications that use the gperftools package.
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
export CXXFLAGS="%optflags -fno-strict-aliasing"
|
||||
export CFLAGS="%optflags -fno-strict-aliasing"
|
||||
%configure --disable-static --with-gnu-ld --with-pic
|
||||
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%configure \
|
||||
--disable-static \
|
||||
--with-gnu-ld \
|
||||
--with-pic
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
%post -n libprofiler0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libprofiler0 -p /sbin/ldconfig
|
||||
|
||||
%post -n libtcmalloc4 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libtcmalloc4 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%_bindir/pprof
|
||||
%_mandir/man1/pprof.1.gz
|
||||
%_docdir/%name
|
||||
%{_bindir}/pprof
|
||||
%{_mandir}/man1/pprof.1.*
|
||||
%{_docdir}/%{name}
|
||||
|
||||
%files -n libprofiler0
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libprofiler.so.0*
|
||||
%{_libdir}/libprofiler.so.0*
|
||||
|
||||
%files -n libtcmalloc4
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libtcmalloc.so.4*
|
||||
%_libdir/libtcmalloc_debug.so.4*
|
||||
%_libdir/libtcmalloc_minimal.so.4*
|
||||
%_libdir/libtcmalloc_minimal_debug.so.4*
|
||||
%_libdir/libtcmalloc_and_profiler.so.4*
|
||||
%{_libdir}/libtcmalloc.so.4*
|
||||
%{_libdir}/libtcmalloc_debug.so.4*
|
||||
%{_libdir}/libtcmalloc_minimal.so.4*
|
||||
%{_libdir}/libtcmalloc_minimal_debug.so.4*
|
||||
%{_libdir}/libtcmalloc_and_profiler.so.4*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%_includedir/google
|
||||
%_includedir/gperftools
|
||||
%_libdir/libprofiler.so
|
||||
%_libdir/libtcmalloc.so
|
||||
%_libdir/libtcmalloc_debug.so
|
||||
%_libdir/libtcmalloc_minimal.so
|
||||
%_libdir/libtcmalloc_minimal_debug.so
|
||||
%_libdir/libtcmalloc_and_profiler.so
|
||||
%_libdir/pkgconfig/*.pc
|
||||
%{_includedir}/google
|
||||
%{_includedir}/gperftools
|
||||
%{_libdir}/libprofiler.so
|
||||
%{_libdir}/libtcmalloc.so
|
||||
%{_libdir}/libtcmalloc_debug.so
|
||||
%{_libdir}/libtcmalloc_minimal.so
|
||||
%{_libdir}/libtcmalloc_minimal_debug.so
|
||||
%{_libdir}/libtcmalloc_and_profiler.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user