File dirdiff.spec of Package dirdiff
#
# spec file for package dirdiff
#
# 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
# 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: dirdiff
Version: 2.1
Release: 0
Summary: Diff Tool to Merge Source Trees
License: GPL-2.0+
Group: Productivity/Text/Utilities
Url: https://www.samba.org/ftp/paulus/
Source: https://www.samba.org/ftp/paulus/dirdiff-%{version}.tar.gz
Patch0: dirdiff.patch
Patch1: dirdiff.uninitialized.patch
BuildRequires: tcl-devel
Requires: tcl
Requires: tk
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Dirdiff is a graphical tool for displaying the differences between
directory trees and for merging changes from one tree into another.
Dirdiff can handle up to five trees. It displays a main window with a
list of the files that are different between the trees with colored
squares to indicate the relative ages of the versions. A menu allows
you to display the differences between any two of the versions in
another window. Another menu allows you to copy the file from one tree
to another.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
make OPTFLAGS="%{optflags} -DUSE_INTERP_RESULT" %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/*
%{_libdir}/lib*
%changelog