Skip to content

Commit

Permalink
initial package for stardust-gravity
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen-sz committed Sep 12, 2024
1 parent c590174 commit 212a9b3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

project pkg {
rpm {
spec = "stardust-magnetar.spec"
spec = "stardust-gravity.spec"
}
labels {
nightly = 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
%global commit 48064b84b71d27ceea00b5d2f19dcbf21d75f554
%global commit_date 20240831
%global commit 96787ed3139717ea6061f6e259e9fed3e483274a
%global commit_date 20240821
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# Exclude input files from mangling
%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$

Name: stardust-magnetar
Name: stardust-gravity
Version: %commit_date.%shortcommit
Release: 1%?dist
Summary: Workspaces client for Stardust.
URL: https://github.com/StardustXR/magnetar
Source0: %url/archive/%commit/magnetar-%commit.tar.gz
Summary: Utility to launch apps and stardust clients spatially.
URL: https://github.com/StardustXR/gravity
Source0: %url/archive/%commit/gravity-%commit.tar.gz
License: MIT
BuildRequires: cargo cmake anda-srpm-macros cargo-rpm-macros mold libudev-devel g++ libinput-devel libxkbcommon-x11-devel
BuildRequires: cargo cmake anda-srpm-macros cargo-rpm-macros mold

Provides: magnetar
Provides: gravity
Packager: Owen Zimmerman <[email protected]>

%description
%summary

%prep
%autosetup -n magnetar-%commit
%autosetup -n gravity-%commit
%cargo_prep_online

%build
Expand All @@ -30,11 +30,10 @@ Packager: Owen Zimmerman <[email protected]>


%files
%_bindir/magnetar
%_bindir/gravity
%license LICENSE
%doc README.md

%changelog
* Wed Sep 11 2024 Owen-sz <[email protected]>
- Package StardustXR magnetar

- Package StardustXR gravity
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rpm.global("commit", gh_commit("StardustXR/magnetar"));
rpm.global("commit", gh_commit("StardustXR/gravity"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
Expand Down

0 comments on commit 212a9b3

Please sign in to comment.