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