]>
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 |
b322796d | 8 | Version: 0.14 |
0e6e178b | 9 | Release: 3 |
e1d54c40 | 10 | License: BSD-like (see COPYING) |
6935743f | 11 | Group: Libraries |
8e24d033 | 12 | Source0: http://downloads.sourceforge.net/fsp/%{name}-%{version}.tar.gz |
b322796d | 13 | # Source0-md5: 7eec378bb29de161f29b495a96828cba |
8e24d033 | 14 | Patch0: %{name}-scons.patch |
6935743f | 15 | URL: http://fsp.sourceforge.net/fsplib.html |
b322796d | 16 | BuildRequires: scons >= 3.0 |
6935743f | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
e1d54c40 JB |
20 | This is C library which support talking with FSP server using FSP v2 |
21 | protocol and provides POSIX-like file manipulation interface. | |
6935743f | 22 | |
e1d54c40 | 23 | For more information about FSP protocol see |
ff8ba1e2 | 24 | <http://fsp.sourceforge.net/>. |
e1d54c40 | 25 | |
8e24d033 | 26 | For library and API info see <http://fsp.sourceforge.net/fsplib.html>. |
6935743f | 27 | |
ba75704d JR |
28 | %description -l pl.UTF-8 |
29 | To jest biblioteka napisana w C, która obsługuje "rozmowę" z serwerem | |
30 | FSP przy użyciu wersji 2 protokołu i dostarcza interfejsu operacji na | |
e1d54c40 JB |
31 | plikach podobnego do POSIX. |
32 | ||
ba75704d | 33 | Więcej informacji o protokole FSP można znaleźć na |
ff8ba1e2 | 34 | <http://fsp.sourceforge.net/>. |
6935743f | 35 | |
ba75704d | 36 | Informacje o bibliotece i API znajdują się na |
8e24d033 | 37 | <http://fsp.sourceforge.net/fsplib.html>. |
6935743f | 38 | |
39 | %package devel | |
40 | Summary: Header files for FSP library | |
5c0cf8eb | 41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FSP |
6935743f | 42 | Group: Development/Libraries |
43 | Requires: %{name} = %{version}-%{release} | |
44 | ||
45 | %description devel | |
46 | Header files for FSP library. | |
47 | ||
ba75704d JR |
48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe biblioteki FSP. | |
6935743f | 50 | |
51 | %package static | |
52 | Summary: Static FSP library | |
5c0cf8eb | 53 | Summary(pl.UTF-8): Statyczna biblioteka FSP |
6935743f | 54 | Group: Development/Libraries |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static FSP library. | |
59 | ||
ba75704d | 60 | %description static -l pl.UTF-8 |
6935743f | 61 | Statyczna biblioteka FSP. |
62 | ||
63 | %prep | |
b322796d | 64 | %setup -q -c |
8e24d033 | 65 | %patch0 -p1 |
6935743f | 66 | |
67 | %build | |
8e24d033 | 68 | %scons \ |
0e6e178b | 69 | CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64" \ |
8e24d033 | 70 | enable-shared=yes |
6935743f | 71 | |
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
8e24d033 | 74 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} |
6935743f | 75 | |
8e24d033 JB |
76 | # we know scons is great :/ |
77 | install libfsplib.so.0.0.0 $RPM_BUILD_ROOT%{_libdir} | |
78 | ln -sf libfsplib.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libfsplib.so.0 | |
79 | ln -sf libfsplib.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libfsplib.so | |
80 | cp -a libfsplib.a $RPM_BUILD_ROOT%{_libdir} | |
81 | cp -a fsplib.h $RPM_BUILD_ROOT%{_includedir} | |
6935743f | 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 | |
8e24d033 JB |
92 | %attr(755,root,root) %{_libdir}/libfsplib.so.*.*.* |
93 | %attr(755,root,root) %ghost %{_libdir}/libfsplib.so.0 | |
6935743f | 94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
8e24d033 JB |
97 | %attr(755,root,root) %{_libdir}/libfsplib.so |
98 | %{_includedir}/fsplib.h | |
6935743f | 99 | |
f4b24f37 | 100 | %if %{with static_libs} |
6935743f | 101 | %files static |
102 | %defattr(644,root,root,755) | |
8e24d033 | 103 | %{_libdir}/libfsplib.a |
f4b24f37 | 104 | %endif |