%define debug %nil %define debug_package %nil Name: scudcloud Version: 1.63 Release: 1 Summary: Non official desktop client for SlackĀ© License: MIT Group: Networking/Instant messaging BuildRequires: python3 BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: fdupes BuildRequires: desktop-file-utils BuildRequires: hicolor-icon-theme Requires(post): desktop-file-utils Requires(postun): desktop-file-utils Requires(post): xdg-utils Requires(postun): xdg-utils Url: https://github.com/raelgc/scudcloud/ Source: %{name}-%{version}.tar.gz Requires: python3 Requires: python3-qt4 #Requires: google-lato-fonts #Requires: dbus-1-python3 #Requires: lato-fonts Requires: python3-dbus #Suggests: libqt4-webkit-qupzillaplugins #Suggests: python3-hunspell BuildArch: noarch %description ScudCloud uses the QT library + Webkit to render the web version of Slack, but using the QWebkit-Native bridge to improve desktop integration with: * multiple teams support, * native system notifications, * count of unread direct mentions at launcher/sytray icon, * alert/wobbling on new messages, * channels quicklist (Unity only), * optional "Close to Tray". %prep %setup -q %build %install /usr/bin/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} %if (0%{?suse_version} || 0%{?sles_version}) %suse_update_desktop_file -r -i %{name} Network InstantMessaging %endif %if (0%{?suse_version} || 0%{?fedora_version}) %fdupes %{buildroot}/%{_datadir} %endif %post %if (0%{?suse_version} || 0%{?sles_version}) %desktop_database_post %icon_theme_cache_post %else /usr/bin/update-desktop-database &> /dev/null || : /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %endif %postun %if (0%{?suse_version} || 0%{?sles_version}) %desktop_database_postun %icon_theme_cache_postun %else /usr/bin/update-desktop-database &> /dev/null || : if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %endif %posttrans %if !(0%{?suse_version} || 0%{?sles_version}) /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{python3_sitelib}/* %{_bindir}/* %dir %{_datadir}/doc/%{name} %{_datadir}/doc/%{name}/* %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/* %dir %{_datadir}/icons/elementary/ %dir %{_datadir}/icons/elementary/scalable %dir %{_datadir}/icons/elementary/scalable/apps %dir %{_datadir}/icons/ubuntu-mono-dark/ %dir %{_datadir}/icons/ubuntu-mono-dark/scalable %dir %{_datadir}/icons/ubuntu-mono-dark/scalable/apps %dir %{_datadir}/icons/ubuntu-mono-light/ %dir %{_datadir}/icons/ubuntu-mono-light/scalable %dir %{_datadir}/icons/ubuntu-mono-light/scalable/apps %{_datadir}/icons/elementary/*/apps/* %{_datadir}/icons/ubuntu-mono-dark/*/apps/* %{_datadir}/icons/ubuntu-mono-light/*/apps/* %{_datadir}/pixmaps/%{name}.png %changelog