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.
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
87 # obsoleted by pkg-config
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnfs.la
90 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
91 cp -p examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
100 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_libdir}/libnfs.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libnfs.so.11
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libnfs.so
109 %{_pkgconfigdir}/libnfs.pc
112 %defattr(644,root,root,755)
116 %defattr(644,root,root,755)
117 %{_examplesdir}/%{name}-%{version}
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/nfs-cat
122 %attr(755,root,root) %{_bindir}/nfs-cp
123 %attr(755,root,root) %{_bindir}/nfs-ls
124 %{_mandir}/man1/nfs-cat.1*
125 %{_mandir}/man1/nfs-cp.1*
126 %{_mandir}/man1/nfs-ls.1*