]> git.pld-linux.org Git - packages/libfuse.git/blob - libfuse.spec
- remove 0 epoch
[packages/libfuse.git] / libfuse.spec
1 Summary:        Filesystem in Userspace
2 Summary(pl.UTF-8):      System plików w przestrzeni użytkownika
3 Name:           libfuse
4 Version:        2.9.3
5 Release:        2
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        http://downloads.sourceforge.net/fuse/fuse-%{version}.tar.gz
9 # Source0-md5:  33cae22ca50311446400daf8a6255c6a
10 Source1:        fuse.conf
11 Patch0:         kernel-misc-fuse-Makefile.am.patch
12 URL:            http://fuse.sourceforge.net/
13 BuildRequires:  autoconf >= 2.60
14 BuildRequires:  automake
15 BuildRequires:  libtool
16 BuildRequires:  sed >= 4.0
17 Requires(pre):  /usr/bin/getgid
18 Requires(pre):  /usr/sbin/groupadd
19 Provides:       group(fuse)
20 Suggests:       mount >= 2.18
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:        Filesytem in Userspace - Development header files
42 Summary(pl.UTF-8):      System plików w przestrzeni użytkownika - pliki nagłówkowe
43 Group:          Development/Libraries
44 Requires:       %{name} = %{epoch}:%{version}-%{release}
45
46 %description devel
47 Libfuse library header files.
48
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki libfuse.
51
52 %package static
53 Summary:        Filesytem in Userspace - static library
54 Summary(pl.UTF-8):      System plików w przestrzeni użytkownika - biblioteka statyczna
55 Group:          Development/Libraries
56 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
57
58 %description static
59 Static libfuse libraries.
60
61 %description static -l pl.UTF-8
62 Statyczna biblioteka libfuse.
63
64 %prep
65 %setup -q -n fuse-%{version}
66 %patch0 -p1
67
68 sed -i '/FUSERMOUNT_PROG/s,fusermount,%{_bindir}/fusermount,' lib/mount.c
69
70 # gold is missing base versioning
71 install -d ld-dir
72 [ ! -x /usr/bin/ld.bfd ] || ln -sf /usr/bin/ld.bfd ld-dir/ld
73
74 %build
75 PATH=$(pwd)/ld-dir:$PATH
76 %{__libtoolize}
77 %{__aclocal}
78 %{__autoconf}
79 %{__autoheader}
80 %{__automake}
81 %configure \
82         INIT_D_PATH=/etc/rc.d/init.d \
83         --disable-silent-rules \
84         --enable-lib \
85         --enable-util
86
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT{/%{_lib},%{_pkgconfigdir},%{_sysconfdir}}
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96 mv -f $RPM_BUILD_ROOT%{_libdir}/libfuse.so.* $RPM_BUILD_ROOT/%{_lib}
97 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfuse.so
98 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libfuse.so.*.*) \
99         $RPM_BUILD_ROOT%{_libdir}/libfuse.so
100
101 install fuse.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
102 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
103
104 # part of default udev rules nowdays
105 rm $RPM_BUILD_ROOT/etc/udev/rules.d/99-fuse.rules
106
107 # not needed
108 rm $RPM_BUILD_ROOT/etc/rc.d/init.d/fuse
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %pre
114 %groupadd -g 84 fuse
115
116 %post   -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
118
119 %files
120 %defattr(644,root,root,755)
121 %doc README NEWS ChangeLog AUTHORS doc/*
122 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fuse.conf
123 %attr(4755,root,root) %{_bindir}/fusermount
124 %attr(755,root,root) %{_bindir}/ulockmgr_server
125 %attr(755,root,root) /sbin/mount.fuse
126 %attr(755,root,root) /%{_lib}/libfuse.so.*.*.*
127 %attr(755,root,root) %ghost /%{_lib}/libfuse.so.2
128 %attr(755,root,root) %{_libdir}/libulockmgr.so.*.*.*
129 %attr(755,root,root) %ghost %{_libdir}/libulockmgr.so.1
130 %{_mandir}/man1/fusermount.1*
131 %{_mandir}/man1/ulockmgr_server.1*
132 %{_mandir}/man8/mount.fuse.8*
133
134 %files devel
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/libfuse.so
137 %attr(755,root,root) %{_libdir}/libulockmgr.so
138 %{_libdir}/libfuse.la
139 %{_libdir}/libulockmgr.la
140 %{_includedir}/fuse
141 %{_includedir}/fuse.h
142 %{_includedir}/ulockmgr.h
143 %{_pkgconfigdir}/fuse.pc
144
145 %files static
146 %defattr(644,root,root,755)
147 %{_libdir}/libfuse.a
148 %{_libdir}/libulockmgr.a
This page took 0.089928 seconds and 3 git commands to generate.