Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[f38] add: espanso-wayland espanso-x11 (#1098) #1099

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions anda/tools/espanso-wayland/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "espanso-wayland.spec"
}
}
42 changes: 42 additions & 0 deletions anda/tools/espanso-wayland/espanso-wayland.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Name: espanso-wayland
Version: 2.2.1
Release: 1%?dist
Summary: Cross-platform Text Expander written in Rust for Wayland
License: GPL-3.0
URL: https://espanso.org
Source0: https://github.com/espanso/espanso/archive/refs/tags/v%version.tar.gz
Requires: libxkbcommon dbus libnotify wxGTK wl-clipboard
Conflicts: espanso-x11
BuildRequires: anda-srpm-macros cargo-rpm-macros gcc gcc-c++
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: wxGTK-devel

%description
A cross-platform Text Expander written in Rust. A text expander is a program
that detects when you type a specific keyword and replaces it with something
else.

This package includes the Wayland version of espanso.


%prep
%autosetup -n espanso-%version
cd espanso
%cargo_prep_online

%build
cd espanso
#cargo_build -n -f vendored-tls -f wayland

%install
cd espanso
%cargo_install -n -f vendored-tls -f wayland

%files
%_bindir/espanso

%changelog
%autochangelog
1 change: 1 addition & 0 deletions anda/tools/espanso-wayland/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("espanso/espanso"));
5 changes: 5 additions & 0 deletions anda/tools/espanso-x11/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "espanso-x11.spec"
}
}
42 changes: 42 additions & 0 deletions anda/tools/espanso-x11/espanso-x11.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Name: espanso-x11
Version: 2.2.1
Release: 1%?dist
Summary: Cross-platform Text Expander written in Rust for X11
License: GPL-3.0
URL: https://espanso.org
Source0: https://github.com/espanso/espanso/archive/refs/tags/v%version.tar.gz
Requires: libxkbcommon dbus libnotify wxGTK xdotool xclip libxcb
Conflicts: espanso-wayland
BuildRequires: anda-srpm-macros cargo-rpm-macros gcc gcc-c++
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: wxGTK-devel

%description
A cross-platform Text Expander written in Rust. A text expander is a program
that detects when you type a specific keyword and replaces it with something
else.

This package includes the X11 version of espanso.


%prep
%autosetup -n espanso-%version
cd espanso
%cargo_prep_online

%build
cd espanso
#cargo_build -n -f vendored-tls

%install
cd espanso
%cargo_install -n -f vendored-tls

%files
%_bindir/espanso

%changelog
%autochangelog
1 change: 1 addition & 0 deletions anda/tools/espanso-x11/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("espanso/espanso"));
Loading