File monitor.spec of Package monitor
#
# spec file for package monitor (Version 1.0)
#
# 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: monitor
Version: 1.0
Release: 0
License: LGPL v3 only
Summary: Performance Application Programming Interface
Url: http://icl.eecs.utk.edu/~mucci/monitor
Group: Development/Libraries/C and C++
Source: %{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM monitor-fix_path.patch
Patch0: %{name}-fix_path.patch
# PATCH-FIX-UPSTREAM monitor-no_return.patch
Patch1: %{name}-no_return.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Monitor is a library that gives the user callbacks or traps upon events related
to library/process/thread initialization/creation/destruction. Extra care is
taken to appropriately handle important events such as all forms of fork(),
exec() as well as variants of exit(), abort(), assert() as well as signals
SIGABRT and SIGINT. The most up to date documentation for monitor is always
found in the man page.
Author:
--------
Philip J. Mucci <mucci@cs.utk.edu>
%package devel
License: LGPL v3 only
Summary: Software Development Kit for Monitor
Group: Development/Libraries/C and C++
Requires: monitor = %{version}
%description devel
This package includes the C header files that specify the Monitor userspace
libraries and interfaces. This is required for rebuilding any program
that uses Monitor.
Author:
--------
Philip J. Mucci <mucci@cs.utk.edu>
%package -n libmonitor1
License: LGPL v3 only
Summary: User callbacks for library, process and threads
Group: Development/Libraries/C and C++
%description -n libmonitor1
Monitor is a library that gives the user callbacks or traps upon events related
to library/process/thread initialization/creation/destruction. Extra care is
taken to appropriately handle important events such as all forms of fork(),
exec() as well as variants of exit(), abort(), assert() as well as signals
SIGABRT and SIGINT. The most up to date documentation for monitor is always
found in the man page.
Author:
--------
Philip J. Mucci <mucci@cs.utk.edu>
%prep
%setup -q -n monitor
%patch0
%patch1
%build
%{__make} CFLAGS="%{optflags}" PREFIX=%{_prefix} DOCDIR=%{_defaultdocdir}/%{name} DESTDIR=%{buildroot}
%install
%makeinstall PREFIX=%{_prefix} DOCDIR=%{_defaultdocdir}/%{name}
%post -n libmonitor1 -p /sbin/ldconfig
%postun -n libmonitor1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%doc %{_mandir}/man1/%{name}*
%doc %{_mandir}/man3/%{name}*
%{_bindir}/monitor-config
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so
%files -n libmonitor1
%defattr(-,root,root)
%{_libdir}/lib%{name}.so.*
%changelog