File trackfs.spec of Package trackfs

#
# spec file for package trackfs
#
# Copyright (c) 2017 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
# 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:          trackfs
Version:       0.1.0
Release:       0
Summary:       Tracks File System Changes
Source:        http://www.mr511.de/software/trackfs-%{version}.tar.gz
URL:           http://www.mr511.de/software/
Group:         System/Monitoring
License:       GPL-2.0+
BuildRoot:     %{_tmppath}/build-%{name}-%{version}
BuildRequires: gcc make glibc-devel
BuildRequires: autoconf automake libtool
ExclusiveArch: %ix86 x86_64

%description
Trackfs is a small program that tracks file system changes -- creation,
update and removal of fs objects -- of another program (or group of programs).
It is similar to `installwatch', but works quite differently:  While
installwatch uses LD_PRELOAD to intercept library functions like open() and
unlink(), trackfs runs the child program(s) with tracing enabled and tracks
the system calls they make.

%prep
%setup -q

%build
%configure
%__make %{?jobs:-j%{jobs}}

%install
%__make instroot="%{buildroot}" install

for f in COPYING COPYING.DOC; do
	h=/usr/share/doc/licenses/md5/$(md5sum "$f"|cut -f1 -d" ")
	test -e "$h" && %__ln_s -f "$h" .
done

%files
%defattr(-,root,root)
%doc COPYING COPYING.DOC NEWS README
%{_bindir}/playback
%{_bindir}/trackfs
%{_bindir}/trexec
%doc %{_mandir}/man1/playback.1%{ext_man}
%doc %{_mandir}/man1/trackfs.1%{ext_man}
%doc %{_mandir}/man1/trexec.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by