init package

This commit is contained in:
fushanqing 2022-01-24 13:53:07 +08:00
parent 8479c6cb30
commit e1f8ed1a36
2 changed files with 59 additions and 0 deletions

59
fuse-overlayfs.spec Normal file
View File

@ -0,0 +1,59 @@
# Used for comparing with latest upstream tag
# to decide whether to autobuild (non-rawhide only)
%define built_tag v1.5.0
%define built_tag_strip %(b=%{built_tag}; echo ${b:1})
%{!?_modulesloaddir:%global _modulesloaddir %{_usr}/lib/modules-load.d}
Name: fuse-overlayfs
Version: 1.5.0
Release: 1
Summary: FUSE overlay+shiftfs implementation for rootless containers
License: GPLv3+
URL: https://github.com/containers/fuse-overlayfs
Source0: https://github.com/containers/fuse-overlayfs/archive/refs/tags/v1.5.0.tar.gz
BuildRequires: autoconf automake fuse3-devel
BuildRequires: gcc git make fuse3
Requires: kmod fuse3
Provides: bundled(gnulib) = cb634d40c7b9bbf33fa5198d2e27fdab4c0bf143
%description
%{summary}.
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
This package contains library source intended for
building other packages which use import path with.
%prep
%autosetup -Sgit -n %{name}-%{built_tag_strip}
%build
./autogen.sh
./configure --prefix=%{_usr} --libdir=%{_libdir}
%{__make}
%install
%make_install
install -d %{buildroot}%{_modulesloaddir}
echo fuse > %{buildroot}%{_modulesloaddir}/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
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/*
%{_modulesloaddir}/fuse-overlayfs.conf
%changelog
* Mon Jan 24 2022 fushanqing <fushanqing@kylinos.cn> - 1.5.0-1
- Initial package

BIN
v1.5.0.tar.gz Normal file

Binary file not shown.