9b0c53
%global git0 https://github.com/containers/%{name}
9b0c53
9b0c53
%{!?_modulesloaddir:%global _modulesloaddir %{_usr}/lib/modules-load.d}
9b0c53
9b0c53
Name: fuse-overlayfs
9b0c53
Version: 1.4.0
9b0c53
Release: 2%{?dist}
9b0c53
Summary: FUSE overlay+shiftfs implementation for rootless containers
9b0c53
License: GPLv3+
9b0c53
URL: %{git0}
9b0c53
ExclusiveArch: aarch64 %{arm} ppc64le s390x x86_64
9b0c53
Source0: %{git0}/archive/v%{version}.tar.gz
9b0c53
Patch0: fuse-overlayfs-openat2-unsupported.patch
9b0c53
BuildRequires: autoconf
9b0c53
BuildRequires: automake
9b0c53
BuildRequires: fuse3-devel
9b0c53
BuildRequires: gcc
9b0c53
BuildRequires: git
9b0c53
BuildRequires: go-md2man
9b0c53
BuildRequires: make
9b0c53
Requires: kmod
9b0c53
Requires: fuse3
9b0c53
9b0c53
%description
9b0c53
%{summary}.
9b0c53
9b0c53
%package devel
9b0c53
Summary: %{summary}
9b0c53
BuildArch: noarch
9b0c53
9b0c53
%description devel
9b0c53
%{summary}
9b0c53
9b0c53
This package contains library source intended for
9b0c53
building other packages which use import path with
9b0c53
%{import_path} prefix.
9b0c53
9b0c53
%prep
9b0c53
%autosetup -Sgit
9b0c53
9b0c53
%build
9b0c53
export CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
9b0c53
export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
9b0c53
./autogen.sh
9b0c53
./configure --prefix=%{_usr} --libdir=%{_libdir}
9b0c53
%{__make} generate-man
9b0c53
9b0c53
%install
9b0c53
make DESTDIR=%{buildroot} install install-man
9b0c53
install -d %{buildroot}%{_modulesloaddir}
9b0c53
echo fuse > %{buildroot}%{_modulesloaddir}/fuse-overlayfs.conf
9b0c53
9b0c53
%post
9b0c53
modprobe fuse > /dev/null 2>&1 || :
9b0c53
9b0c53
%check
9b0c53
9b0c53
#define license tag if not already defined
9b0c53
%{!?_licensedir:%global license %doc}
9b0c53
9b0c53
%files
9b0c53
%license COPYING
9b0c53
%doc README.md
9b0c53
%{_bindir}/%{name}
9b0c53
%{_mandir}/man1/*
9b0c53
%{_modulesloaddir}/fuse-overlayfs.conf
9b0c53
9b0c53
%changelog
9b0c53
* Fri Jan 29 2021 Jindrich Novy <jnovy@redhat.com> - 1.4.0-2
9b0c53
- disable openat2 syscall again - still unsupported in current RHEL8 kernel
9b0c53
- Related: #1883490
9b0c53
9b0c53
* Sat Jan 23 2021 Jindrich Novy <jnovy@redhat.com> - 1.4.0-1
9b0c53
- update to https://github.com/containers/fuse-overlayfs/releases/tag/v1.4.0
9b0c53
- Related: #1883490
9b0c53
9b0c53
* Thu Nov 26 2020 Jindrich Novy <jnovy@redhat.com> - 1.3.0-1
9b0c53
- update to https://github.com/containers/fuse-overlayfs/releases/tag/v1.3.0
9b0c53
- Related: #1883490
9b0c53
9b0c53
* Mon Nov 09 2020 Jindrich Novy <jnovy@redhat.com> - 1.2.0-3
9b0c53
- be sure to harden the linked binary
9b0c53
- Related: #1883490
9b0c53
9b0c53
* Thu Oct 29 2020 Jindrich Novy <jnovy@redhat.com> - 1.2.0-2
9b0c53
- ensure fuse module is loaded
9b0c53
- Related: #1883490
9b0c53
9b0c53
* Wed Oct 21 2020 Jindrich Novy <jnovy@redhat.com> - 1.2.0-1
9b0c53
- synchronize with stream-container-tools-rhel8
9b0c53
- Related: #1883490
9b0c53
9b0c53
* Fri Sep 18 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.2-3
9b0c53
- fix "error bind mounting /dev from host into mount namespace"
9b0c53
  (the openat2 syscall is not yet supported by the RHEL8 kernel)
9b0c53
- Resolves: #1867447
9b0c53
9b0c53
* Tue Aug 11 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.2-2
9b0c53
- use proper CFLAGS
9b0c53
- Related: #1821193
9b0c53
9b0c53
* Mon Jun 29 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.2-1
9b0c53
- update to https://github.com/containers/fuse-overlayfs/releases/tag/v1.1.2
9b0c53
- Related: #1821193
9b0c53
9b0c53
* Mon Jun 22 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.1-1
9b0c53
- update to https://github.com/containers/fuse-overlayfs/releases/tag/v1.1.1
9b0c53
- Related: #1821193
9b0c53
9b0c53
* Thu Jun 18 2020 Jindrich Novy <jnovy@redhat.com> - 1.1.0-1
9b0c53
- update to https://github.com/containers/fuse-overlayfs/releases/tag/v1.1.0
9b0c53
- Related: #1821193
9b0c53
9b0c53
* Tue May 12 2020 Jindrich Novy <jnovy@redhat.com> - 1.0.0-1
9b0c53
- synchronize containter-tools 8.3.0 with 8.2.1
9b0c53
- Related: #1821193
9b0c53
9b0c53
* Tue Apr 07 2020 Jindrich Novy <jnovy@redhat.com> - 0.7.8-1
9b0c53
- update to https://github.com/containers/fuse-overlayfs/releases/tag/v0.7.8
9b0c53
- Related: #1821193
9b0c53
9b0c53
* Thu Mar 19 2020 Jindrich Novy <jnovy@redhat.com> - 0.7.2-5
9b0c53
- latest iteration of segfault fix patch, thanks to Giuseppe Scrivano
9b0c53
- Resolves: #1805017
9b0c53
9b0c53
* Fri Mar 06 2020 Jindrich Novy <jnovy@redhat.com> - 0.7.2-4
9b0c53
- replace "fuse-overlayfs segfault" patch with improved one
9b0c53
  due to application to a different context
9b0c53
- Resolves: #1805017
9b0c53
9b0c53
* Thu Feb 20 2020 Jindrich Novy <jnovy@redhat.com> - 0.7.2-3
9b0c53
- fix "fuse-overlayfs segfault"
9b0c53
- Resolves: #1805017
9b0c53
9b0c53
* Mon Feb 17 2020 Jindrich Novy <jnovy@redhat.com> - 0.7.2-2
9b0c53
- fix "useradd and groupadd fail under rootless Buildah and podman"
9b0c53
- Resolves: #1803496
9b0c53
9b0c53
* Fri Nov 29 2019 Jindrich Novy <jnovy@redhat.com> - 0.7.2-1
9b0c53
- update to 0.7.2
9b0c53
- Related: RHELPLAN-25139
9b0c53
9b0c53
* Fri Nov 29 2019 Jindrich Novy <jnovy@redhat.com> - 0.7.1-1
9b0c53
- update to 0.7.1
9b0c53
- Related: RHELPLAN-25139
9b0c53
9b0c53
* Mon Nov 18 2019 Jindrich Novy <jnovy@redhat.com> - 0.7-1
9b0c53
- update to 0.7
9b0c53
- apply patch to fix build on RHEL-8
9b0c53
- Related: RHELPLAN-25139
9b0c53
9b0c53
* Sat Jun 15 2019 Lokesh Mandvekar <lsm5@redhat.com> - 0.4.1-1
9b0c53
- Resolves: #1720654 - rebase to v0.4.1
9b0c53
9b0c53
* Wed Jan 16 2019 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.3-2
9b0c53
- rebase
9b0c53
- Resolves:#1666510
9b0c53
9b0c53
* Wed Oct 17 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1-7.dev.git50c7a50
9b0c53
- Resolves: #1640232
9b0c53
- built commit 50c7a50
9b0c53
9b0c53
* Fri Aug 10 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1-6.dev.git1c72a1a
9b0c53
- Resolves: #1614856 - add manpage
9b0c53
- built commit 1c72a1a
9b0c53
- add BR: go-md2man
9b0c53
9b0c53
* Fri Aug 10 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1-5.dev.gitd40ac75
9b0c53
- built commit d40ac75
9b0c53
- remove fedora bz ids
9b0c53
- Exclude ix86 and ppc64
9b0c53
9b0c53
* Mon Jul 30 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1-4.dev.git79c70fd
9b0c53
- Resolves: #1609598 - initial upload to Fedora
9b0c53
- bundled gnulib
9b0c53
9b0c53
* Mon Jul 30 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1-3.dev.git79c70fd
9b0c53
- correct license field
9b0c53
9b0c53
* Mon Jul 30 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1-2.dev.git79c70fd
9b0c53
- fix license
9b0c53
9b0c53
* Sun Jul 29 2018 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1-1.dev.git13575b6
9b0c53
- First package for Fedora