commit 1b67aff4aebd00fe29c8174a5fac257c8133afb3
Author: Jan200101 <sentrycraft123(a)gmail.com>
Date: Thu Jan 2 14:31:52 2020 +0100
Properly import sprm
I really need to apologize for this screwup
....fc31.src.rpm => Ripcord-0.4.21-x86_64.AppImage | Bin 33379097 -> 33730464
bytes
redistribution.txt | 39 ++++++++++++
ripcord.spec | 66 +++++++++++++++++++++
3 files changed, 105 insertions(+)
---
diff --git a/ripcord-0.4.21-4.fc31.src.rpm b/Ripcord-0.4.21-x86_64.AppImage
old mode 100644
new mode 100755
similarity index 85%
rename from ripcord-0.4.21-4.fc31.src.rpm
rename to Ripcord-0.4.21-x86_64.AppImage
index 3dd1053..555ea30
Binary files a/ripcord-0.4.21-4.fc31.src.rpm and b/Ripcord-0.4.21-x86_64.AppImage differ
diff --git a/redistribution.txt b/redistribution.txt
new file mode 100644
index 0000000..3f724a7
--- /dev/null
+++ b/redistribution.txt
@@ -0,0 +1,39 @@
+Shareware Redistribution Rules for Ripcord
+Last updated 2019-11-04 12:25 UTC
+
+Ripcord is shareware, which means users are given permission to redistribute it to other
users, with a few restrictions. This page describes what you are allowed to do and not
allowed to do when redistributing Ripcord.
+
+This page uses the term “release” as a noun to refer to the downloadable copies of
Ripcord that are available on the main page of the Ripcord website. For Windows and Mac,
these are .zip files which contain the software. For Linux, this is a .AppImage file,
which is a type of executable self-mounting or self-extracting zip-like file which
contains more software within.
+
+This page uses the term “bundle” as a verb to refer to: wrapping Ripcord in an installer
with something else, modifying the Ripcord release files to add something else, directly
modifying the Ripcord program binary to add something else, and other common uses of the
term “bundle” when applied to software.
+
+You are allowed to:
+
+ Redistribute any of the releases of Ripcord, unmodified.
+ Example: you may host a copy of an official Ripcord release on your website or a
package manager.
+ Automate the installation, updating, and removal of Ripcord using package management
software.
+ Example: a command-line utility in a Linux distribution that provides a way to
install and uninstall releases of Ripcord in some distribution-specific way.
+
+You are not allowed to:
+
+ Modify a release of Ripcord and then redistribute the modified copy.
+ Claim that you created or own the rights to Ripcord.
+ Misrepresent or obscure the origin or authorship of Ripcord.
+ Bundle Ripcord with malware, adware, or software intended to gather and sell or
profit from user data.
+ Bundle Ripcord with something that bypasses or interferes with the shareware trial
and licensing mechanism within Ripcord.
+ Bundle Ripcord with a license key for Ripcord.
+ Charge money for a redistributed copy of Ripcord, or charge money for use of Ripcord
with a package manager.
+
+On Linux, a special exception which allows you to redistribute modified copies of Ripcord
is granted for the following case:
+
+ For the Linux releases of Ripcord, when using Ripcord with a package management
system, you are allowed to extract the contents of the AppImage and create a package of
the software with equivalent or updated versions of shared library files (typically .so)
for the purpose of improved compatibility with a Linux distribution or that package
management system, to modify the Ripcord program binary to change the paths from which
dynamic libraries are loaded for use in that package management system, and to
redistribute that package.
+ But you are not allowed to use shared library files which bypass or interfere
with the shareware trial and licensing mechanism in Ripcord, or which break any of the
other rules above.
+ Similarly, you are not allowed to modify the Ripcord program binary to bypass the
licensing mechanism, add malware, or break any of the other rules above.
+
+If you need additional special exceptions—for example, to patch the main Ripcord binary
in a way not allowed above in order to provide compatibility with a particular Linux
distribution—please get in touch with me via email.
+
+If you do not follow these rules, your permission to redistribute and/or repackage
Ripcord is revoked. These rules are intended to protect Ripcord’s quality, safety, and
viability as a product and source of income.
+
+As long as you follow to these, you have permission to redistribute Ripcord, unless I
(the owner of Ripcord) have revoked your permission. These rules may be changed without
notice.
+
+—Andrew Richards cancel(a)cancel.fm Acyclic Systems LLC
diff --git a/ripcord.spec b/ripcord.spec
new file mode 100644
index 0000000..4cf7603
--- /dev/null
+++ b/ripcord.spec
@@ -0,0 +1,66 @@
+%global debug_package %{nil}
+%global __strip /bin/true
+
+Summary: a lightweight chat client for Slack and Discord
+Name: ripcord
+Version: 0.4.21
+Release: 4%{dist}
+
+License: Redistributable, no modification permitted
+URL:
https://cancel.fm/ripcord
+Source0:
https://cancel.fm/dl/Ripcord-%{version}-x86_64.AppImage
+Source1: redistribution.txt
+ExclusiveArch: x86_64
+
+BuildRequires: desktop-file-utils
+BuildRequires: chrpath
+
+%description
+Ripcord is a proprietary shareware client for Slack and Discord
+
+%prep
+%autosetup -c -T
+cp %{SOURCE1} .
+
+%build
+chmod +x %{SOURCE0}
+%{SOURCE0} --appimage-extract
+
+%install
+mkdir -p %{buildroot}/%{_bindir}/
+mkdir -p %{buildroot}/%{_libdir}/ripcord/
+mkdir -p %{buildroot}/%{_datadir}/{applications,pixmaps}/
+cp -R squashfs-root/{Ripcord,translations,twemoji.ripdb}
%{buildroot}/%{_libdir}/ripcord/
+chmod 0755 %{buildroot}/%{_libdir}/ripcord/translations/
+install -p -m 0644 squashfs-root/Ripcord_Icon.png %{buildroot}/%{_datadir}/pixmaps/
+sed -i 's@libsodium.so.18@libsodium.so.23(a)'
%{buildroot}/%{_libdir}/ripcord//Ripcord
+chrpath -d %{buildroot}/%{_libdir}/ripcord//Ripcord
+strip %{buildroot}/%{_libdir}/ripcord/Ripcord
+printf "#!/bin/bash\nenv RIPCORD_ALLOW_UPDATES=0 %{_libdir}/ripcord/Ripcord\n"
> %{buildroot}/%{_bindir}/Ripcord
+
+desktop-file-install \
+ --set-key=Exec --set-value='env RIPCORD_ALLOW_UPDATES=0
%{_libdir}/ripcord/Ripcord' \
+ --dir=%{buildroot}/%{_datadir}/applications \
+ squashfs-root/Ripcord.desktop
+
+%files
+%attr(755, root, root) %{_bindir}/Ripcord
+%{_libdir}/ripcord/
+%{_datadir}/applications/Ripcord.desktop
+%{_datadir}/pixmaps/Ripcord_Icon.png
+%license redistribution.txt
+
+%changelog
+* Wed Jan 01 2020 Jan Drogehoff <sentrycraft123(a)gmail.com> - 0.4.21-4
+- replace bin symlink with a wrapper to disable automatic updates
+
+* Mon Dec 30 2019 Jan Drogehoff <sentrycraft123(a)gmail.com> - 0.4.21-3
+- replace patchelf with sed and chrpath as suggested by leigh scott
+
+* Mon Dec 30 2019 Jan Drogehoff <sentrycraft123(a)gmail.com> - 0.4.21-2
+- Use improved spec made by leigh scott and add license
+
+* Sun Dec 29 2019 Jan Drogehoff <sentrycraft123(a)gmail.com> - 0.4.21-1
+- Initial build using version 0.4.21
+
+