%define checkout 20190208 %define gh_commit 0390a4e79938bec53ac8a6e252737e6bcd29aa71 %define gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global debug_package %{nil} Name: irssi-fish Version: 1.6 Release: 0.1.%{checkout}git%{gh_short}%{?dist} Summary: Off-The-Record Messaging plugin for irssi Group: Applications/Internet # https://github.com/falsovsky/FiSH-irssi/issues/9 License: CC0 URL: https://github.com/falsovsky/FiSH-irssi/ Source: https://github.com/falsovsky/FiSH-irssi/archive/%{gh_commit}.zip Provides: fish-irssi = %{version}-%{release} Requires: irssi BuildRequires: glib2-devel BuildRequires: irssi-devel BuildRequires: pkgconfig(openssl) BuildRequires: cmake BuildRequires: gcc %description This is an encryption add-on for irssi, it's based on blowfish. It supports private messages and channel encryption. It also includes a secure key-exchange system. %prep %setup -q -n FiSH-irssi-%{gh_commit} %build cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT #mv $RPM_BUILD_ROOT%{_exec_prefix}/lib $RPM_BUILD_ROOT%{_libdir} rm -rf $RPM_BUILD_ROOT%{_exec_prefix}/share chmod +x $RPM_BUILD_ROOT%{_libdir}/irssi/modules/libfish.so %files %doc README %{_libdir}/irssi/modules/libfish.so %changelog * Thu Feb 07 2019 mh - 1.6-0.1 update to latest release * Fri Jan 27 2017 mh - 1.4-1 initial package