forked from pool/memprof
OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/memprof?expand=0&rev=19
97 lines
2.9 KiB
RPMSpec
97 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package memprof
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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: memprof
|
|
Version: 0.6.2
|
|
Release: 0
|
|
Summary: A Memory Profiler with GNOME Interface
|
|
License: GPL-2.0-or-later
|
|
Group: Development/Tools/Debuggers
|
|
URL: http://www.gnome.org/projects/memprof/
|
|
Source: https://download.gnome.org/sources/memprof/0.6/%{name}-%{version}.tar.bz2
|
|
# PATCH-FIX-UPSTREAM memprof-bfd-headers.patch bgo#688398 dmistar@opensuse.org -- Fix new binutils requirement to include config.h
|
|
Patch2: memprof-bfd-headers.patch
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
|
|
Patch3: memprof-0.5.1-desktop.patch
|
|
# PATCH-FIX-UPSTREAM memprof-arch-neutral.patch bgo#663253 rcoe@wi.rr.com -- Fix build on different archs than x86_64 and i586.
|
|
Patch4: memprof-arch-neutral.patch
|
|
BuildRequires: binutils-devel
|
|
BuildRequires: fdupes
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: intltool
|
|
BuildRequires: libglade2-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: update-desktop-files
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
# Depend on x86 instruction set.
|
|
ExclusiveArch: %ix86 x86_64
|
|
|
|
%description
|
|
With this application, profile applications for their memory
|
|
requirements and hunt for leaks very easily.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch -P 3
|
|
%patch -P 4 -p1
|
|
%patch -P 2 -p1
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing" CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
|
%configure \
|
|
--disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
# Change sr@Latn to sr@latin
|
|
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
|
|
%find_lang memprof %{?no_lang_C}
|
|
%suse_update_desktop_file %{name} Development Profiling
|
|
%fdupes %{buildroot}
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
%if 0%{?suse_version} > 1130
|
|
%desktop_database_post
|
|
%endif
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
%if 0%{?suse_version} > 1130
|
|
%desktop_database_postun
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
%{_bindir}/*
|
|
%dir %{_libdir}/memprof
|
|
%{_libdir}/memprof/*.so
|
|
%{_datadir}/memprof/
|
|
%{_datadir}/pixmaps/*
|
|
%{_datadir}/applications/memprof.desktop
|
|
|
|
%files lang -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
|
|
%changelog
|