File teamspeak.spec of Package teamspeak
#
# spec file for package teamspeak
#
# Copyright (c) 2018 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: teamspeak
Version: 3.5.2
Release: 0
License: NonFree
Group: Productivity/Multimedia/Sound/Utilities
Summary: VoIP software designed with security in mind and voice quality
Url: https://teamspeak.com
Source0: https://files.teamspeak-services.com/releases/client/%{version}/TeamSpeak3-Client-linux_amd64-%{version}.run
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Otherwise bundled libs gets declared as available libs.
AutoReqProv: no
%description
Use crystal clear sound to communicate with your team mates cross-platform with military-grade security, lag-free performance & unparalleled reliability and uptime.
%prep
sh %{S:0} --tar -xf -p --xattrs
%build
%install
# Clean bad files
rm QtWebEngineProcess
rm update
rm error_report
rm libc++.so.1
rm libc++abi.so.1
rm libcrypto.so.1.0.0
rm libssl.so.1.0.0
rm libudev.so.1
rm libGL.so
rm package_inst
# Copy everything to /opt
install -m 755 -d %{buildroot}/opt/%{name}
cp -a * %{buildroot}/opt/%{name}
# Install symlink
install -m 755 -d %{buildroot}%{_bindir}
ln -s /opt/%{name}/ts3client_runscript.sh %{buildroot}%{_bindir}/%{name}
%files
%defattr(-,root,root)
%dir /opt/%{name}
%dir /opt/%{name}/html
%dir /opt/%{name}/iconengines
%dir /opt/%{name}/imageformats
%dir /opt/%{name}/platforms
%dir /opt/%{name}/resources
%dir /opt/%{name}/soundbackends
%dir /opt/%{name}/sqldrivers
%dir /opt/%{name}/xcbglintegrations
# Resource files
/opt/%{name}/sound/
/opt/%{name}/translations/
/opt/%{name}/styles/
/opt/%{name}/qtwebengine_locales/
/opt/%{name}/html/myteamspeak_intro/
/opt/%{name}/gfx/
/opt/%{name}/resources/icudtl.dat
/opt/%{name}/resources/qtwebengine_resources.pak
/opt/%{name}/resources/qtwebengine_resources_100p.pak
/opt/%{name}/resources/qtwebengine_resources_200p.pak
/opt/%{name}/soundbackends/libalsa_linux_amd64.so
/opt/%{name}/soundbackends/libpulseaudio_linux_amd64.so
/opt/%{name}/sqldrivers/libqsqlite.so
/opt/%{name}/iconengines/libqsvgicon.so
/opt/%{name}/imageformats/libqgif.so
/opt/%{name}/imageformats/libqjpeg.so
/opt/%{name}/imageformats/libqsvg.so
/opt/%{name}/platforms/libqxcb.so
/opt/%{name}/xcbglintegrations/libqxcb-egl-integration.so
/opt/%{name}/xcbglintegrations/libqxcb-glx-integration.so
/opt/%{name}/libquazip.so
# teamspeak uses too new Qt for SLE15-SP1.
/opt/%{name}/libQt5*.so.5
/opt/%{name}/openglblacklist.json
/opt/%{name}/qt.conf
%doc /opt/%{name}/CHANGELOG
/opt/%{name}/ts3client_linux_amd64
/opt/%{name}/ts3client_runscript.sh
%{_bindir}/%{name}
%changelog