diff --git a/_service b/_service
index fd52965..ec4b349 100644
--- a/_service
+++ b/_service
@@ -3,8 +3,8 @@
https://github.com/pop-os/cosmic-session.git
git
- master
- 0.1.0+git%cd.%h
+ @PARENT_TAG@
+ 1.0.0.a1
yes
diff --git a/cosmic-session-0.1.0+git20240715.577a181.tar.zst b/cosmic-session-0.1.0+git20240715.577a181.tar.zst
deleted file mode 100644
index 920d6cf..0000000
--- a/cosmic-session-0.1.0+git20240715.577a181.tar.zst
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:914976c1a344178f41aa77d372fbf2b0056b8255ca9b8d537d1840a22cdd1db0
-size 172965
diff --git a/cosmic-session-1.0.0.a1.tar.zst b/cosmic-session-1.0.0.a1.tar.zst
new file mode 100644
index 0000000..895990b
--- /dev/null
+++ b/cosmic-session-1.0.0.a1.tar.zst
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0870b9a68028df82b51ceb74024be8c4ea2254a2116dc248a17e3507b179ad6f
+size 173903
diff --git a/cosmic-session.changes b/cosmic-session.changes
index 8170974..cc3ef67 100644
--- a/cosmic-session.changes
+++ b/cosmic-session.changes
@@ -1,3 +1,10 @@
+-------------------------------------------------------------------
+Wed Aug 7 01:50:31 UTC 2024 - Richard Rahl
+
+- update to 1.0.0-alpha1:
+ * Depend on switcheroo-control
+- enable leap (thanks to vyvir)
+
-------------------------------------------------------------------
Thu Mar 14 02:36:04 UTC 2024 - Richard Rahl
diff --git a/cosmic-session.spec b/cosmic-session.spec
index d0eb075..f5bb299 100644
--- a/cosmic-session.spec
+++ b/cosmic-session.spec
@@ -17,21 +17,26 @@
Name: cosmic-session
-Version: 0.1.0+git20240715.577a181
+Version: 1.0.0.a1
Release: 0
Summary: Session manager for the COSMIC desktop environment
License: GPL-3.0-only
URL: https://github.com/pop-os/cosmic-session
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
+Patch0: leap-fix-libexec.patch
BuildRequires: cargo-packaging
BuildRequires: just
+Requires: switcheroo-control
%description
%{summary}.
%prep
-%autosetup -p1 -a1
+%autosetup -N -a1
+%if 0%{?suse_version} < 1600
+%autopatch -p0
+%endif
%build
just build
diff --git a/leap-fix-libexec.patch b/leap-fix-libexec.patch
new file mode 100644
index 0000000..1999bf4
--- /dev/null
+++ b/leap-fix-libexec.patch
@@ -0,0 +1,11 @@
+--- ./Justfile.orig 2024-07-29 21:04:43.186719834 +0300
++++ ./Justfile 2024-07-29 21:05:22.143729145 +0300
+@@ -9,7 +9,7 @@ target := if debug == '1' { 'debug' } el
+ vendor_args := if vendor == '1' { '--frozen --offline' } else { '' }
+ debug_args := if debug == '1' { '' } else { '--release' }
+ cargo_args := vendor_args + ' ' + debug_args
+-xdp_cosmic := '/usr/libexec/xdg-desktop-portal-cosmic'
++xdp_cosmic := '/usr/lib/xdg-desktop-portal-cosmic'
+
+ bindir := prefix + '/bin'
+ systemddir := prefix + '/lib/systemd/user'