Mageia Bugzilla – Attachment 10549 Details for
Bug 20198
Viber - Free text & calls
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec file
viber.spec (text/x-rpm-spec), 2.87 KB, created by
Kristoffer Grundström
on 2018-12-11 08:43:11 CET
(
hide
)
Description:
Proposal spec file
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2018-12-11 08:43:11 CET
Size:
2.87 KB
patch
obsolete
>%define debug_package %{nil} > >%define __noautoprov 'lib*' >%define __noautoreq 'lib*' > >Summary: Free instant messages and calls >Name: viber >Version: 7.0.0.1035 >Release: %mkrel 1 >License: Proprietary >Group: Networking/Instant messaging >Url: http://viber.com >Source0: http://download.cdn.viber.com/cdn/desktop/Linux/%{name}.deb >Source100: %{name}.rpmlintrc >BuildRequires: desktop-file-utils ># Viber crashes because of mixing Qt5 and Qt4 libraries >ExclusiveArch: x86_64 > >%description >More than 200 million Viber users text, call, and send photo and video messages >worldwide - for free. > >Your phone number is your ID. Viber syncs with your mobile contact list, >automatically detecting which of your contacts have Viber. > >Viber Desktop and the latest versions of the Viber mobile app were designed for >individuals using Viber on multiple devices, so you can always use the app >that's right for you, whether at home, in school, at the office, or on the go. > >Viber is completely free with no advertising. We value your privacy. > >Main features: >- Text with your friends, privately or in groups >- Make free calls with HD sound quality >- Seamlessly transfer calls between Viber Desktop and the Viber app with one > click or tap >- Send stickers and emoticons >- Messages are shown on all devices > >%files >/opt/viber >%{_bindir}/%{name} >%{_datadir}/applications/*.desktop >%{_datadir}/icons/hicolor/scalable/apps/* >%{_datadir}/pixmaps/* >%{_datadir}/%{name}/* > >#---------------------------------------------------------------------------- > >%prep >%setup -q -c -T > >%build > >%install ># Extract DEB packages: >pushd %{buildroot} > ar p %{SOURCE0} data.tar.xz | xz -d > %{name}-%{version}.x86_64.tar > tar -xf %{name}-%{version}.x86_64.tar >popd > ># Modify *.desktop file: >sed -e 's|Exec=\/opt\/viber\/Viber|Exec=%{_bindir}\/%{name}|g' -i %{buildroot}%{_datadir}/applications/%{name}.desktop >sed -e 's/Path=/Path=\/opt\/viber/g' -i %{buildroot}%{_datadir}/applications/%{name}.desktop > ># Install *.desktop file: >desktop-file-install --vendor mageia \ > --dir %{buildroot}%{_datadir}/applications \ > --add-category Network \ > --delete-original \ > %{buildroot}%{_datadir}/applications/%{name}.desktop > ># Fix executable attributes: >chmod 755 %{buildroot}/opt/%{name}/Viber > ># Create run srcipt: >mkdir -p %{buildroot}%{_bindir} >echo -e '#!/bin/bash\n\nLD_LIBRARY_PATH=/opt/viber /opt/viber/Viber\n' > %{buildroot}%{_bindir}/%{name} >chmod +x %{buildroot}%{_bindir}/%{name} > ># Remove unused directories and tarball: >pushd %{buildroot} > rm %{name}-%{version}.x86_64.tar >popd > >#Remove rpath >find %{buildroot} -name "*" -exec chrpath --delete {} \; 2>/dev/null > >%changelog >* Tue Dec 11 2018 Kristoffer Grundström <hamnisdude@gmail.com> 7.0.0.1035 >+ Initial release > >* Thu Jan 29 2015 Andrey Bondrov <andrey.bondrov@rosalab.ru> 4.2.2.6-2 >+ Revision: 2a0b2a7 >- Add Conflicts with rosa-media-player-plugin because Viber crashes due to mixing Qt5 and Qt4 libraries
%define debug_package %{nil} %define __noautoprov 'lib*' %define __noautoreq 'lib*' Summary: Free instant messages and calls Name: viber Version: 7.0.0.1035 Release: %mkrel 1 License: Proprietary Group: Networking/Instant messaging Url: http://viber.com Source0: http://download.cdn.viber.com/cdn/desktop/Linux/%{name}.deb Source100: %{name}.rpmlintrc BuildRequires: desktop-file-utils # Viber crashes because of mixing Qt5 and Qt4 libraries ExclusiveArch: x86_64 %description More than 200 million Viber users text, call, and send photo and video messages worldwide - for free. Your phone number is your ID. Viber syncs with your mobile contact list, automatically detecting which of your contacts have Viber. Viber Desktop and the latest versions of the Viber mobile app were designed for individuals using Viber on multiple devices, so you can always use the app that's right for you, whether at home, in school, at the office, or on the go. Viber is completely free with no advertising. We value your privacy. Main features: - Text with your friends, privately or in groups - Make free calls with HD sound quality - Seamlessly transfer calls between Viber Desktop and the Viber app with one click or tap - Send stickers and emoticons - Messages are shown on all devices %files /opt/viber %{_bindir}/%{name} %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/scalable/apps/* %{_datadir}/pixmaps/* %{_datadir}/%{name}/* #---------------------------------------------------------------------------- %prep %setup -q -c -T %build %install # Extract DEB packages: pushd %{buildroot} ar p %{SOURCE0} data.tar.xz | xz -d > %{name}-%{version}.x86_64.tar tar -xf %{name}-%{version}.x86_64.tar popd # Modify *.desktop file: sed -e 's|Exec=\/opt\/viber\/Viber|Exec=%{_bindir}\/%{name}|g' -i %{buildroot}%{_datadir}/applications/%{name}.desktop sed -e 's/Path=/Path=\/opt\/viber/g' -i %{buildroot}%{_datadir}/applications/%{name}.desktop # Install *.desktop file: desktop-file-install --vendor mageia \ --dir %{buildroot}%{_datadir}/applications \ --add-category Network \ --delete-original \ %{buildroot}%{_datadir}/applications/%{name}.desktop # Fix executable attributes: chmod 755 %{buildroot}/opt/%{name}/Viber # Create run srcipt: mkdir -p %{buildroot}%{_bindir} echo -e '#!/bin/bash\n\nLD_LIBRARY_PATH=/opt/viber /opt/viber/Viber\n' > %{buildroot}%{_bindir}/%{name} chmod +x %{buildroot}%{_bindir}/%{name} # Remove unused directories and tarball: pushd %{buildroot} rm %{name}-%{version}.x86_64.tar popd #Remove rpath find %{buildroot} -name "*" -exec chrpath --delete {} \; 2>/dev/null %changelog * Tue Dec 11 2018 Kristoffer Grundström <hamnisdude@gmail.com> 7.0.0.1035 + Initial release * Thu Jan 29 2015 Andrey Bondrov <andrey.bondrov@rosalab.ru> 4.2.2.6-2 + Revision: 2a0b2a7 - Add Conflicts with rosa-media-player-plugin because Viber crashes due to mixing Qt5 and Qt4 libraries
View Attachment As Raw
Actions:
View
Attachments on
bug 20198
: 10549 |
10550