File squeezeplay.spec of Package squeezeplay

# spec file for package squeezeplay
# Copyright (c) 2015 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

Name:       squeezeplay
Version:	7.8.0
Release:	24.1
License:	BSD-3-Clause and GPL-2.0+ and GFDL-1.2
Summary:	Interface to manage a logitech media server
Group:		Productivity/Multimedia/Sound/Utilities
Source:		%name-%version.tar.bz2
Source1:    Makefile.linux.suse
#Patch0:     64bit-portability-lua50_profiler.patch
BuildRequires:	autoconf, automake
BuildRequires:  libjpeg62-devel
BuildRequires:	readline-devel
BuildRequires:  libX11-devel
BuildRequires:	Mesa-libGL-devel
BuildRequires:  glu-devel
BuildRequires:  zlib-devel
BuildRequires:  libexpat-devel
BuildRequires:  libogg-devel
BuildRequires:  flac-devel
#BuildRequires:  libSDL-devel, libSDL_gfx-devel, libSDL_image-devel, libSDL_ttf-devel
#BuildRequires:  libpng12-devel, freetype2-devel
#BuildRequires:  portaudio-devel
#BuildRequires:  libmad-devel
BuildRequires:  pkgconfig(alsa) >= 0.9.0
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(libpulse-simple) >= 0.9
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(xrender)
BuildRequires:  chrpath
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Interface to manage a logitech media server.
Use /opt/squeezeplay/bin/ to launch it.

Source code:
forked from:

%package devel
Summary:        Provides all devel files for squeezeplay
License:        GPL-2.0
Group:          Development/Libraries/Other

%description devel
All devel files for squeezeplay.

%setup -q
#%patch0 -p1

cp -avf %{SOURCE1} Makefile.linux
%{__make} -f Makefile.linux all

# cleanup libs
#rm -rf lib/*.la
chrpath --delete $RPM_BUILD_ROOT/opt/squeezeplay/lib/libSDL_image-*
chrpath --delete $RPM_BUILD_ROOT/opt/squeezeplay/lib/libSDL_ttf-*
chrpath --delete $RPM_BUILD_ROOT/opt/squeezeplay/bin/jive
chrpath --delete $RPM_BUILD_ROOT/opt/squeezeplay/bin/jive_alsa
chmod 644 $RPM_BUILD_ROOT/opt/squeezeplay/include/*.h



%doc README.linux squeezeplay.version
%dir /opt/%name
%dir /opt/%name/bin
%attr(0755, root, root) /opt/%name/bin/*
%dir /opt/%name/lib/lua
%dir /opt/%name/lib
%dir /opt/%name/man
%dir /opt/%name/share
%exclude /opt/%name/lib/*.a
%exclude /opt/squeezeplay/lib/
%exclude /opt/squeezeplay/lib/
%exclude /opt/squeezeplay/lib/
%exclude /opt/squeezeplay/lib/
%exclude /opt/squeezeplay/lib/
%exclude /opt/squeezeplay/lib/
%exclude /opt/squeezeplay/lib/
%exclude /opt/squeezeplay/lib/
%exclude /opt/squeezeplay/lib/

%files devel
%dir /opt/%name/include
%dir /opt/%name/lib/pkgconfig
%dir /opt/%name/lib