LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File laditools.spec of Package laditools (Project home:opensuseitalia)

# Copyright (c) 2008 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni@links2linux.de

# norootforbuild

%define _prefix	/usr

Summary:		Linux Audio Desktop Integration Tools
Name:			laditools
Version:		git
Release:		1.1
Source0:		%{name}-%{version}.tar.bz2
License:		GPL-2.0+
Group:			Productivity/Multimedia/Sound/Utilities
URL:			http://www.marcochapeau.org/software/laditools
%py_requires
BuildRequires:	python-devel
BuildRequires:	python-setuptools
%if 0%{?suse_version}
BuildRequires:	update-desktop-files
%endif
Requires:		a2jmidid
Requires:		dbus-1-python
Requires:		jack
Requires:		lash
Requires:		python >= %{py_ver}
Requires:		python-gtk
Requires:		pyxml
Requires:		vte
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root

%description
LADITools is a set of tools aiming to achieve the goals of the
LADI project to improve desktop integration and user workflow of
Linux audio system based on JACK and LASH. Those tools take
advantage of the DBus interfaces recently added to JACK and
LASH to ease the configuration and use of those two great
softwares.

%prep
%setup -q -n %{name}-%{version}

%build
%__python ./setup.py build

%install
%__python ./setup.py install \
	--root=%{buildroot} \
	--prefix=%{_prefix}

%if 0%{?suse_version}
%suse_update_desktop_file ladiconf AudioVideo Music
%suse_update_desktop_file laditray AudioVideo Music
%endif

# done by %%doc macro
%__rm -r %{buildroot}%{_datadir}/doc/%{name}

%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/g15ladi
%{_bindir}/ladi*
%{_bindir}/wmladi
%dir %{python_sitelib}/%{name}
%{python_sitelib}/%{name}*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*

%changelog
* Sun Dec 14 2008 Toni Graffy <toni@links2linux.de> - 1.0rc1-0.pm.1
- Initial build 1.0rc1