Debian Codegraph @

rpm/fuse-overlayfs.spec.template

raw
1 Summary: FUSE filesystem for containers.
2 Name: fuse-overlayfs
3 Version: #VERSION#
4 Release: 1%{?dist}
5 Source0: %{url}/archive/%{name}-%{version}.tar.gz
6 License: GPLv2+
7 URL: https://github.com/giuseppe/fuse-overlayfs
8
9 # We always run autogen.sh
10 BuildRequires: autoconf automake
11 BuildRequires: git
12 BuildRequires: gcc
13 BuildRequires: fuse3-devel
14 Requires: fuse3
15
16 %description
17 %{summary}.
18
19 %package devel
20 Summary: %{summary}
21 BuildArch: noarch
22
23 %description devel
24 %{summary}
25
26 This package contains library source intended for
27 building other packages which use import path with
28 %{import_path} prefix.
29
30 %prep
31 %autosetup -n %{name}-%{version}
32
33 %build
34 ./autogen.sh
35 ./configure --prefix=%{_usr} --libdir=%{_libdir}
36 %{__make}
37
38 %install
39 make DESTDIR=%{buildroot} install
40 install -d %{buildroot}%{_usr}/lib/modules-load.d
41 echo fuse > %{buildroot}%{_usr}/lib/modules-load.d/fuse-overlayfs.conf
42
43 %post
44 modprobe fuse > /dev/null 2>&1 || :
45
46 %check
47
48 #define license tag if not already defined
49 %{!?_licensedir:%global license %doc}
50
51 %files
52 %license COPYING
53 %{_bindir}/%{name}
54 %{_mandir}/man1/*
55 %{_usr}/lib/modules-load.d/fuse-overlayfs.conf