]>
Commit | Line | Data |
---|---|---|
77f4091b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: nPth - New GNU Portable Threads Library | |
6 | Summary(pl.UTF-8): nPth - nowa przenośna biblioteka wątków GNU | |
7 | Name: npth | |
851986ee | 8 | Version: 1.4 |
02f32cf5 | 9 | Release: 1 |
851986ee | 10 | License: LGPL v2.1+ |
77f4091b JB |
11 | Group: Libraries |
12 | Source0: ftp://ftp.gnupg.org/gcrypt/npth/%{name}-%{version}.tar.bz2 | |
851986ee | 13 | # Source0-md5: 76cef5542e0db6a339cf960641ed86f8 |
3bd7e031 | 14 | URL: https://www.gnupg.org/software/npth/ |
77f4091b JB |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | nPth is the New GNU Portable Threads Library. This is a library to | |
19 | provide the GNU Pth API and thus a non-preemptive threads | |
20 | implementation. | |
21 | ||
22 | In contrast to GNU Pth it is based on the system's standard threads | |
23 | implementation. This allows the use of libraries which are not | |
24 | compatible to GNU Pth. Experience with a Windows Pth emulation showed | |
25 | that this is a solid way to provide a co-routine based framework. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | nPth (New GNU Portable Threads Library) to nowa przenośna biblioteka | |
29 | wątków GNU. Jej celem jest dostarczenie API GNU Pth, a tym samym | |
30 | implementacji niewywłaszczalnych wątków. | |
31 | ||
32 | W przeciwieństwie do GNU Pth jest oparta na standardowej systemowej | |
33 | implementacji wątków. Pozwala to na używanie bibliotek | |
34 | niekompatybilnych z GNU Pth (doświadczenia z emulacją Pth na Windows | |
35 | pokazały, że to jest solidna metoda zapewnienia szkieletu opartego na | |
36 | korutynach). | |
37 | ||
38 | %package devel | |
39 | Summary: Header files for nPth library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki nPth | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description devel | |
45 | Header files for nPth library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe biblioteki nPth. | |
49 | ||
50 | %package static | |
51 | Summary: Static nPth library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka nPth | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static nPth library. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka nPth. | |
61 | ||
62 | %prep | |
63 | %setup -q | |
64 | ||
65 | %build | |
66 | %configure \ | |
67 | %{?with_static_libs:--enable-static} | |
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc AUTHORS ChangeLog NEWS README | |
85 | %attr(755,root,root) %{_libdir}/libnpth.so.*.*.* | |
86 | %attr(755,root,root) %ghost %{_libdir}/libnpth.so.0 | |
87 | ||
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %attr(755,root,root) %{_bindir}/npth-config | |
91 | %attr(755,root,root) %{_libdir}/libnpth.so | |
92 | %{_libdir}/libnpth.la | |
93 | %{_includedir}/npth.h | |
94 | %{_aclocaldir}/npth.m4 | |
95 | ||
96 | %if %{with static_libs} | |
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libnpth.a | |
100 | %endif |