%global commit c882c106cca5f1a3925e627ef071754604dd615b %global date 20200223 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global binname notmuch-addrlookup %global debug_package %{nil} Summary: Address book like completion tool for notmuch Name: notmuch-addrlookup-c Version: 10 Release: 0%{?commit:.%{date}git%{shortcommit}}%{?dist} License: MIT URL: https://github.com/aperezdc/%{name}/ Source: https://github.com/aperezdc/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Patch0: %{name}-cfg-path.patch BuildArch: x86_64 BuildRequires: gcc, make, glib2-devel, notmuch-devel Requires: glib, notmuch %description Address lookup tool similar to the addrlookup one found in the (apparently unmaintained) Vala Notmuch binding, using the Notmuch database as source %prep %setup -q -n %{name}-%{commit} %patch0 -p1 %build make %{_smp_mflags} %install mkdir -p %{buildroot}/%{_bindir} install -m 0755 %{binname} %{buildroot}/%{_bindir}/%{binname} %clean rm -rf %{buildroot} %files %license README.md %doc README.md %{_bindir}/%{binname} %changelog * Mon Nov 16 2020 Paolo Valerio - v10-0.20200223gitc882c10 - Initial specfile