%{!?make_build: %global make_build make %{?_smp_mflags}} %{!?make_install: %global make_install make install DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p"} # fuse >= 3.4 is available from F28, and from RHEL6, but not yet in RHEL8 (d'uh) %if 0%{?fedora} >= 28 || (0%{?rhel} && 0%{?rhel} != 8) %global fuse_ver fuse3 %else %global fuse_ver fuse %endif ## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## 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.6 Release: 0%{?dist}.1sunshine Summary: Fuse filesystem to mirror a directory License: GPLv2+ URL: http://bindfs.org/ Source0: http://bindfs.org/downloads//bindfs-%{version}.tar.gz Patch0: bindfs-1.17.6-rubyrealpath.01.patch Patch1: bindfs-1.15.0-proc-symbol.patch Patch2: bindfs-1.15.0-rubytempfile.patch Patch3: bindfs-1.15.1-pedantic.patch BuildRequires: %{fuse_ver}-devel BuildRequires: gcc BuildRequires: make # for test suite BuildRequires: %{_bindir}/ruby BuildRequires: valgrind # Needed to mount bindfs via fstab %if 0%{?fedora} >= 21 Recommends: %{fuse_ver} %else Requires: %{fuse_ver} %endif %description Bindfs allows you to mirror a directory and also change the permissions in the mirror directory. %prep %if 0%{?autosetup} %autosetup %else %setup -q %(grep -E '^Patch[0-9]+:' %{_specdir}/%{name}.spec | sed -r 's/^P/%p/;s/:[ ]+/ -p1 -b ./;s/.patch$//') %endif %build %if 0%{?fedora} < 11 CFLAGS="$CFLAGS -D_ATFILE_SOURCE" %endif %configure %make_build %install %make_install %check # 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 %{!?_licensedir:%global license %%doc} %doc ChangeLog README.md %license COPYING %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Mon Mar 18 2024 Moritz Barsnick 1.17.6-0.1sunshine - update to 1.17.6 - reploace BR: ruby with %%{_bindir}/ruby due to rubypick introduction - use fuse3 conditionally for newer Fedoras and RHEL - make Recommends: tag conditional (Fedora >= 21, RHEL >= 8) - fix description - provide fallbacks for the %%autosetup, %%make_build, %%make_install and %%license macros - compile with "-D_ATFILE_SOURCE" for older Fedoras - add a patch for two occurences of "wrong argument type Symbol (expected Proc) (TypeError)" in the test suite - add a patch to remove various ruby-1.9 requirements in the testsuite - add a patch to use ruby's Tempfile.new instead of Tempfile.create - add a patch for an incompatible option for old gcc * Sat Jul 29 2023 Filipe Rosset - 1.17.4-1 - Update to 1.17.4 fixes rhbz#2212038 * Wed Jul 19 2023 Fedora Release Engineering - 1.17.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Feb 13 2023 Filipe Rosset - 1.17.2-1 - Update to 1.17.2 fixes rhbz#2168084 * Wed Jan 18 2023 Fedora Release Engineering - 1.17.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Oct 18 2022 Filipe Rosset - 1.17.1-1 - Update to 1.17.1 fixes rhbz#2135234 * Fri Aug 19 2022 Filipe Rosset - 1.17.0-1 - Update to 1.17.0 fixes rhbz#2098359 * Wed Jul 20 2022 Fedora Release Engineering - 1.15.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 1.15.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.15.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Feb 15 2021 Filipe Rosset - 1.15.1-1 - Update to 1.15.1 fixes rhbz#1928592 * Sun Feb 14 2021 Filipe Rosset - 1.15.0-1 - Update to 1.15.0 fixes rhbz#1928443 * Tue Jan 26 2021 Filipe Rosset - 1.14.9-1 - Update to 1.14.9 fixes rhbz#1920076 * Wed Dec 30 2020 Filipe Rosset - 1.14.8-1 - Update to 1.14.8 fixes rhbz#1882128 * Sat Aug 01 2020 Fedora Release Engineering - 1.14.7-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.14.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 18 2020 Filipe Rosset - 1.14.7-1 - Update to 1.14.7 fixes rhbz#1833820 * Mon Apr 13 2020 Filipe Rosset - 1.14.5-1 - Update to 1.14.5 fixes rhbz#1815902 * Tue Jan 28 2020 Fedora Release Engineering - 1.14.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Jan 20 2020 Filipe Rosset - 1.14.3-1 - Update to 1.14.3 fixes rhbz#1785834 * Wed Jul 24 2019 Fedora Release Engineering - 1.14.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Jun 30 2019 Filipe Rosset - 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 - 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 - 1.13.11-1 - update to new version 1.13.11 fixes rhbz #1694427 * Thu Jan 31 2019 Fedora Release Engineering - 1.13.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Oct 20 2018 Filipe Rosset - 1.13.10-1 - update to new version 1.13.10 * Sun Sep 09 2018 Filipe Rosset - 1.13.9-3 - rebuilt to fix FTBFS on rawhide, fixes rhbz #1603487 * Thu Jul 12 2018 Fedora Release Engineering - 1.13.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Apr 10 2018 Filipe Rosset - 1.13.9-1 - update to new version 1.13.9 + spec cleanup / modernization * Wed Feb 07 2018 Fedora Release Engineering - 1.13.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Nov 03 2017 Till Maas - 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 - 1.13.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.13.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Jun 17 2017 Filipe Rosset - 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 - 1.13.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jan 05 2017 Till Maas - 1.13.5-3 - Use Required for fuse on EPEL * Thu Jan 05 2017 Till Maas - 1.13.5-2 - Use Recommends: only for Fedora * Thu Jan 05 2017 Till Maas - 1.13.5-1 - Update to new release * Fri Apr 08 2016 Till Maas - 1.13.1-2 - Add recommendation for fuse (https://bugzilla.redhat.com/1320272) * Mon Feb 22 2016 Till Maas - 1.13.1-1 - Update to new release - cleanup spec * Wed Feb 03 2016 Fedora Release Engineering - 1.13.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Nov 15 2015 Till Maas - 1.13.0-1 - Update to new release - Use %%license - Add testsuite * Wed Jun 17 2015 Fedora Release Engineering - 1.12.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Nov 03 2014 Till Maas - 1.12.6-1 - Update to new release * Fri Aug 15 2014 Fedora Release Engineering - 1.12.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.12.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Jun 05 2014 Till Maas - 1.12.4-1 - Update to new release * Wed Jan 15 2014 Till Maas - 1.12.3-1 - Update to new release - Harden build * Thu Jul 25 2013 Till Maas - 1.12.2-1 - Update to new release - Update URL - Update source URL * Wed Feb 13 2013 Fedora Release Engineering - 1.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Sep 26 2012 Till Maas - 1.11-1 - Update to new release - Do not recode ChangeLog anymore * Wed Jul 18 2012 Fedora Release Engineering - 1.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Mar 13 2012 Till Maas - 1.10-1 - Update to new release * Thu Jan 12 2012 Fedora Release Engineering - 1.8.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Feb 07 2011 Fedora Release Engineering - 1.8.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Sep 17 2009 Peter Lemenkov - 1.8.3-3 - Rebuilt with new fuse * Fri Jul 24 2009 Fedora Release Engineering - 1.8.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Apr 13 2009 Till Maas - 1.8.3-1 - Update to new upstream release * Mon Feb 23 2009 Fedora Release Engineering - 1.8.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sun Dec 14 2008 Till Maas - 1.8.2-2 - Update URL and Source0 to google code * Sun Dec 14 2008 Till Maas - 1.8.2-1 - Update to new release with GPLv2+ license headers * Fri Dec 12 2008 Till Maas - 1.8.1-2 - Skip Requires: fuse - Preseve timestamp of manpage with install -p in %%configure * Fri Dec 12 2008 Till Maas - 1.8.1-1 - Update to new release * Wed Oct 29 2008 Till Maas - 1.8-2 - Convert ChangeLog to UTF8 * Wed Oct 29 2008 Till Maas - 1.8-1 - Update to new release * Fri Oct 05 2007 Till Maas - 1.3-1 - initial spec for Fedora