File perfsuite.spec of Package perfsuite

#
# spec file for package perfsuite (Version 1.0.0a4)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           perfsuite
Version:        1.1.4
Release:        0
License:        Other uncritical OpenSource License
Summary:        Collection of tools for software performance analysis
Url:            http://perfsuite.ncsa.uiuc.edu
Group:          Development/Libraries/C and C++
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}-rpmlintrc
Patch0:         perfsuite-autconfiscate.patch
Patch1:         perfsuite-no_implicit_decls.patch
BuildRequires:  binutils-devel
BuildRequires:  gcc-fortran
BuildRequires:  libexpat-devel
BuildRequires:  papi-devel
BuildRequires:  tcl-devel
BuildRequires:  tdom
BuildRequires:  tk-devel
BuildRequires:  autoconf automake libtool
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
PerfSuite is a collection of tools, utilities, and libraries for software
performance analysis where the primary design goals are ease of use,
comprehensibility, interoperability, and simplicity. This software can
provide a good "entry point" for more detailed performance analysis and
can help point the way towards selecting other tools and/or techniques
using more specialized software if necessary (for example, tools/libraries
from academic research groups or third-party commercial software).

%package        devel
Summary:        Software Development Kit for perfsuite
Group:          Development/Libraries/C and C++
Requires:       perfsuite = %{version}

%description    devel
This package includes the C header files that specify the perfsuite userspace
libraries and interfaces. This is required for rebuilding any program
that uses perfsuite.

%package -n     libperfsuite
Summary:        User callbacks for library, process and threads
Group:          Development/Libraries/C and C++

%description -n libperfsuite
PerfSuite is a collection of tools, utilities, and libraries for software
performance analysis where the primary design goals are ease of use,
comprehensibility, interoperability, and simplicity. This software can
provide a good "entry point" for more detailed performance analysis and
can help point the way towards selecting other tools and/or techniques
using more specialized software if necessary (for example, tools/libraries
from academic research groups or third-party commercial software).

%prep
%setup -q
%patch0
%patch1

%build
autoreconf -fi
LIBBFD_VERSION=`ls %{_libdir}/libbfd*.so | sed -n -e 's|.*-\(.*\)-\(.*\).so$|\1-\2|p'`
%configure --with-libbfd=bfd-${LIBBFD_VERSION} --with-papi=%{_prefix}
make %{?_smp_mflags} -I%{_includedir}


%install
make DESTDIR=%{buildroot} DOCDIR=%{_defaultdocdir}/%{name} install
find %{buildroot}%{_libdir} -type f -name \*.la -print0 | xargs -r0 rm -v
find %{buildroot}%{_libdir} -type f -name \*.a -print0 | xargs -r0 rm -v


%post -n libperfsuite -p /sbin/ldconfig


%postun -n libperfsuite -p /sbin/ldconfig


%files
%defattr(-,root,root)
%dir %{_libdir}/cxxfilt
%dir %{_libdir}/papi
%doc CHANGES LICENSE AUTHORS
%{_mandir}/man1/*
%{_datadir}/%{name}
%{_bindir}/psconfig
%{_bindir}/psenv.csh
%{_bindir}/psenv.sh
%{_bindir}/psinv
%{_bindir}/psprocess
%{_bindir}/psrun


%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/lib*.so
%{_libdir}/p*/lib*.so
%{_libdir}/cxxfilt/*.so


%files -n libperfsuite
%defattr(-,root,root)
%{_libdir}/psmd50.1
%{_libdir}/psbfd0.3
%{_libdir}/lib*.so.*
%{_libdir}/p*/lib*.so.*
%{_libdir}/cxxfilt/*.so.*


%changelog
openSUSE Build Service is sponsored by