Name: nomadfs Version: 0.1 Release: 2 Summary: Hashicorp Consul FUSE Agent License: GPL+ Source0: https://github.com/jboero/hashifuse/archive/master.zip Requires(post): libcurl fuse jsoncpp BuildRequires: gcc-c++ libcurl-devel fuse-devel jsoncpp-devel URL: https://www.consul.io/ %description FUSE filesystem for browsing and managing Nomad resources as files. Community project not supported by Hashicorp. %prep %autosetup -c %{name}-%{version} %build cd hashifuse-master/NomadFS g++ -g -o %{name} $CFLAGS -D_FILE_OFFSET_BITS=64 -std=c++11 -lfuse -ljsoncpp -lcurl main.cpp %install mkdir -p %{buildroot}%{_bindir}/ cp -p hashifuse-master/NomadFS/%{name} %{buildroot}%{_bindir}/ %clean rm -rf %{buildroot} rm -rf %{_builddir}/* %files %{_bindir}/%{name} %changelog