File idep.spec of Package idep

#
# spec file for package idep
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           idep
BuildRequires:  gcc-c++
BuildRequires:  libtool
Summary:        Track the Dependencies in your C or C++ Code
Version:        0.5
Release:        140
License:        GPL-2.0+
Url:            http://www.stolk.org
Group:          Development/Languages/C and C++
Source:         %{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}-configure.diff
Patch1:         idep-C_headers.patch
Patch2:         idep-foreign_package.patch
Patch3:         idep-constify_args.patch
Patch4:         idep-call_LT_INIT.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define _prefix    /usr

%description
Idep can be used for checking the dependencies of C++ include files. It
offers these features:

- Prints out hierarchy of include files

- Lists the class definitions that are found in each header file

- Detects cyclic dependencies in your include files

- Detects inclusions that could be pruned



Authors:
--------
    Bram Stolk (b.stolk@chello.nl)

%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4
rm -f NEWS

%build
autoreconf -fi
export CXXFLAGS="$RPM_OPT_FLAGS -W -Wall"
./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir}

%install
make DESTDIR=%{buildroot} install

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog README
%{_bindir}/idep

%changelog
openSUSE Build Service is sponsored by