File mudita24.spec of Package mudita24

# spec file for package mudita24
#
# Copyright (c) 2013 by Edgar Aichinger
# 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 edogawa@aon.at
#
#
Name:           mudita24
Url:            http://code.google.com/p/mudita24/
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Mixers
AutoReqProv:    on
Version:        1.1.0
Release:        1
Summary:        Mixer for Envy24 chips
Source:         %{name}-%{version}.tar.gz
Source1:        %{name}.png
Source2:        %{name}.desktop
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake 
BuildRequires:  gcc-c++ 
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(alsa) 
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif

%description
mudita24 is a mixer for sound cards based on the Envy24 (ice1712) chipset.

Authors:
--------
Jaroslav Kysela <perex {at} perex {dot} cz>
Niels Mayer
Time E. Real

%prep
%setup -q

%build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DDATA_INSTALL_DIR= .
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT/usr/share/doc/mudita24-1.1.0/README.profiles

#                       /usr/share/pixmaps
%__mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
%__install -m 644 %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/pixmaps

#                       /usr/share/applications
%__mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
%__install -m 644 %SOURCE2 $RPM_BUILD_ROOT%{_datadir}/applications

%if 0%{?suse_version}
%suse_update_desktop_file -i %{name} AudioVideo Mixer GTK
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS README README.profiles
%{_bindir}/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*

%changelog


openSUSE Build Service is sponsored by