summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@users.noreply.github.com>2020-11-30 00:19:25 +0100
committerGitHub <noreply@github.com>2020-11-30 00:19:25 +0100
commit6aa126be3014b231651cb6ca55e9efee2168c29d (patch)
tree87282ac76c59f07f2a63e4f3c603e3daa10d175d
parent58d168bda2fecb42debfb1ce047d6985f64d475d (diff)
parent58c2228247c633805cdbe02ff97eb8cb6f3b3af7 (diff)
downloadMultiMC-6aa126be3014b231651cb6ca55e9efee2168c29d.tar
MultiMC-6aa126be3014b231651cb6ca55e9efee2168c29d.tar.gz
MultiMC-6aa126be3014b231651cb6ca55e9efee2168c29d.tar.lz
MultiMC-6aa126be3014b231651cb6ca55e9efee2168c29d.tar.xz
MultiMC-6aa126be3014b231651cb6ca55e9efee2168c29d.zip
Merge pull request #3460 from kb-1000/rpm-package
NOISSUE Add an RPM package
-rw-r--r--application/package/rpm/MultiMC5.spec40
-rw-r--r--application/package/rpm/README.md12
-rw-r--r--application/package/ubuntu/README.md (renamed from application/package/ubuntu/readme.md)4
3 files changed, 55 insertions, 1 deletions
diff --git a/application/package/rpm/MultiMC5.spec b/application/package/rpm/MultiMC5.spec
new file mode 100644
index 00000000..9dcc01b4
--- /dev/null
+++ b/application/package/rpm/MultiMC5.spec
@@ -0,0 +1,40 @@
+Name: MultiMC5
+Version: 1.4
+Release: 1%{?dist}
+Summary: A local install wrapper for MultiMC
+
+License: ASL 2.0
+URL: https://multimc.org
+BuildArch: x86_64
+
+Requires: zenity qt5-qtbase wget
+Provides: multimc MultiMC multimc5
+
+%description
+A local install wrapper for MultiMC
+
+%prep
+
+
+%build
+
+
+%install
+mkdir -p %{buildroot}/opt/multimc
+install -m 0644 ../ubuntu/multimc/opt/multimc/icon.svg %{buildroot}/opt/multimc/icon.svg
+install -m 0755 ../ubuntu/multimc/opt/multimc/run.sh %{buildroot}/opt/multimc/run.sh
+mkdir -p %{buildroot}/%{_datadir}/applications
+install -m 0644 ../ubuntu/multimc/usr/share/applications/multimc.desktop %{buildroot}/%{_datadir}/applications/multimc.desktop
+
+
+%files
+%dir /opt/multimc
+/opt/multimc/icon.svg
+/opt/multimc/run.sh
+%{_datadir}/applications/multimc.desktop
+
+
+
+%changelog
+* Wed Nov 25 22:53:59 CET 2020 kb1000 <fedora@kb1000.de>
+- Initial version of the RPM package, based on the Ubuntu package
diff --git a/application/package/rpm/README.md b/application/package/rpm/README.md
new file mode 100644
index 00000000..98b6d5cb
--- /dev/null
+++ b/application/package/rpm/README.md
@@ -0,0 +1,12 @@
+# What is this?
+A simple RPM package for MultiMC that contains a script that downloads and installs real MultiMC on Red Hat based systems.
+
+It contains a `.desktop` file, an icon, and a simple script that does the heavy lifting.
+
+# How to build this?
+You need the `rpm-build` package. Switch into this directory, then run:
+```
+rpmbuild --build-in-place -bb MultiMC5.spec
+```
+
+Replace the version with whatever is appropriate.
diff --git a/application/package/ubuntu/readme.md b/application/package/ubuntu/README.md
index 5b0d6b27..5c0f4eeb 100644
--- a/application/package/ubuntu/readme.md
+++ b/application/package/ubuntu/README.md
@@ -1,8 +1,10 @@
# What is this?
-A simple ubuntu package for MultiMC that wraps the contains a script that downloads and installs real MultiMC on ubuntu based systems.
+A simple Ubuntu package for MultiMC that contains a script that downloads and installs real MultiMC on Ubuntu based systems.
It contains a `.desktop` file, an icon, and a simple script that does the heavy lifting.
+This is also the source for the files in the [RPM package](../rpm). If you rename, create or delete files here, you'll likely also have to update the RPM spec file there.
+
# How to build this?
You need dpkg utils. Rename the `multimc` folder to `multimc_1.3-1` and then run:
```