-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RPM Package #1403
Open
Fabxx
wants to merge
9
commits into
xemu-project:master
Choose a base branch
from
Fabxx:RPM_package
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+79
−0
Open
RPM Package #1403
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f0ef162
Create RPM_package.yml
Fabxx a46b7f2
Create RPM_package.spec
Fabxx 0b7ed80
Update RPM_package.yml
Fabxx de8a19e
use ""lastes" in the source link
Fabxx d6ece9a
update wget link
Fabxx 046b09b
edit version parameter to "lastes"
Fabxx 922d94f
Update RPM_package.spec
Fabxx 3e9248c
Use bash script to update automatically version number in spec file
Fabxx 4e5480e
Create RPM_check_version.sh
Fabxx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
sed -i -r "s/Version:\s*(\d*.)*/Version: $1/g" RPM_package.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Name: xemu | ||
Version: 0.7.84 | ||
Release: 1%{?dist} | ||
Summary: xemu: Original Xbox Emulator (RPM) | ||
|
||
License: LGPL-2.1, GPL.2.0 | ||
URL: https://github.com/xemu-project/xemu | ||
Source0: https://github.com/xemu-project/xemu/releases/latest/download/src.tar.gz | ||
|
||
BuildRequires: libdrm-devel | ||
BuildRequires: libslirp-devel | ||
BuildRequires: mesa-libGLU-devel | ||
BuildRequires: gtk3-devel | ||
BuildRequires: libpcap-devel | ||
BuildRequires: libsamplerate-devel | ||
BuildRequires: libaio-devel | ||
BuildRequires: SDL2-devel | ||
BuildRequires: libepoxy-devel | ||
BuildRequires: pixman-devel | ||
BuildRequires: gcc-c++ | ||
BuildRequires: ninja-build | ||
BuildRequires: openssl-devel | ||
BuildRequires: python3-pyyaml | ||
|
||
#To update | ||
Requires: libdrm-devel libslirp-devel mesa-libGLU-devel gtk3-devel libpcap-devel libsamplerate-devel libaio-devel SDL2-devel libepoxy-devel pixman-devel gcc-c++ ninja-build openssl-devel python3-pyyaml | ||
#To update | ||
%description | ||
Xemu original xbox emulator package release for RPM based distributions. | ||
|
||
%prep | ||
rm -fr src | ||
wget https://github.com/xemu-project/xemu/releases/lastes/download/src.tar.gz -O $HOME/rpmbuild/SOURCES/src.tar.gz | ||
tar -xzf %{SOURCE0} | ||
|
||
%build | ||
./build.sh | ||
|
||
%files | ||
%license LICENSE | ||
#TODO: Apply icon.png to executable, possibly using a .desktop file. | ||
/icon.png | ||
/xemu | ||
|
||
%install | ||
mkdir -p $HOME/.local/bin | ||
cp ./ui/icons/xemu_128x128.png $RPM_BUILD_ROOT/icon.png | ||
cp ./dist/xemu $RPM_BUILD_ROOT/xemu | ||
install -m755 $RPM_BUILD_ROOT/xemu $HOME/.local/bin/xemu | ||
|
||
%changelog | ||
* Wed Mar 01 2023 f | ||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Xemu RPM | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: bash RPM_check_version.sh | ||
|
||
- name: xemu RPM package | ||
id: rpm | ||
uses: xemu-project/xemu | ||
with: | ||
spec_file: "RPM_package.spec" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does this work? I don't think the |
||
|
||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: Xemu RPM | ||
path: ${{ steps.rpm.outputs.rpm_dir_path }} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this done separately instead of being part of the packaging steps in the main CI pipeline? This is also in the wrong directory in any case, so it won't run.