-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Jaka Hudoklin <[email protected]>
- Loading branch information
1 parent
b695b8a
commit ef583d0
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
%global app_name efck-chat-keyboard | ||
%global app_version $(git describe --tags) | ||
%global module_name efck | ||
|
||
Name: %{app_name} | ||
Version: %{app_version} | ||
Release: 1%{?dist} | ||
Summary: Emoji filter / Unicode chat keyboard | ||
License: AGPLv3 | ||
URL: https://efck-chat-keyboard.github.io | ||
BugURL: https://github.com/efck-chat-keyboard/efck | ||
|
||
BuildArch: noarch | ||
BuildRequires: python3-devel | ||
|
||
%global _description %{expand: | ||
A Qt GUI utility that pops up a dialog with tabs for: | ||
emoji filtering / selection, text to Unicode transformation, | ||
GIF meme selection etc. (extensible). | ||
Upon activation, it 'pastes' your selection into the previously active | ||
(focused) window, such as a web browser or a desktop chat app or similar.} | ||
|
||
%description %_description | ||
|
||
|
||
%package -n %{app_name} | ||
Summary: %{summary} | ||
|
||
%py_provides python3-%{module_name} | ||
|
||
Requires: (python3-pyqt6 or python3-qt5) | ||
Requires: google-noto-emoji-color-fonts | ||
Recommends: xdotool if xorg-x11-server-Xorg | ||
Recommends: ydotool | ||
Recommends: python3dist(unicodedata2) | ||
|
||
%description -n %{app_name} %_description | ||
|
||
%prep | ||
%autosetup -n %{app_name}-%{version} | ||
|
||
%generate_buildrequires | ||
%pyproject_buildrequires | ||
|
||
%build | ||
%pyproject_wheel | ||
|
||
%install | ||
%pyproject_install | ||
%pyproject_save_files efck+auto | ||
install -Dm644 -t %{buildroot}%{_datadir}/applications/ packaging/debian/*.desktop | ||
install -Dm644 -t %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ packaging/debian/*.svg | ||
|
||
%files -n %{app_name} -f %{pyproject_files} | ||
%doc README.md | ||
%license LICENSE.txt | ||
%{_bindir}/%{app_name} | ||
%{_datadir}/applications/* | ||
%{_datadir}/icons/hicolor/scalable/apps/* | ||
|
||
%changelog | ||
* Fri Sep 30 2022 Jaka Hudoklin <[email protected]> - 1.0rc1-1 | ||
- initial package |