Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kimi:zoom
zoom
zoom.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File zoom.spec of Package zoom
# Exclude automatic provides and requires globally: # Note: You have to specify each requirement manually. #%%global __provides_exclude_from ^/opt/.*$ #%%global __requires_exclude_from ^/opt/.*$ # How to exclude specific dependencies: #%%define __requires_exclude lib.so.1 %if 0%{?suse_version} %define rpm_version %(rpm -qp %{_sourcedir}/%{name}-openSUSE.rpm 2>/dev/null | sed "s|%{name}-\\(.\\+\\)-.*|\\1|" | sed 's/_openSUSE//g') %endif %if 0%{?fedora_version} %define rpm_version %(rpm -qp %{_sourcedir}/%{name}-Fedora.rpm 2>/dev/null | sed "s|%{name}-\\(.\\+\\)-.*|\\1|" | sed 's/_Fedora//g') %endif %define THISMONTHSHORT %(LC_TIME='en_US.UTF-8' date +%%b) %define THISMONTHLONG %(LC_TIME='en_US.UTF-8' date +%%B) %define THISYEAR %(date +%%Y) %define DAYNUMBER %(LC_TIME='en_US.UTF-8' date +%%d) %define DAYNAMESHORT %(LC_TIME='en_US.UTF-8' date +%%a) %define today %{DAYNAMESHORT} %{THISMONTHSHORT} %{DAYNUMBER} %{THISYEAR} %define packager Kimi %define packager_lowercase %(echo %{packager} | tr '[:upper:]' '[:lower:]') %define packagerEmail noreply@nodomain.org #%%define iconName %%{name} %define iconName Zoom Name: zoom Version: %{rpm_version} Release: 0 Summary: Cloud Meetings License: SUSE-NonFree Group: Productivity/Networking/Other URL: https://www.zoom.us/ # Problems at install time: # nothing provides 'libQt53DCore.so.5(Qt_5_PRIVATE_API)(64bit)' # nothing provides 'libQt53DQuickScene2D.so.5(Qt_5_PRIVATE_API)(64bit)' # nothing provides 'libQt53DRender.so.5(Qt_5_PRIVATE_API)(64bit)' # nothing provides 'libQt5EglFSDeviceIntegration.so.5(Qt_5_PRIVATE_API)(64bit)' # etc. # Solution: See https://stackoverflow.com/questions/7715955/how-can-i-rebuild-rpm-package-exclude-some-dependencies # => add: 'AutoReq: no' AutoReq: no %if 0%{?suse_version} Source0: %{name}-openSUSE.rpm %endif %if 0%{?fedora_version} Source0: %{name}-Fedora.rpm %endif # See https://en.opensuse.org/openSUSE:Packaging_checks # How to deal with rpmlint error: # missing-hash-section library.so.1 # Solution: # Add file %%{name}-rpmlintrc # with content: # setBadness('missing-hash-section', 0) # Add Source123: %%{name}-rpmlintrc Source1: %{name}-rpmlintrc BuildRequires: -post-build-checks BuildRequires: rpm BuildRequires: cpio BuildRequires: chrpath BuildRequires: fdupes %if 0%{?suse_version} Requires: libxcb-xtest0 %endif Recommends: firejail >= 0.9.72 Recommends: firetools >= 0.9.72 %if 0%{?suse_version} #Requires(post): gtk3-tools #Requires(postun): gtk3-tools %endif %description Zoom Cloud Meetings Zoom brings people together to connect and get more done in a frictionless, secure video environment. Our easy, reliable, and innovative video-first solutions provide video meetings and chat, with additional options for webinars and phone service. . Zoom is the leading unified communications platform and helps individuals, schools, healthcare professionals and enterprises stay connected. Visit blog.zoom.us and follow @zoom_us. . By installing this app, you agree to our Terms of Service (https://zoom.us/terms) and Privacy Statement (https://zoom.us/privacy). %prep %build %install rpm2cpio %{SOURCE0} | cpio -idm -D %{buildroot} if [ -e "%{buildroot}/opt/%{name}/cef/chrome-sandbox" ] ; then chown root %{buildroot}/opt/%{name}/cef/chrome-sandbox && chmod 4755 %{buildroot}/opt/%{name}/cef/chrome-sandbox || true fi if [ -d "%{buildroot}/usr/lib/.build-id" ] ; then rm -rf %{buildroot}/usr/lib/.build-id ; fi for sofile in $(find %{buildroot}/opt -name *.so*) ; do chrpath --delete ${sofile} ; strip -s ${sofile} ; done chrpath --delete %{buildroot}/opt/zoom/aomhost chrpath --delete %{buildroot}/opt/zoom/zopen install -dm755 "%{buildroot}/usr/share/icons/hicolor/scalable/apps" cat <<EOF > "%{buildroot}/usr/share/icons/hicolor/scalable/apps/%{iconName}.svg" <svg xmlns="http://www.w3.org/2000/svg" version="1.2" viewBox="0 0 128 128"> <path fill="#fefefe" d="m58.347 126.765-4.154-.586A62.653 62.754 0 0 1 3.38 80.07a50.813 50.895 0 0 1-1.855-15.867c0-7.33.318-10.434 1.817-15.994A62.78 62.881 0 0 1 48.4 3.242c5.843-1.463 8.816-1.82 15.676-1.82 5.272 0 6.732.09 9.527.547a62.132 62.232 0 0 1 34.782 17.725 62.156 62.156 0 0 1 17.696 34.863c.495 3.143.635 6.337.546 9.517-.14 5.28-.318 9.836-1.817 15.74a62.78 62.881 0 0 1-44.893 45.093 53.392 53.478 0 0 1-14.863 1.858l-6.708-.039zm14.317-5.471a57.673 57.766 0 0 0 11.687-111.27A57.648 57.74 0 0 0 8.131 78.44a57.838 57.932 0 0 0 64.597 42.84ZM35.316 84.14a11.382 11.4 0 0 1-8.676-8.729c-.496-2.214-.56-29.226-.102-30.231.648-1.4-.101-1.375 21.85-1.336 21.9 0 22.13 0 24.733 1.297a12.106 12.126 0 0 1 4.485 4.263c1.562 2.646 1.6 2.926 1.6 19.073v14.53l-.711.713-.724.687H57.09c-11.395 0-21.177-.127-21.8-.254zm63.34.038c-.23-.063-4.193-2.926-8.817-6.26l-8.422-6.12V56.542l8.486-6.184a156.56 156.56 0 0 1 9.108-6.425 1.016 1.018 0 0 1 1.016.254c.356.37.42 2.125.42 19.913 0 17.406-.064 19.556-.382 19.875-.432.432-.724.496-1.397.203z"/> <path fill="#e8ecea" d="M53.965 127.337A63.86 63.963 0 0 1 .839 74.241 56.492 56.583 0 0 1 .001 64.2c.127-5.456.609-10.52 2.134-16.22A64.088 64.192 0 0 1 48.11 2.046 67.328 67.436 0 0 1 64.077.01c3.264-.076 6.936.293 9.756.789a63.987 64.09 0 0 1 53.481 53.529c.457 2.837.686 6.515.686 9.772 0 3.27-.229 6.947-.686 9.785a63.987 64.09 0 0 1-53.15 53.49c-2.503.433-6.175.611-9.274.624-3.646.013-7.241-.09-10.925-.649zm19.97-1.158a62.78 62.881 0 0 0 50.876-46.365 65.537 65.642 0 0 0 1.957-15.74 62.208 62.309 0 0 0-18.382-44.38A61.967 62.067 0 0 0 73.579 1.969a53.443 53.53 0 0 0-9.502-.788c-5.272.127-9.82.56-15.676 2.06A62.78 62.881 0 0 0 3.329 48.196 59.515 59.611 0 0 0 1.22 64.19c.013 5.344.61 9.975 2.147 15.867a62.653 62.754 0 0 0 50.814 46.073c3.582.649 7.24.636 10.861.623 2.973-.013 6.479-.204 8.918-.585z"/> <path fill="#558dfe" d="M59.326 121.777a57.737 57.83 0 1 1 13.338-.522c-3.646.548-10.086.815-13.338.484zm19.207-38.12.686-.726V68.426c0-16.083 0-16.414-1.626-19.022a12.106 12.126 0 0 0-4.459-4.263c-2.604-1.297-2.833-1.336-24.72-1.336-21.927 0-21.215-.063-21.825 1.298-.457 1.044-.432 28.056.064 30.308a11.382 11.4 0 0 0 8.676 8.704c.597.089 10.417.19 21.799.229h20.63zm21.532.318c.33-.319.394-2.469.394-19.875 0-17.788-.038-19.544-.42-19.938a.978.98 0 0 0-.977-.255c-.33.09-4.421 2.965-9.109 6.388l-8.524 6.247V71.76l8.46 6.133a298.63 299.112 0 0 0 8.779 6.285c.686.255.978.23 1.397-.203z"/> </svg> EOF # Fix icon in .desktop if neccessary echo "Original Zoom.desktop:" echo "======================" cat %{buildroot}/usr/share/applications/Zoom.desktop # Replace the icon in .desktop if neccessary # sed -i "s|Icon=.*|Icon=%%{iconName}|g" %%{buildroot}/usr/share/applications/Zoom.desktop %fdupes -s %{buildroot}/opt/ %fdupes -s %{buildroot}/usr/ echo "--- List files that will be packaged ---" find %{buildroot} | sed "s|%{buildroot}||g" echo "--- End list files that will be packaged ---" %post -n %{name} /sbin/ldconfig echo "killing Zoom if it is running..." killall zoom 2>/dev/null # Users on the system USERS=$(awk -F':' '{ print $1 }' /etc/passwd) # echo USERS=$USERS for user in $USERS; do # In zoom version 5.17.5 an issue was detected that may reoccur in subsequent releases # due to mismatch in user configuration files. Those files need to be removed. if [ -d "/home/$user/.zoom" ]; then rm -rvf /home/$user/.zoom fi if [ -d "/home/$user/.cache" ]; then rm -rf /home/$user/.cache fi if [ -d "/home/$user/.config" ]; then rm -vf /home/$user/.config/zoom* fi done %postun -n %{name} # Note that %%postun also gets called when upgrading. We have to check the # argument passed to %%postun (the number of copies of the RPM installed after # this is run) to determine whether this is an upgrade, or a removal. "0" # means removal, and >0 means upgrade /sbin/ldconfig if [ "$1" = "0" ]; then # Run on uninstall echo "killing Zoom if it is running..." killall zoom 2>/dev/null # Users on the system USERS=$(awk -F':' '{ print $1 }' /etc/passwd) # echo USERS=$USERS for user in $USERS; do # Cleanup user configuration files if [ -d "/home/$user/.zoom" ]; then rm -rvf /home/$user/.zoom fi if [ -d "/home/$user/.cache" ]; then rm -rf /home/$user/.cache fi if [ -d "/home/$user/.config" ]; then rm -vf /home/$user/.config/zoom* fi done fi %files %dir /opt/%{name} /opt/%{name}/* %{_bindir}/* %{_datadir}/applications/* %dir %{_datadir}/doc/%{name} %{_datadir}/mime/packages/* %{_datadir}/pixmaps/* %{_datadir}/icons/hicolor/scalable/apps/* %changelog * %{today} %{packager} <%{packagerEmail}> - %{version} - New release.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor