## START: Set by rpmautospec
## (rpmautospec version 0.7.3)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
    release_number = 2;
    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
    print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec

Name:           bindfs
Version:        1.17.7
Release:        %autorelease
Summary:        Fuse filesystem to mirror a directory
License:        GPLv2+
URL:            http://bindfs.org/
Source0:        http://bindfs.org/downloads//bindfs-%{version}.tar.gz
BuildRequires:  fuse-devel
BuildRequires:  gcc
BuildRequires:  make
# for test suite
BuildRequires:  ruby(release)
BuildRequires:  rubygems-devel
BuildRequires:  ruby >= 3.0.0
BuildRequires:  valgrind
%if 0%{?fedora}
# Needed to mount bindfs via fstab
Recommends:     fuse
%else
Requires:     fuse
%endif

%description
Bindfs allows you to mirror a directory and also change the the permissions in
the mirror directory.

%prep
%autosetup

%build
%configure
%make_build

%install
%make_install

%check
# Tests are failing on Fedora 40+ so let's disable until further investigation
# Fedora's koji does not provide /dev/fuse, therefore skip the tests there
# Always cat log files on failure to be able to debug issues
# Disabled tests on ppc64le until upstream fixes https://github.com/mpartel/bindfs/issues/55
# %ifnarch ppc64le
# if [ -e /dev/fuse ]; then
#    make check || (cat tests/test-suite.log tests/internals/test-suite.log; false)
# else
   # internal tests use valgrind and should work
#    make -C tests/internals/ check || (cat tests/internals/test-suite.log; false)
# fi
# %endif

%files
%doc ChangeLog README.md
%license COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

%changelog
## START: Generated by rpmautospec
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild

* Wed Jul 17 2024 Filipe Rosset <rosset.filipe@gmail.com> - 1.17.7-1
- update to 1.17.7

* Wed Jul 17 2024 Filipe Rosset <rosset.filipe@gmail.com> - 1.17.4-5
- disable tests (due ruby errors) for F40+ until further investigation

* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Sat Jul 29 2023 Filipe Rosset <rosset.filipe@gmail.com> - 1.17.4-1
- Update to 1.17.4 fixes rhbz#2212038

* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

* Mon Feb 13 2023 Filipe Rosset <rosset.filipe@gmail.com> - 1.17.2-1
- Update to 1.17.2 fixes rhbz#2168084

* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

* Tue Oct 18 2022 Filipe Rosset <rosset.filipe@gmail.com> - 1.17.1-1
- Update to 1.17.1 fixes rhbz#2135234

* Fri Aug 19 2022 Filipe Rosset <rosset.filipe@gmail.com> - 1.17.0-1
- Update to 1.17.0 fixes rhbz#2098359

* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Mon Feb 15 2021 Filipe Rosset <rosset.filipe@gmail.com> - 1.15.1-1
- Update to 1.15.1 fixes rhbz#1928592

* Sun Feb 14 2021 Filipe Rosset <rosset.filipe@gmail.com> - 1.15.0-1
- Update to 1.15.0 fixes rhbz#1928443

* Tue Jan 26 2021 Filipe Rosset <rosset.filipe@gmail.com> - 1.14.9-1
- Update to 1.14.9 fixes rhbz#1920076

* Wed Dec 30 2020 Filipe Rosset <rosset.filipe@gmail.com> - 1.14.8-1
- Update to 1.14.8 fixes rhbz#1882128

* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.7-3
- Second attempt - Rebuilt for
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Mon May 18 2020 Filipe Rosset <rosset.filipe@gmail.com> - 1.14.7-1
- Update to 1.14.7 fixes rhbz#1833820

* Mon Apr 13 2020 Filipe Rosset <rosset.filipe@gmail.com> - 1.14.5-1
- Update to 1.14.5 fixes rhbz#1815902

* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Mon Jan 20 2020 Filipe Rosset <rosset.filipe@gmail.com> - 1.14.3-1
- Update to 1.14.3 fixes rhbz#1785834

* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Sun Jun 30 2019 Filipe Rosset <rosset.filipe@gmail.com> - 1.14.1-1
- update to new version 1.14.1 fixes rhbz #1724097
- Resolve symlinks in readdir() so correct attributes are returned (issue #76).

* Mon May 13 2019 Filipe Rosset <rosset.filipe@gmail.com> - 1.14.0-1
- update to new version 1.14.0 fixes rhbz #1704214
- ChangeLog https://bindfs.org/docs/ChangeLog.utf8.txt

* Sun Mar 31 2019 Filipe Rosset <rosset.filipe@gmail.com> - 1.13.11-1
- update to new version 1.13.11 fixes rhbz #1694427

* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Sat Oct 20 2018 Filipe Rosset <rosset.filipe@gmail.com> - 1.13.10-1
- update to new version 1.13.10

* Sun Sep 09 2018 Filipe Rosset <rosset.filipe@gmail.com> - 1.13.9-3
- rebuilt to fix FTBFS on rawhide, fixes rhbz #1603487

* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Tue Apr 10 2018 Filipe Rosset <rosset.filipe@gmail.com> - 1.13.9-1
- update to new version 1.13.9 + spec cleanup / modernization

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Fri Nov 03 2017 Till Maas <opensource@till.name> - 1.13.8-1
- Update to new version
- Fixes nested fuse mounts: https://github.com/mpartel/bindfs/issues/54
- Disable tests only on ppc64le

* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sat Jun 17 2017 Filipe Rosset <rosset.filipe@gmail.com> - 1.13.7-1
- Rebuilt for new upstream release, spec cleanup, fixes rhbz#1423275
- disabled tests until upstream fixes https://github.com/mpartel/bindfs/issues/55

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Thu Jan 05 2017 Till Maas <opensource@till.name> - 1.13.5-3
- Use Required for fuse on EPEL

* Thu Jan 05 2017 Till Maas <opensource@till.name> - 1.13.5-2
- Use Recommends: only for Fedora

* Thu Jan 05 2017 Till Maas <opensource@till.name> - 1.13.5-1
- Update to new release

* Fri Apr 08 2016 Till Maas <opensource@till.name> - 1.13.1-2
- Add recommendation for fuse (https://bugzilla.redhat.com/1320272)

* Mon Feb 22 2016 Till Maas <opensource@till.name> - 1.13.1-1
- Update to new release
- cleanup spec

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Sun Nov 15 2015 Till Maas <opensource@till.name> - 1.13.0-1
- Update to new release
- Use %%license
- Add testsuite

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Mon Nov 03 2014 Till Maas <opensource@till.name> - 1.12.6-1
- Update to new release

* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Thu Jun 05 2014 Till Maas <opensource@till.name> - 1.12.4-1
- Update to new release

* Wed Jan 15 2014 Till Maas <opensource@till.name> - 1.12.3-1
- Update to new release
- Harden build

* Thu Jul 25 2013 Till Maas <opensource@till.name> - 1.12.2-1
- Update to new release
- Update URL
- Update source URL

* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Sep 26 2012 Till Maas <opensource@till.name> - 1.11-1
- Update to new release
- Do not recode ChangeLog anymore

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Tue Mar 13 2012 Till Maas <opensource@till.name> - 1.10-1
- Update to new release

* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Thu Sep 17 2009 Peter Lemenkov <lemenkov@gmail.com> - 1.8.3-3
- Rebuilt with new fuse

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Mon Apr 13 2009 Till Maas <opensource@till.name> - 1.8.3-1
- Update to new upstream release

* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sun Dec 14 2008 Till Maas <opensource@till.name> - 1.8.2-2
- Update URL and Source0 to google code

* Sun Dec 14 2008 Till Maas <opensource@till.name> - 1.8.2-1
- Update to new release with GPLv2+ license headers 

* Fri Dec 12 2008 Till Maas <opensource@till.name> - 1.8.1-2
- Skip Requires: fuse
- Preseve timestamp of manpage with install -p in %%configure

* Fri Dec 12 2008 Till Maas <opensource@till.name> - 1.8.1-1
- Update to new release

* Wed Oct 29 2008 Till Maas <opensource@till.name> - 1.8-2
- Convert ChangeLog to UTF8

* Wed Oct 29 2008 Till Maas <opensource@till.name> - 1.8-1
- Update to new release

* Fri Oct 05 2007 Till Maas <opensource till name> - 1.3-1
- initial spec for Fedora

## END: Generated by rpmautospec