Update rpm spec to support OpenSuse and conform to Fedora guidelines
This commit is contained in:
parent
63d4486855
commit
3aa9f5c376
@ -1,14 +1,20 @@
|
||||
Name: MultiMC5
|
||||
Version: 1.4
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: A local install wrapper for MultiMC
|
||||
|
||||
License: ASL 2.0
|
||||
URL: https://multimc.org
|
||||
BuildArch: x86_64
|
||||
ExclusiveArch: %{ix86} x86_64
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: libappstream-glib
|
||||
Requires: zenity %{?suse_version:lib}qt5-qtbase wget xrandr
|
||||
Provides: multimc = %{version}
|
||||
Provides: MultiMC = %{version}
|
||||
Provides: multimc5 = %{version}
|
||||
|
||||
|
||||
Requires: zenity qt5-qtbase wget xrandr
|
||||
Provides: multimc MultiMC multimc5
|
||||
|
||||
%description
|
||||
A local install wrapper for MultiMC
|
||||
@ -23,22 +29,29 @@ 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
|
||||
desktop-file-install --dir=%{buildroot}%{_datadir}/applications ../ubuntu/multimc/usr/share/applications/multimc.desktop
|
||||
|
||||
mkdir -p %{buildroot}/%{_datadir}/metainfo
|
||||
install -m 0644 ../ubuntu/multimc/usr/share/metainfo/multimc.metainfo.xml %{buildroot}/%{_datadir}/metainfo/multimc.metainfo.xml
|
||||
install -m 0644 ../ubuntu/multimc/usr/share/metainfo/multimc.metainfo.xml %{buildroot}/%{_metainfodir}/multimc.metainfo.xml
|
||||
mkdir -p %{buildroot}/%{_mandir}/man1
|
||||
install -m 0644 ../ubuntu/multimc/usr/share/man/man1/multimc.1 %{buildroot}/%{_mandir}/man1/multimc.1
|
||||
|
||||
%check
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/multimc.metainfo.xml
|
||||
|
||||
%files
|
||||
%dir /opt/multimc
|
||||
/opt/multimc/icon.svg
|
||||
/opt/multimc/run.sh
|
||||
%{_datadir}/applications/multimc.desktop
|
||||
%{_datadir}/metainfo/multimc.metainfo.xml
|
||||
%dir /usr/share/man/man1
|
||||
%{_mandir}/man1/multimc.1.gz
|
||||
%{_metainfodir}/multimc.metainfo.xml
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/multimc.1*
|
||||
|
||||
%changelog
|
||||
* Fri Jan 28 2022 Jan Drögehoff <sentrycraft123@gmail.com> - 1.4-4
|
||||
- Update spec to support OpenSuse and conform to Fedora guidelines
|
||||
|
||||
* Sun Oct 03 2021 imperatorstorm <30777770+ImperatorStorm@users.noreply.github.com>
|
||||
- added manpage
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user