Accepting request 1192458 from X11:COSMIC:Factory

- standardize packaging with also fixes for miscellaneous hardcoding
  filenames, using @PARENT_TAG where applicable, and be more specific
  with files in the %files section (so no non-wanted files are getting
  added

- update to 1.0.0~alpha1:
  * Fix compile warnings
  * Add scrolling for list of toplevels
  * Hover and selected styles for outputs in screencast dialog
  * Use custom widget instead of global subscription for keybindings
  * screencopy: Respect source_type option
  * Allow multiple select for screencast only when requested
  * Arrange screen capture outputs horiozontally
  * Display name of application requiring screen capture
  * Show preview of outputs in screencast dialog
  * Show toplevel icons in screencast dialog
  * Fix button text color
- enable leap with patch leap-fix-libexec.patch (thanks to vyvir)

OBS-URL: https://build.opensuse.org/request/show/1192458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xdg-desktop-portal-cosmic?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2024-08-12 10:30:20 +00:00 committed by Git OBS Bridge
commit d80cc7f402
7 changed files with 53 additions and 11 deletions

View File

@ -3,9 +3,11 @@
<service name="tar_scm" mode="manual">
<param name="url">https://github.com/pop-os/xdg-desktop-portal-cosmic.git</param>
<param name="scm">git</param>
<param name="revision">master</param>
<param name="versionformat">0.1.0+git%cd.%h</param>
<param name="revision">refs/tags/epoch-1.0.0-alpha.1</param>
<param name="versionrewrite-pattern">epoch-(.*)</param>
<param name="versionformat">1.0.0~alpha1</param>
<param name="package-meta">yes</param>
<param name="filename">xdg-desktop-portal-cosmic</param>
</service>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>

11
leap-fix-libexec.patch Normal file
View File

@ -0,0 +1,11 @@
--- Makefile.orig 2024-07-29 19:11:10.189698162 +0300
+++ Makefile 2024-07-29 19:12:48.420183313 +0300
@@ -1,7 +1,7 @@
prefix ?= /usr/local
bindir = $(prefix)/bin
libdir = $(prefix)/lib
-libexecdir = $(prefix)/libexec
+libexecdir = $(prefix)/lib
includedir = $(prefix)/include
datarootdir = $(prefix)/share
datadir = $(datarootdir)

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a7694dbe3c9fc0795741c65da0cacb5e2549fa77e5c79de185eed2052418152e
size 93051170
oid sha256:605fe19af864abd5f75a18e938af95fea28c0884d27d42e308829444f5eee116
size 99876144

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:12abe745a0dabf23b78313cce6bc30ef41d34a9c354fcf685e69b8262c4cce3b
size 279031

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bf049122aa1ebed539de093b8ec8891b2a4cf9805df199ac973a3f470bad1278
size 297603

View File

@ -1,3 +1,28 @@
-------------------------------------------------------------------
Thu Aug 8 01:01:29 UTC 2024 - Richard Rahl <rrahl0@opensuse.org>
- standardize packaging with also fixes for miscellaneous hardcoding
filenames, using @PARENT_TAG where applicable, and be more specific
with files in the %files section (so no non-wanted files are getting
added
-------------------------------------------------------------------
Wed Aug 7 02:12:58 UTC 2024 - Richard Rahl <rrahl0@opensuse.org>
- update to 1.0.0~alpha1:
* Fix compile warnings
* Add scrolling for list of toplevels
* Hover and selected styles for outputs in screencast dialog
* Use custom widget instead of global subscription for keybindings
* screencopy: Respect source_type option
* Allow multiple select for screencast only when requested
* Arrange screen capture outputs horiozontally
* Display name of application requiring screen capture
* Show preview of outputs in screencast dialog
* Show toplevel icons in screencast dialog
* Fix button text color
- enable leap with patch leap-fix-libexec.patch (thanks to vyvir)
-------------------------------------------------------------------
Sat Jul 06 17:07:55 UTC 2024 - Joshua Smith <smolsheep@opensuse.org>

View File

@ -17,13 +17,14 @@
Name: xdg-desktop-portal-cosmic
Version: 0.1.0+git20240717.813352e
Version: 1.0.0~alpha1
Release: 0
Summary: COSMIC xdg portal
License: GPL-3.0-only
URL: https://github.com/pop-os/xdg-desktop-portal-cosmic
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
Patch0: leap-fix-libexec.patch
BuildRequires: cargo-packaging
BuildRequires: clang-devel
BuildRequires: git-core
@ -43,13 +44,16 @@ BuildRequires: pkgconfig(xkbcommon)
This package contains the xdg portal implementation for COSMIC DE.
%prep
%autosetup -a1
%autosetup -N -a1
%if 0%{?suse_version} < 1600
%autopatch -p0
%endif
%build
%make_build
%install
%make_install prefix=%{_prefix}
%make_install DESTDIR=%{buildroot} prefix=%{_prefix}
%check
%{cargo_test}
@ -57,7 +61,7 @@ This package contains the xdg portal implementation for COSMIC DE.
%files
%license LICENSE
%{_libexecdir}/%{name}
%{_iconsdir}/hicolor/scalable/actions/*.svg
%{_datadir}/icons/hicolor/scalable/actions/{screenshot-screen-symbolic,screenshot-selection-symbolic,screenshot-window-symbolic}.svg
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.cosmic.service
%{_datadir}/xdg-desktop-portal/cosmic-portals.conf
%{_datadir}/xdg-desktop-portal/portals/cosmic.portal