]>
Commit | Line | Data |
---|---|---|
48c4295c | 1 | # |
90f9affc | 2 | # Conditional build: |
f4b24f37 | 3 | %bcond_without static_libs # don't build static library |
90f9affc | 4 | # |
6935743f | 5 | Summary: fsp library |
5c0cf8eb | 6 | Summary(pl.UTF-8): Biblioteka fsp |
6935743f | 7 | Name: fsplib |
2010fe92 | 8 | Version: 0.8 |
6935743f | 9 | Release: 1 |
e1d54c40 | 10 | License: BSD-like (see COPYING) |
6935743f | 11 | Group: Libraries |
12 | Source0: http://dl.sourceforge.net/fsp/%{name}-%{version}.tar.gz | |
2010fe92 | 13 | # Source0-md5: 3e629fb06c22b029c7ec07e0d7cc7def |
6935743f | 14 | URL: http://fsp.sourceforge.net/fsplib.html |
e1d54c40 | 15 | BuildRequires: autoconf >= 2.59 |
2192cc75 | 16 | BuildRequires: automake |
17 | BuildRequires: libtool | |
6935743f | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
e1d54c40 JB |
21 | This is C library which support talking with FSP server using FSP v2 |
22 | protocol and provides POSIX-like file manipulation interface. | |
6935743f | 23 | |
e1d54c40 | 24 | For more information about FSP protocol see |
ff8ba1e2 | 25 | <http://fsp.sourceforge.net/>. |
e1d54c40 JB |
26 | |
27 | For library and API info see http://fsp.sourceforge.net/fsplib.html . | |
6935743f | 28 | |
ba75704d JR |
29 | %description -l pl.UTF-8 |
30 | To jest biblioteka napisana w C, która obsługuje "rozmowę" z serwerem | |
31 | FSP przy użyciu wersji 2 protokołu i dostarcza interfejsu operacji na | |
e1d54c40 JB |
32 | plikach podobnego do POSIX. |
33 | ||
ba75704d | 34 | Więcej informacji o protokole FSP można znaleźć na |
ff8ba1e2 | 35 | <http://fsp.sourceforge.net/>. |
6935743f | 36 | |
ba75704d | 37 | Informacje o bibliotece i API znajdują się na |
e1d54c40 | 38 | http://fsp.sourceforge.net/fsplib.html . |
6935743f | 39 | |
40 | %package devel | |
41 | Summary: Header files for FSP library | |
5c0cf8eb | 42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FSP |
6935743f | 43 | Group: Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
45 | ||
46 | %description devel | |
47 | Header files for FSP library. | |
48 | ||
ba75704d JR |
49 | %description devel -l pl.UTF-8 |
50 | Pliki nagłówkowe biblioteki FSP. | |
6935743f | 51 | |
52 | %package static | |
53 | Summary: Static FSP library | |
5c0cf8eb | 54 | Summary(pl.UTF-8): Statyczna biblioteka FSP |
6935743f | 55 | Group: Development/Libraries |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static FSP library. | |
60 | ||
ba75704d | 61 | %description static -l pl.UTF-8 |
6935743f | 62 | Statyczna biblioteka FSP. |
63 | ||
64 | %prep | |
65 | %setup -c -q | |
66 | ||
67 | %build | |
68 | autoreconf -i | |
69 | %{__libtoolize} | |
70 | %{__autoconf} | |
71 | %{__automake} | |
72 | %configure \ | |
f4b24f37 | 73 | --enable-shared \ |
74 | %{!?with_static_libs:--disable-static} | |
6935743f | 75 | %{__make} |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %doc AUTHORS ChangeLog COPYING NEWS README TODO | |
92 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
93 | ||
94 | %files devel | |
95 | %defattr(644,root,root,755) | |
96 | %attr(755,root,root) %{_libdir}/lib*.so | |
97 | %{_libdir}/lib*.la | |
98 | %{_includedir}/* | |
99 | ||
f4b24f37 | 100 | %if %{with static_libs} |
6935743f | 101 | %files static |
102 | %defattr(644,root,root,755) | |
103 | %{_libdir}/lib*.a | |
f4b24f37 | 104 | %endif |