[packages/viber] new. free call, text and picture sharing client for linux
glen
glen at pld-linux.org
Tue Jul 8 16:34:59 CEST 2014
commit 6121dde971f187140eca4497c041f062c3a6c6db
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jul 8 17:15:59 2014 +0300
new. free call, text and picture sharing client for linux
viber.spec | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 117 insertions(+)
---
diff --git a/viber.spec b/viber.spec
new file mode 100644
index 0000000..4bd634b
--- /dev/null
+++ b/viber.spec
@@ -0,0 +1,117 @@
+Summary: Viber - Free Calls and Messages
+Name: viber
+# Version from About dialog
+Version: 3.1.2
+Release: 0.2
+License: ?
+Group: Applications/Communications
+Source0: http://download.cdn.viber.com/cdn/desktop/Linux/%{name}.deb
+# NoSource0-md5: 7be88e0d854aa31e0d7dade32a6413a8
+NoSource: 0
+URL: http://viber.com/products/linux
+ExclusiveArch: %{x8664}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _appdir %{_prefix}/lib/%{name}
+
+# list of files (regexps) which don't generate Provides
+%define _noautoprovfiles %{_appdir}
+
+%define req_qt5 libQt5Core.so.5 libQt5DBus.so.5 libQt5Gui.so.5 libQt5Network.so.5 libQt5OpenGL.so.5 libQt5PrintSupport.so.5 libQt5Qml.so.5 libQt5Quick.so.5 libQt5Sql.so.5 libQt5Svg.so.5 libQt5V8.so.5 libQt5WebKit.so.5 libQt5WebKitWidgets.so.5 libQt5Widgets.so.5
+%define req_x11 libXss.so.1
+%define req_bfd libbfd-2.22-system.so
+%define req_icu libicudata.so.48 libicui18n.so.48 libicuuc.so.48
+
+%define _noautoreq %{req_qt5} %{req_x11} %{req_bfd} %{req_icu}
+
+%description
+Viber for Linux lets you send free messages and make free calls to
+other Viber users on any device and network, in any country! Viber
+syncs your contacts and messages with your mobile device.
+
+- Text, photo and sticker messages
+- Group conversations
+- Call any Viber user for free
+- Full sync between your mobile and your Linux
+- Transfer ongoing calls between your mobile and your desktop
+- No registration, passwords or invitations required
+
+%prep
+%setup -qcT
+ar x %{SOURCE0}
+tar xzf data.tar.gz
+
+mv .%{_datadir}/* .
+mv viber/Viber.sh .
+
+cat <<'EOF' > viber.sh
+#!/bin/sh
+export LD_LIBRARY_PATH=%{_appdir}:$LD_LIBRARY_PATH
+exec %{_appdir}/Viber "$@"
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_appdir},%{_pixmapsdir},%{_desktopdir}}
+cp -a viber/* $RPM_BUILD_ROOT%{_appdir}
+cp -p applications/viber.desktop $RPM_BUILD_ROOT%{_desktopdir}
+cp -p pixmaps/viber.png $RPM_BUILD_ROOT%{_pixmapsdir}
+install -p viber.sh $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/viber
+%dir %{_appdir}
+%attr(755,root,root) %{_appdir}/Viber
+%attr(755,root,root) %{_appdir}/libViber.so
+%{_appdir}/Sound
+%{_appdir}/icons
+%{_appdir}/viber.png
+%{_desktopdir}/viber.desktop
+%{_pixmapsdir}/viber.png
+
+# qt5
+%attr(755,root,root) %{_appdir}/libQt5Network.so.5
+%attr(755,root,root) %{_appdir}/libQt5Svg.so.5
+%attr(755,root,root) %{_appdir}/libQt5V8.so.5
+%attr(755,root,root) %{_appdir}/libQt5Gui.so.5
+%attr(755,root,root) %{_appdir}/libQt5PrintSupport.so.5
+%attr(755,root,root) %{_appdir}/libQt5Qml.so.5
+%attr(755,root,root) %{_appdir}/libQt5Widgets.so.5
+%attr(755,root,root) %{_appdir}/libQt5OpenGL.so.5
+%attr(755,root,root) %{_appdir}/libQt5WebKit.so.5
+%attr(755,root,root) %{_appdir}/libQt5DBus.so.5
+%attr(755,root,root) %{_appdir}/libQt5Sql.so.5
+%attr(755,root,root) %{_appdir}/libQt5WebKitWidgets.so.5
+%attr(755,root,root) %{_appdir}/libQt5Core.so.5
+%attr(755,root,root) %{_appdir}/libQt5Quick.so.5
+# qt5 plugins
+%dir %{_appdir}/platforms
+%attr(755,root,root) %{_appdir}/platforms/libqxcb.so
+%attr(755,root,root) %{_appdir}/platforms/libqlinuxfb.so
+%attr(755,root,root) %{_appdir}/platforms/libqminimal.so
+%dir %{_appdir}/sqldrivers
+%attr(755,root,root) %{_appdir}/sqldrivers/libqsqlite.so
+%dir %{_appdir}/imageformats
+%attr(755,root,root) %{_appdir}/imageformats/libqmng.so
+%attr(755,root,root) %{_appdir}/imageformats/libqtga.so
+%attr(755,root,root) %{_appdir}/imageformats/libqwbmp.so
+%attr(755,root,root) %{_appdir}/imageformats/libqjpeg.so
+%attr(755,root,root) %{_appdir}/imageformats/libqtiff.so
+%attr(755,root,root) %{_appdir}/imageformats/libqsvg.so
+%attr(755,root,root) %{_appdir}/imageformats/libqgif.so
+%attr(755,root,root) %{_appdir}/imageformats/libqico.so
+
+# icu
+%attr(755,root,root) %{_appdir}/libicudata.so.48
+%attr(755,root,root) %{_appdir}/libicui18n.so.48
+%attr(755,root,root) %{_appdir}/libicuuc.so.48
+
+# x11
+%attr(755,root,root) %{_appdir}/libXss.so.1
+
+# binutils
+%attr(755,root,root) %{_appdir}/libbfd-2.22-system.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/viber.git/commitdiff/6121dde971f187140eca4497c041f062c3a6c6db
More information about the pld-cvs-commit
mailing list