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