File codecgraph.spec of Package codecgraph

#
# spec file for package codecgraph
#
# Copyright (c) 2009 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:           codecgraph
Version:        20090522
Release:        1
Summary:        A tool to generate a graph for HD-Audio codec
License:        GPL-2.0
Group:          Productivity/Multimedia/Sound/Utilities
Url:            http://helllabs.org/codecgraph/
Source0:        codecgraph-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python
Requires:       graphviz
BuildArch:      noarch

%description
Codecgraph is a tool to generate a graph based on the ALSA description
of a High Definition Audio codec. The generated graph depicts the HDA
codec layout and node connections, helping driver troubleshooting and
maintenance. Codecgraph's parser reads the codec description from
/proc/asound/card*/codec#0 and parsed data is sent to Graphviz for
actual graph generation.

%prep
%setup -q

%build

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -m 755 codecgraph $RPM_BUILD_ROOT%{_bindir}
install -m 755 codecgraph.py $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m 644 codecgraph.1 $RPM_BUILD_ROOT%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc BUGS codecs.txt COPYING IDEAS README
%doc samples
%{_bindir}/*
%{_mandir}/man*/*

%changelog
openSUSE Build Service is sponsored by