File squeezeplay.spec of Package squeezeplay
#
# spec file for package squeezeplay
#
# aginies@suse.com
#
# 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 http://bugs.opensuse.org/
#
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
Url: https://github.com/aginies/squeezeplay
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
%description
Interface to manage a logitech media server.
Use /opt/squeezeplay/bin/squeezeplay.sh to launch it.
Source code: https://github.com/aginies/squeezeplay
forked from: https://github.com/Logitech/squeezeplay
%package devel
Summary: Provides all devel files for squeezeplay
License: GPL-2.0
Group: Development/Libraries/Other
%description devel
All devel files for squeezeplay.
%prep
%setup -q
#%patch0 -p1
%build
#DESTDIR=$RPM_BUILD_ROOT
cp -avf %{SOURCE1} Makefile.linux
%{__make} -f Makefile.linux all
%install
# 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
%post
%postun
%files
%defattr(-,root,root)
%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
/opt/%name/lib/*.so.*
/opt/%name/lib/lua/*
%exclude /opt/%name/lib/*.a
/opt/%name/lib/*.so
%exclude /opt/squeezeplay/lib/libSDL_ttf.so
%exclude /opt/squeezeplay/lib/libvorbisidec.so
%exclude /opt/squeezeplay/lib/libSDL_image.so
%exclude /opt/squeezeplay/lib/libfreetype.so
%exclude /opt/squeezeplay/lib/libpng12.so
%exclude /opt/squeezeplay/lib/libSDL.so
%exclude /opt/squeezeplay/lib/libSDL_gfx.so
%exclude /opt/squeezeplay/lib/libmad.so
%exclude /opt/squeezeplay/lib/libportaudio.so
/opt/%name/man/*
/opt/%name/share/*
%files devel
%defattr(-,root,root)
%dir /opt/%name/include
/opt/%name/include/*
%dir /opt/%name/lib/pkgconfig
/opt/%name/lib/pkgconfig/*.pc
%dir /opt/%name/lib
/opt/%name/lib/*.a
/opt/%name/lib/*.la
/opt/squeezeplay/lib/libSDL_ttf.so
/opt/squeezeplay/lib/libvorbisidec.so
/opt/squeezeplay/lib/libSDL_image.so
/opt/squeezeplay/lib/libfreetype.so
/opt/squeezeplay/lib/libpng12.so
/opt/squeezeplay/lib/libSDL.so
/opt/squeezeplay/lib/libSDL_gfx.so
/opt/squeezeplay/lib/libmad.so
/opt/squeezeplay/lib/libportaudio.so
%changelog