Skip to content

Commit

Permalink
MNT: Add RPM spec
Browse files Browse the repository at this point in the history
Co-authored-by: Jaka Hudoklin <[email protected]>
  • Loading branch information
kernc and offlinehacker committed Dec 19, 2024
1 parent b695b8a commit ef583d0
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions packaging/copr-rpm.spec
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

0 comments on commit ef583d0

Please sign in to comment.