[packages/slack-desktop: 1/2] new, version 1.2.6
glen
glen at pld-linux.org
Wed Dec 9 13:32:27 CET 2015
commit b65a8cf5410edefec7e55dd60d0cbe63f8eb07e5
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Dec 9 14:16:22 2015 +0200
new, version 1.2.6
based on atom.spec and parts from google-chrome.spec
slack-desktop.spec | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
---
diff --git a/slack-desktop.spec b/slack-desktop.spec
new file mode 100644
index 0000000..d0a2ebf
--- /dev/null
+++ b/slack-desktop.spec
@@ -0,0 +1,80 @@
+# TODO
+# - src.rpm specifies, is it correct (link is 404)
+# URL - https://github.com/tinyspeck/slack-winssb.git
+# License - MIT
+# - it's based on atom?? meh?
+
+Summary: Desktop client for Slack
+Name: slack-desktop
+Version: 1.2.6
+Release: 0.1
+License: ?
+Group: X11/Applications
+Source0: https://slack-ssb-updates.global.ssl.fastly.net/linux_releases/slack-%{version}-0.1.fc21.x86_64.rpm
+# NoSource0-md5: 598d52c3e3669ee5ecf4e9682d4c2c7f
+NoSource: 0
+URL: https://slack.com/
+BuildRequires: rpm-utils
+BuildRequires: rpmbuild(macros) >= 1.356
+BuildRequires: sed >= 4.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _appdir %{_libdir}/%{name}
+
+%description
+Get full access to your messages and archives, upload files easily,
+and receive notifications whether you're at your desk or on the go.
+
+%prep
+%setup -qcT
+SOURCE=%{S:0}
+
+version=$(rpm -qp --nodigest --nosignature --qf '%{V}' $SOURCE)
+test version:${version} = version:%{version}
+rpm2cpio $SOURCE | cpio -i -d
+
+mv usr/share/slack .
+mv usr/share/pixmaps/* .
+mv slack/*.png .
+mv usr/share/applications/* .
+mv slack/LICENSE* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_appdir}}
+
+cp -a slack/* $RPM_BUILD_ROOT%{_appdir}
+ln -s %{_appdir}/slack $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%update_desktop_database
+
+%postun
+%update_desktop_database
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE LICENSES.chromium.html
+%attr(755,root,root) %{_bindir}/slack
+%dir %{_appdir}
+%{_appdir}/version
+%{_appdir}/*.bin
+%{_appdir}/content_shell.pak
+%{_appdir}/icudtl.dat
+%attr(755,root,root) %{_appdir}/slack
+%attr(755,root,root) %{_appdir}/libgcrypt.so.11
+%attr(755,root,root) %{_appdir}/libnode.so
+%attr(755,root,root) %{_appdir}/libnotify.so.4
+
+%{_appdir}/locales
+
+%dir %{_appdir}/resources
+%{_appdir}/resources/atom.asar
+%{_appdir}/resources/app.asar
+
+# too many files to list, assume file permissions
+%defattr(-,root,root,-)
+%{_appdir}/resources/app.asar.unpacked
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/slack-desktop.git/commitdiff/fd368d4c5944dd310e61cda72dd795172e0b7c2d
More information about the pld-cvs-commit
mailing list