%if 0%{!?mkrel:1} %define mkrel(c) %{1}%{?dist} %endif Name: notmuchfs Version: 0.5 Release: %mkrel 1 Summary: A virtual maildir file system for notmuch queries Group: Applications/Internet License: GPLv3 URL: https://github.com/tsto/notmuchfs/ # Doesn't Tag Releases # git archive --format=tar --prefix=notmuchfs-0.5/ HEAD | xz > notmuchfs-0.5.tar.xz Source0: https://github.com/tsto/notmuchfs/archive/%{version}.tar.xz#/%{name}-%{version}.tar.xz BuildRequires: pkgconfig BuildRequires: make BuildRequires: gcc BuildRequires: pkgconfig(fuse) >= 2.6 BuildRequires: notmuch-devel >= 0.32 Recommends: mutt %description Notmuchfs implements a virtual file system which creates maildirs from notmuch mail query results. This is useful for using notmuch with tools which are not aware of notmuch, only maildirs - such as mutt. %prep %autosetup -p1 %build # Use pkg-config to get the proper build flags for fuse sed -e 's/^LIBS\s*=.\+$/LIBS = $(shell pkg-config --libs fuse) -lnotmuch/' -e 's/^\(CFLAGS.\+\)/\1 $(shell pkg-config --cflags fuse)/g' -i Makefile %make_build %install install -d %{buildroot}%{_bindir} install -Dm755 notmuchfs mutt/bin/{notmuch_tag,prompt_mkdir} %{buildroot}%{_bindir} %files %doc ISSUES README.md README.MUTT.md %license COPYING COPYING-GPL-3 %{_bindir}/