1 Summary: Client library for accessing NFS shares over network
2 Summary(pl.UTF-8): Biblioteka kliencka do dostępu do udziałów NFS poprzez sieć
6 # library code is LGPL, protocol definition files are BSD licensed
7 License: LGPL v2.1+ and BSD
9 Source0: https://sites.google.com/site/libnfstarballs/li/%{name}-%{version}.tar.gz
10 # Source0-md5: 87d913e26b9c4b7fe0b0460fa4e4cd99
11 URL: https://github.com/sahlberg/libnfs
12 BuildRequires: pkgconfig
13 BuildRequires: popt-devel
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Client library for accessing NFS shares over network.
19 %description -l pl.UTF-8
20 Biblioteka kliencka do dostępu do udziałów NFS poprzez sieć.
23 Summary: Header files for libnfs library
24 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnfs
25 License: LGPL v2.1+ and BSD
26 Group: Development/Libraries
27 Requires: %{name} = %{version}-%{release}
30 Header files and examples for libnfs library.
32 %description devel -l pl.UTF-8
33 Pliki nagłówkowe oraz przykłady dla biblioteki libnfs.
36 Summary: Static libnfs library
37 Summary(pl.UTF-8): Statyczna biblioteka libnfs
38 License: LGPL v2.1+ and BSD
39 Group: Development/Libraries
40 Requires: %{name}-devel = %{version}-%{release}
43 Static libnfs library.
45 %description static -l pl.UTF-8
46 Statyczna biblioteka libnfs.
49 Summary: Example code for libnfs library
50 Summary(pl.UTF-8): Przykładowy kod źródłowy wykorzystujący bibliotekę libnfs
55 Example code for libnfs library.
57 %description examples -l pl.UTF-8
58 Przykładowy kod źródłowy wykorzystujący bibliotekę libnfs.
61 Summary: Utils for accessing NFS servers
62 Summary(pl.UTF-8): Narzędzia służące do dostępu do serwerów NFS
64 Group: Applications/Networking
65 Requires: %{name} = %{version}-%{release}
68 Simple client programs for accessing NFS servers using libnfs.
70 %description utils -l pl.UTF-8
71 Proste programy klienckie służące do dostępu do serwerów NFS przy
72 użyciu biblioteki libnfs.
78 # XXX: remove this hack when autoconf supports glibc major/minor/makedev changes
79 # (or removes them from sys/types.h completely)
80 CPPFLAGS="%{rpmcppflags} -DMAJOR_IN_SYSMACROS"
86 rm -rf $RPM_BUILD_ROOT
89 DESTDIR=$RPM_BUILD_ROOT
91 # obsoleted by pkg-config
92 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnfs.la
94 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
95 cp -p examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libnfs.so.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libnfs.so.11
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/libnfs.so
113 %{_pkgconfigdir}/libnfs.pc
116 %defattr(644,root,root,755)
120 %defattr(644,root,root,755)
121 %{_examplesdir}/%{name}-%{version}
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/nfs-cat
126 %attr(755,root,root) %{_bindir}/nfs-cp
127 %attr(755,root,root) %{_bindir}/nfs-ls
128 %{_mandir}/man1/nfs-cat.1*
129 %{_mandir}/man1/nfs-cp.1*
130 %{_mandir}/man1/nfs-ls.1*