rpm: sync with Fedora repo

this is useful to build a development rpm that can be quickly moved
around.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2019-08-06 12:11:15 +02:00
parent b92a6544cf
commit 78e111aa8d
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

View File

@ -14,20 +14,42 @@ BuildRequires: fuse3-devel
Requires: fuse3
%description
fuse-overlayfs is a FUSE overlayfs implementation.
%{summary}.
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
%{summary}
This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.
%prep
%autosetup -n %{name}-%{version}
%build
env NOCONFIGURE=1 ./autogen.sh
%configure --disable-silent-rules
%make_build
./autogen.sh
./configure --prefix=%{_usr} --libdir=%{_libdir}
%{__make}
%install
%make_install INSTALL="install -p"
make DESTDIR=%{buildroot} install
install -d %{buildroot}%{_usr}/lib/modules-load.d
echo fuse > %{buildroot}%{_usr}/lib/modules-load.d/fuse-overlayfs.conf
%post
modprobe fuse > /dev/null 2>&1 || :
%check
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
%files
%license COPYING
%{_bindir}/%{name}
%{_mandir}/man1/*
%{_usr}/lib/modules-load.d/fuse-overlayfs.conf