The package rpms/cosmic-session.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/cosmic-session.git/commit/?id=43860f....
Change: +ExcludeArch: %{ix86}
Thanks.
Full change: ============
commit 43860fb3904778909b6545200e32de009f241289 Author: Ryan Brue ryanbrue.dev@gmail.com Date: Sun Sep 29 20:48:32 2024 -0500
Initial import (1.0.0~alpha.2)
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2956669 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/cosmic-session-d06f94a.tar.gz +/vendor-d06f94a.tar.gz diff --git a/cosmic-session.spec b/cosmic-session.spec new file mode 100644 index 0000000..dc10fd3 --- /dev/null +++ b/cosmic-session.spec @@ -0,0 +1,115 @@ +ExcludeArch: %{ix86} +# Generated by rust2rpm 26 +%bcond_without check + + +%global crate cosmic-session + + +%global commit d06f94a8a01c47b01e0b490c98e0f6d7242ceadd +%global shortcommit %{sub %{commit} 1 7} +%global commitdatestring 2024-09-17 10:06:12 -0600 +%global commitdate 20240917 + +Name: cosmic-session +Version: 1.0.0~alpha.2 +Release: %autorelease +Summary: Session manager for the COSMIC desktop environment + +License: (MIT OR Apache-2.0) AND Zlib AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (MIT OR Zlib OR Apache-2.0) AND GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND MIT AND BSD-3-Clause AND (Zlib OR Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT) AND (Unlicense OR MIT) AND Apache-2.0 AND (Apache-2.0 OR BSD-3-Clause) AND MPL-2.0 + +URL: https://github.com/pop-os/cosmic-session + +Source0: https://github.com/pop-os/cosmic-session/archive/%%7Bcommit%7D/cosmic-sessio... +# To create the below sources: +# * git clone https://github.com/pop-os/cosmic-session at the specified commit +# * cargo vendor > vendor-config-%%{shortcommit}.toml +# * tar -pczf vendor-%%{shortcommit}.tar.gz vendor +Source1: vendor-%{shortcommit}.tar.gz +# * mv vendor-config-%%{shortcommit}.toml .. +Source2: vendor-config-%{shortcommit}.toml + +BuildRequires: cargo-rpm-macros >= 26 +BuildRequires: rustc +BuildRequires: lld +BuildRequires: cargo +BuildRequires: just +BuildRequires: desktop-file-utils + +BuildRequires: systemd-rpm-macros + +Requires: cosmic-app-library >= 1.0.0~alpha.2 +Requires: cosmic-applets >= 1.0.0~alpha.2 +Requires: cosmic-bg >= 1.0.0~alpha.2 +Requires: cosmic-comp >= 1.0.0~alpha.2 +Requires: cosmic-greeter >= 1.0.0~alpha.2 +Requires: cosmic-icons >= 1.0.0~alpha.2 +Requires: cosmic-launcher >= 1.0.0~alpha.2 +Requires: cosmic-notifications >= 1.0.0~alpha.2 +Requires: cosmic-osd >= 1.0.0~alpha.2 +Requires: cosmic-panel >= 1.0.0~alpha.2 +Requires: cosmic-randr >= 1.0.0~alpha.2 +Requires: cosmic-screenshot >= 1.0.0~alpha.2 +Requires: cosmic-settings >= 1.0.0~alpha.2 +Requires: cosmic-settings-daemon >= 1.0.0~alpha.2 +Requires: cosmic-workspaces >= 1.0.0~alpha.2 +Requires: mozilla-fira-mono-fonts +Requires: mozilla-fira-sans-fonts +Requires: xdg-desktop-portal-cosmic >= 1.0.0~alpha.2 +Requires: xorg-x11-server-Xwayland + +%global _description %{expand: +The session manager for the COSMIC desktop environment.} + +%description %{_description} + +%prep +%autosetup -n %{crate}-%{commit} -p1 -a1 +%cargo_prep -N +# Check if .cargo/config.toml exists +if [ -f .cargo/config.toml ]; then + # If it exists, append the contents of %%{SOURCE2} to .cargo/config.toml + cat %{SOURCE2} >> .cargo/config.toml + echo "Appended %{SOURCE2} to .cargo/config.toml" +else + # If it does not exist, append the contents of %%{SOURCE2} to .cargo/config + cat %{SOURCE2} >> .cargo/config + echo "Appended %{SOURCE2} to .cargo/config" +fi + +%build +# Set vergen environment variables +export VERGEN_GIT_COMMIT_DATE="date --utc '%{commitdatestring}'" +export VERGEN_GIT_SHA="%{commit}" +%cargo_build +%{cargo_license_summary} +%{cargo_license} > LICENSE.dependencies +%{cargo_vendor_manifest} +sed 's/(.*) (.*#(.*))/\1+git\2/' -i cargo-vendor.txt + +%install +# Set vergen environment variables +export VERGEN_GIT_COMMIT_DATE="date --utc '%{commitdatestring}'" +export VERGEN_GIT_SHA="%{commit}" +just rootdir=%{buildroot} install + +%if %{with check} +%check +# Set vergen environment variables +export VERGEN_GIT_COMMIT_DATE="date --utc '%{commitdatestring}'" +export VERGEN_GIT_SHA="%{commit}" +%cargo_test +%endif + +%files +%license LICENSE.md +%license LICENSE.dependencies +%license cargo-vendor.txt +%{_bindir}/cosmic-session +%{_bindir}/start-cosmic +%{_userunitdir}/cosmic-session.target +%{_datadir}/wayland-sessions/cosmic.desktop +%{_datadir}/applications/cosmic-mimeapps.list + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..e82de47 --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (cosmic-session-d06f94a.tar.gz) = 28bf58d34152d0c4a4e27ef823ebb21bf52f2580a637c7d44a7ffb9b422807b5586cd6f92f49aef613bde0b1e9b8cc75abf68f65ebb8f08636b91809609444a4 +SHA512 (vendor-d06f94a.tar.gz) = d2906d4100dc32112d11aac649c7e64e8155caf727f8eb5afc5c2b9ed350794925c575e587092fed207c85ac9eb91193daaf025e79f9b0b9f64b5d8173a46560 diff --git a/vendor-config-d06f94a.toml b/vendor-config-d06f94a.toml new file mode 100644 index 0000000..2bd3304 --- /dev/null +++ b/vendor-config-d06f94a.toml @@ -0,0 +1,13 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source."git+https://github.com/pop-os/cosmic-notifications"] +git = "https://github.com/pop-os/cosmic-notifications" +replace-with = "vendored-sources" + +[source."git+https://github.com/pop-os/launch-pad"] +git = "https://github.com/pop-os/launch-pad" +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor"
arch-excludes@lists.fedoraproject.org