Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37399123
en ru br
Репозитории ALT
S:0-alt3.git4bf1acb
www.altlinux.org/Changes

Группа :: Графические оболочки/Прочее
Пакет: cosmic-comp

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: cosmic-comp
Version: 0
Release: alt3.git4bf1acb

Summary: Wayland compositor for the COSMIC DE

License: GPL-3.0+
Group: Graphical desktop/Other
Url: https://github.com/pop-os/cosmic-comp

Source: %url/archive/%version/%name-%version.tar.gz
Source1: vendor.tar

ExcludeArch: armh i586 ppc64le

BuildPreReq: rpm-build-rust
BuildRequires: /proc gcc-c++ cmake
BuildRequires: libudev-devel libEGL-mesa libGL-devel libgbm-devel libinput-devel libxcb-devel libxkbcommon-devel libsystemd-devel libseat1-devel fontconfig-devel

%description
%summary.

%prep
%setup
# Unpacked vendor/ into the source (used .gear/tags).
tar -xf %SOURCE1

mkdir -p .cargo
cat >> .cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source."git+https://github.com/Drakulix/id-tree.git?branch=feature/copy_clone"]
git = "https://github.com/Drakulix/id-tree.git"
branch = "feature/copy_clone"
replace-with = "vendored-sources"

[source."git+https://github.com/Smithay/smithay-egui.git?rev=0a4d573"]
git = "https://github.com/Smithay/smithay-egui.git"
rev = "0a4d573"
replace-with = "vendored-sources"

[source."git+https://github.com/edfloreshz/directories-rs"]
git = "https://github.com/edfloreshz/directories-rs"
replace-with = "vendored-sources"

[source."git+https://github.com/hecrj/cosmic-text.git?rev=b85d6a4f2376f8a8a7dadc0f8bcb89d4db10a1c9"]
git = "https://github.com/hecrj/cosmic-text.git"
rev = "b85d6a4f2376f8a8a7dadc0f8bcb89d4db10a1c9"
replace-with = "vendored-sources"

[source."git+https://github.com/hecrj/glyphon.git?rev=26f92369da3704988e3e27f0b35e705c6b2de203"]
git = "https://github.com/hecrj/glyphon.git"
rev = "26f92369da3704988e3e27f0b35e705c6b2de203"
replace-with = "vendored-sources"

[source."git+https://github.com/ids1024/smithay?branch=xwayland-keyboard-grab"]
git = "https://github.com/ids1024/smithay"
branch = "xwayland-keyboard-grab"
replace-with = "vendored-sources"

[source."git+https://github.com/pop-os/cosmic-protocols?branch=main"]
git = "https://github.com/pop-os/cosmic-protocols"
branch = "main"
replace-with = "vendored-sources"

[source."git+https://github.com/pop-os/libcosmic/?rev=42d7baf"]
git = "https://github.com/pop-os/libcosmic/"
rev = "42d7baf"
replace-with = "vendored-sources"

[source."git+https://github.com/pop-os/softbuffer?tag=cosmic-2.0-old"]
git = "https://github.com/pop-os/softbuffer"
tag = "cosmic-2.0-old"
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

[term]
verbose = true
quiet = false

[install]
root = "%buildroot%_prefix"

[build]
rustflags = ["-Copt-level=3", "-Cdebuginfo=1"]

[profile.release]
strip = false
EOF

%build
%make_build

%install
%makeinstall_std

install -Dm0644 "data/cosmic.desktop" "%buildroot%_datadir/wayland-sessions/cosmic.desktop"
install -Dm0644 "data/cosmic-session.target" "%buildroot%_prefix/lib/systemd/user/cosmic-session.target"
install -Dm0644 "data/cosmic-session-pre.target" "%buildroot%_prefix/lib/systemd/user/cosmic-session-pre.target"
install -Dm0644 "data/cosmic-comp.service" "%buildroot%_prefix/lib/systemd/user/cosmic-comp.service"
install -Dm0755 "data/cosmic-service" "%buildroot%_bindir/cosmic-service"

%files
%doc LICENSE
%_bindir/*
%_datadir/wayland-sessions/cosmic.desktop
%_prefix/lib/systemd/user/cosmic-session.target
%_prefix/lib/systemd/user/cosmic-session-pre.target
%_prefix/lib/systemd/user/cosmic-comp.service

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin