]>
Commit | Line | Data |
---|---|---|
4505dee8 JB |
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ć | |
3 | Name: libnfs | |
0d8d7021 | 4 | Version: 2.0.0 |
4980f12b | 5 | Release: 1 |
1046aa1a | 6 | # library code is LGPL, protocol definition files are BSD licensed |
4980f12b | 7 | License: LGPL v2.1+ and BSD |
4505dee8 JB |
8 | Group: Libraries |
9 | Source0: https://sites.google.com/site/libnfstarballs/li/%{name}-%{version}.tar.gz | |
0d8d7021 | 10 | # Source0-md5: 87d913e26b9c4b7fe0b0460fa4e4cd99 |
4505dee8 JB |
11 | URL: https://github.com/sahlberg/libnfs |
12 | BuildRequires: pkgconfig | |
13 | BuildRequires: popt-devel | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Client library for accessing NFS shares over network. | |
18 | ||
19 | %description -l pl.UTF-8 | |
20 | Biblioteka kliencka do dostępu do udziałów NFS poprzez sieć. | |
21 | ||
22 | %package devel | |
23 | Summary: Header files for libnfs library | |
24 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnfs | |
1046aa1a | 25 | License: LGPL v2.1+ and BSD |
4505dee8 JB |
26 | Group: Development/Libraries |
27 | Requires: %{name} = %{version}-%{release} | |
28 | ||
29 | %description devel | |
4980f12b | 30 | Header files and examples for libnfs library. |
4505dee8 JB |
31 | |
32 | %description devel -l pl.UTF-8 | |
4980f12b | 33 | Pliki nagłówkowe oraz przykłady dla biblioteki libnfs. |
4505dee8 JB |
34 | |
35 | %package static | |
36 | Summary: Static libnfs library | |
37 | Summary(pl.UTF-8): Statyczna biblioteka libnfs | |
1046aa1a | 38 | License: LGPL v2.1+ and BSD |
4505dee8 JB |
39 | Group: Development/Libraries |
40 | Requires: %{name}-devel = %{version}-%{release} | |
41 | ||
42 | %description static | |
43 | Static libnfs library. | |
44 | ||
45 | %description static -l pl.UTF-8 | |
46 | Statyczna biblioteka libnfs. | |
47 | ||
1046aa1a JB |
48 | %package examples |
49 | Summary: Example code for libnfs library | |
50 | Summary(pl.UTF-8): Przykładowy kod źródłowy wykorzystujący bibliotekę libnfs | |
51 | License: GPL v3+ | |
52 | Group: Documentation | |
53 | ||
54 | %description examples | |
55 | Example code for libnfs library. | |
56 | ||
57 | %description examples -l pl.UTF-8 | |
58 | Przykładowy kod źródłowy wykorzystujący bibliotekę libnfs. | |
59 | ||
4980f12b ŁK |
60 | %package utils |
61 | Summary: Utils for accessing NFS servers | |
1046aa1a | 62 | Summary(pl.UTF-8): Narzędzia służące do dostępu do serwerów NFS |
4980f12b | 63 | License: GPL v3+ |
1046aa1a | 64 | Group: Applications/Networking |
4980f12b ŁK |
65 | Requires: %{name} = %{version}-%{release} |
66 | ||
67 | %description utils | |
68 | Simple client programs for accessing NFS servers using libnfs. | |
69 | ||
1046aa1a JB |
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. | |
73 | ||
4505dee8 JB |
74 | %prep |
75 | %setup -q | |
76 | ||
77 | %build | |
78 | %configure | |
79 | %{__make} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | # obsoleted by pkg-config | |
88 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnfs.la | |
89 | ||
1046aa1a JB |
90 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
91 | cp -p examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
92 | ||
4505dee8 JB |
93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %files | |
100 | %defattr(644,root,root,755) | |
101 | %doc COPYING README | |
102 | %attr(755,root,root) %{_libdir}/libnfs.so.*.*.* | |
0d8d7021 | 103 | %attr(755,root,root) %ghost %{_libdir}/libnfs.so.11 |
4505dee8 JB |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %{_libdir}/libnfs.so | |
108 | %{_includedir}/nfsc | |
109 | %{_pkgconfigdir}/libnfs.pc | |
110 | ||
111 | %files static | |
112 | %defattr(644,root,root,755) | |
113 | %{_libdir}/libnfs.a | |
4980f12b | 114 | |
1046aa1a JB |
115 | %files examples |
116 | %defattr(644,root,root,755) | |
117 | %{_examplesdir}/%{name}-%{version} | |
118 | ||
4980f12b ŁK |
119 | %files utils |
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* |