]>
Commit | Line | Data |
---|---|---|
294a0690 JB |
1 | Summary: Platform-independent, multi-threading and synchronization library for C++ |
2 | Summary(pl.UTF-8): Wieloplatformowa biblioteka C++ do obsługi wątków i synchronizacji | |
3 | Name: ZThread | |
4 | Version: 2.3.2 | |
be1cc807 | 5 | Release: 2 |
294a0690 JB |
6 | License: MIT |
7 | Group: Libraries | |
72fafc20 | 8 | Source0: http://downloads.sourceforge.net/zthread/%{name}-%{version}.tar.gz |
294a0690 JB |
9 | # Source0-md5: f2782d19b8ed6f1ff2ab8824dd4ba48e |
10 | Patch0: %{name}-c++.patch | |
11 | Patch1: %{name}-destdir.patch | |
12 | Patch2: %{name}-am.patch | |
13 | URL: http://zthread.sourceforge.net/ | |
14 | BuildRequires: autoconf >= 2.50 | |
15 | BuildRequires: automake | |
16 | BuildRequires: libstdc++-devel | |
17 | BuildRequires: libtool >= 2:1.5 | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | The ZThread package is an advanced object-oriented, cross-platform, | |
22 | C++ threading and synchronization library that has been designed and | |
23 | implemented by the author and released under the MIT license. It | |
24 | provides a high level abstraction of the native threading mechanisms | |
25 | to offer a great deal of flexibility and control. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | ZThread to zaawansowana, zorientowana obiektowo, wieloplatformowa | |
29 | biblioteka C++ do wątkow i synchronizacji zaprojektowana i | |
30 | zaimplementowana, a następnie wydana przez autora na licencji MIT. | |
31 | Udostępnia wysokopoziomową abstrakcję natywnych mechanizmów wątków, | |
32 | oferując dużą elastyczność i kontrolę. | |
33 | ||
34 | %package devel | |
35 | Summary: Header files for ZThread library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ZThread | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | Requires: libstdc++-devel | |
40 | ||
41 | %description devel | |
42 | Header files for ZThread library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki nagłówkowe biblioteki ZThread. | |
46 | ||
47 | %package static | |
48 | Summary: Static ZThread library | |
49 | Summary(pl.UTF-8): Statyczna biblioteka ZThread | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static ZThread library. | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczna biblioteka ZThread. | |
58 | ||
59 | %prep | |
60 | %setup -q | |
61 | %patch0 -p1 | |
62 | %patch1 -p1 | |
63 | %patch2 -p1 | |
64 | ||
65 | %build | |
66 | %{__libtoolize} | |
67 | %{__aclocal} -I share | |
68 | %{__autoconf} | |
69 | %{__autoheader} | |
70 | %{__automake} | |
71 | %configure | |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc AUTHORS COPYING ChangeLog NEWS README TODO | |
89 | %attr(755,root,root) %{_libdir}/libZThread-2.3.so.*.*.* | |
90 | %attr(755,root,root) %ghost %{_libdir}/libZThread-2.3.so.2 | |
91 | ||
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %doc doc/*.{html,js,css} | |
95 | %attr(755,root,root) %{_bindir}/zthread-config | |
96 | %attr(755,root,root) %{_libdir}/libZThread.so | |
97 | %{_libdir}/libZThread.la | |
98 | %{_includedir}/zthread | |
99 | %{_aclocaldir}/pthread.m4 | |
100 | %{_aclocaldir}/zthread.m4 | |
101 | ||
102 | %files static | |
103 | %defattr(644,root,root,755) | |
104 | %{_libdir}/libZThread.a |