This repository has been archived by the owner on Oct 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
/
scudcloud.spec
158 lines (135 loc) · 4.76 KB
/
scudcloud.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#
# spec file for package scudcloud
#
# Copyright (c) 2015 Marcin Trendota ([email protected])
# Copyright (c) 2016 Marcin Bajor ([email protected])
#
# 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: scudcloud
Version: 1.7.0
Release: 1%{?dist}
Summary: Non official desktop client for Slack©
License: MIT
Group: Applications/Internet
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if (0%{?suse_version} || 0%{?fedora_version})
BuildRequires: fdupes
%endif
%if 0%{?suse_version}
BuildRequires: update-desktop-files
BuildRequires: hicolor-icon-theme
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%else
Requires(post): xdg-utils
Requires(postun): xdg-utils
%endif
Url: https://github.com/raelgc/scudcloud/
Source: %{name}-%{version}.tar.gz
Requires: python3
Requires: python3-qt5
%if 0%{?suse_version}
Requires: google-lato-fonts
Requires: dbus-1-python3
%else
Requires: lato-fonts
Requires: python3-dbus
%endif
Suggests: libqt5-webkit-qupzillaplugins
Suggests: python3-hunspell
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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
* Tue Feb 2 2016 Marcin Bajor <[email protected]>
- Added elementary icon theme
* Sat Jan 26 2016 Marcin Bajor <[email protected]>
- Fixed python3-dbus dependency for Fedora
* Sat Jan 23 2016 Marcin Bajor <[email protected]>
- Python package management update
* Mon Dec 7 2015 Marcin Bajor <[email protected]>
- Added VERSION file to rpm package
* Sat Sep 26 2015 Marcin Bajor <[email protected]>
- Added dependencies: libqt4-webkit-qupzillaplugins and python3-hunspell
* Mon Sep 21 2015 Marcin Trendota <[email protected]>
- Add lato-fonts dependency
* Mon Aug 10 2015 Marcin Bajor <[email protected]>
- Now build for CentOS, Red Hat Enterprise Linux, openSUSE, SUSE Linux Enterprise Server and others is possible
* Mon May 18 2015 Marcin Trendota <[email protected]>
- First version