%define exagrid_release .exagrid26
Name: s3fs
Version: 1.82.0.git20170605
Release: 1%{?dist}.0%{?exagrid_release}
Epoch: 1
Summary: FUSE-based file system backed by Amazon S3
Group: System Environment/Base
License: GPLv2

BuildRequires: fuse3-devel
BuildRequires: libcurl-upstream-devel
BuildRequires: libxml2-devel

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

URL: git://git.eng.local/exagrid/s3fs-fuse.git
Source: %{name}-%{version}.tar.gz

Requires: fuse3

%description

s3fs allows Linux and Mac OS X to mount an S3 bucket via FUSE. s3fs
preserves the native object format for files, allowing use of other
tools like s3cmd.

%prep
%setup -q

%build
export PKG_CONFIG="pkg-config --static"
export PKG_CONFIG_PATH="/usr/local/usr/lib64/pkgconfig"
./autogen.sh
%configure
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install

%clean
rm -fr %{buildroot}

%post

%postun

%files
%defattr(-,root,root)
/usr/bin/s3fs
%doc /usr/share/man/man1/s3fs.1.gz
