]> git.pld-linux.org Git - packages/libfuse3.git/blob - libfuse3.spec
up to 3.15.0
[packages/libfuse3.git] / libfuse3.spec
1 Summary:        Filesystem in Userspace
2 Summary(pl.UTF-8):      System plików w przestrzeni użytkownika
3 Name:           libfuse3
4 Version:        3.15.0
5 Release:        1
6 License:        LGPL v2 (library), GPL v2 (tools)
7 Group:          Applications/System
8 #Source0Download: https://github.com/libfuse/libfuse/releases
9 Source0:        https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.xz
10 # Source0-md5:  2abc81e1e75c872ecbbb97eb945c408d
11 URL:            https://github.com/libfuse/libfuse
12 BuildRequires:  meson >= 0.51
13 BuildRequires:  ninja >= 1.5
14 BuildRequires:  pkgconfig
15 BuildRequires:  rpm-build >= 4.6
16 BuildRequires:  rpmbuild(macros) >= 1.736
17 BuildRequires:  sed >= 4.0
18 BuildRequires:  tar >= 1:1.22
19 BuildRequires:  udev-devel
20 BuildRequires:  xz
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 FUSE (Filesystem in Userspace) is a simple interface for userspace
25 programs to export a virtual filesystem to the Linux kernel. FUSE also
26 aims to provide a secure method for non privileged users to create and
27 mount their own filesystem implementations.
28
29 This package contains a shared library.
30
31 %description -l pl.UTF-8
32 FUSE stanowi prosty interfejs dla programów działających w przestrzeni
33 użytkownika eksportujący wirtualny system plików do jądra Linuksa.
34 FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i
35 montowania własnych implementacji systemów plików przez zwykłych
36 (nieuprzywilejowanych) użytkowników.
37
38 Ten pakiet zawiera bibliotekę współdzieloną.
39
40 %package devel
41 Summary:        Filesystem in Userspace - Development header files
42 Summary(pl.UTF-8):      System plików w przestrzeni użytkownika - pliki nagłówkowe
43 License:        LGPL v2
44 Group:          Development/Libraries
45 Requires:       %{name} = %{version}-%{release}
46
47 %description devel
48 Libfuse3 library header files.
49
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki libfuse3.
52
53 %package static
54 Summary:        Filesystem in Userspace - static library
55 Summary(pl.UTF-8):      System plików w przestrzeni użytkownika - biblioteka statyczna
56 License:        LGPL v2
57 Group:          Development/Libraries
58 Requires:       %{name}-devel = %{version}-%{release}
59
60 %description static
61 Static libfuse3 library.
62
63 %description static -l pl.UTF-8
64 Statyczna biblioteka libfuse3.
65
66 %package apidocs
67 Summary:        API documentation for FUSE 3 library
68 Summary(pl.UTF-8):      Dokumentacja API biblioteki FUSE 3
69 Group:          Documentation
70 BuildArch:      noarch
71
72 %description apidocs
73 API documentation for FUSE 3 library.
74
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki FUSE 3.
77
78 %package -n libfuse-common
79 Summary:        Common package for FUSE 2 and FUSE 3
80 Summary(pl.UTF-8):      Pliki wspólne dla FUSE 2 i FUSE 3
81 Group:          Libraries
82 Conflicts:      libfuse < 2.9.7-3
83 Conflicts:      libfuse3 < 3.2.4-2
84
85 %description -n libfuse-common
86 Common package for FUSE 2 and FUSE 3.
87
88 %description -n libfuse-common -l pl.UTF-8
89 Pliki wspólne dla FUSE 2 i FUSE 3.
90
91 %package tools
92 Summary:        Tools to mount FUSE 3 based filesystems
93 Summary(pl.UTF-8):      Narzędzia do montowania systemów plików opartych na FUSE 3
94 License:        GPL v2
95 Group:          Applications/System
96 Requires(pre):  /usr/bin/getgid
97 Requires(pre):  /usr/sbin/groupadd
98 Requires:       %{name} = %{version}-%{release}
99 Requires:       libfuse-common = %{version}-%{release}
100 Requires:       mount >= 2.18
101 Provides:       group(fuse)
102
103 %description tools
104 Tools to mount FUSE 3 based filesystems.
105
106 %description tools -l pl.UTF-8
107 Narzędzia do montowania systemów plików opartych na FUSE 3.
108
109 %prep
110 %setup -q -n fuse-%{version}
111
112 %{__sed} -i '/FUSERMOUNT_PROG/s,fusermount3,%{_bindir}/fusermount3,' lib/mount.c
113
114 %build
115 PATH=$(pwd)/ld-dir:$PATH
116
117 %meson build \
118         -Dinitscriptdir= \
119         -Duseroot=false
120
121 %ninja_build -C build
122
123 %{?with_tests:%ninja_test -C build}
124
125 %install
126 rm -rf $RPM_BUILD_ROOT
127 install -d $RPM_BUILD_ROOT{/%{_lib},%{_sysconfdir},/sbin}
128
129 %ninja_install -C build
130
131 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libfuse3.so.* $RPM_BUILD_ROOT/%{_lib}
132 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfuse3.so
133 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libfuse3.so.*.*) \
134         $RPM_BUILD_ROOT%{_libdir}/libfuse3.so
135
136 %{__mv} $RPM_BUILD_ROOT{%{_sbindir},/sbin}/mount.fuse3
137
138 # part of default udev rules nowdays
139 %{__rm} $RPM_BUILD_ROOT/lib/udev/rules.d/99-fuse3.rules
140
141 %clean
142 rm -rf $RPM_BUILD_ROOT
143
144 %post   -p /sbin/ldconfig
145 %postun -p /sbin/ldconfig
146
147 %pre tools
148 %groupadd -g 84 fuse
149
150 %files
151 %defattr(644,root,root,755)
152 %doc README.md ChangeLog.rst AUTHORS doc/{README.NFS,fast17-vangoor.pdf,kernel.txt}
153 %attr(755,root,root) /%{_lib}/libfuse3.so.*.*.*
154 %attr(755,root,root) %ghost /%{_lib}/libfuse3.so.3
155
156 %files devel
157 %defattr(644,root,root,755)
158 %attr(755,root,root) %{_libdir}/libfuse3.so
159 %{_includedir}/fuse3
160 %{_pkgconfigdir}/fuse3.pc
161
162 %files static
163 %defattr(644,root,root,755)
164 %{_libdir}/libfuse3.a
165
166 %files apidocs
167 %defattr(644,root,root,755)
168 %doc doc/html/*
169
170 %files -n libfuse-common
171 %defattr(644,root,root,755)
172 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fuse.conf
173
174 %files tools
175 %defattr(644,root,root,755)
176 %attr(4755,root,root) %{_bindir}/fusermount3
177 %attr(755,root,root) /sbin/mount.fuse3
178 %{_mandir}/man1/fusermount3.1*
179 %{_mandir}/man8/mount.fuse3.8*
This page took 0.095063 seconds and 4 git commands to generate.