3 %bcond_without tests # don't perform "make test"
4 %bcond_with pthread # build pthread library (POSIX.1c threading API of GNU Pth)
6 Summary: The GNU portable threads
7 Summary(pl.UTF-8): Przenośne wątki GNU
14 Source0: http://ftp.gnu.org/gnu/pth/%{name}-%{version}.tar.gz
15 # Source0-md5: 9cb4a25331a4c4db866a31cbe507c793
16 Patch0: %{name}-nolibs.patch
17 URL: http://www.gnu.org/software/pth/
18 BuildRequires: autoconf >= 2.52
19 BuildRequires: automake
20 BuildRequires: libtool
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 # -fno-strict-aliasing" because mainly pth_mctx.c contains important
24 # and correct pointer casting constructs which are not acceptable
25 # in "strict aliasing" for GCC.
26 %define specflags -fno-strict-aliasing
29 Pth is a very portable POSIX/ANSI-C based library for Unix platforms
30 which provides non-preemptive priority-based scheduling for multiple
31 threads of execution (aka `multithreading') inside event-driven
32 applications. All threads run in the same address space of the server
33 application, but each thread has its own individual program-counter,
34 run-time stack, signal mask and errno variable.
36 %description -l pl.UTF-8
37 pth jest bardzo przenośną biblioteką bazującą na POSIX/ANSI-C dla
38 platform uniksowych, bazujące na priorytetach dzielenie czasu bez
39 wywłaszczenia dla wielu wątków (czyli wielowątkowość) wewnątrz
40 aplikacji sterowanych zdarzeniami. Wszystkie wątki działają w tej
41 samej przestrzeni adresowej aplikacji serwera, ale każdy ma swój
42 własny licznik instrukcji, stos, maski sygnałów i zmienną errno.
45 Summary: Header files and development documentation for pth
46 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do pth
47 Group: Development/Libraries
48 Requires: %{name} = %{epoch}:%{version}-%{release}
51 Header files and development documentation for pth.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe i dokumentacja programisty do pth.
57 Summary: Static version of the GNU portable threads library
58 Summary(pl.UTF-8): Statyczna wersja biblioteki pth
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
63 Static version of the GNU portable threads library.
65 %description static -l pl.UTF-8
66 Statyczna wersja biblioteki przenośnych wątków GNU.
71 # no aclocal call: aclocal.m4 contains only local macros, libtool.m4 is included from configure.in
72 cp -f /usr/share/automake/config.* /usr/share/aclocal/libtool.m4 .
73 mv aclocal.m4 local.m4
81 %{?with_pthread:--enable-pthread} \
86 %{?with_tests:%{__make} test}
89 rm -rf $RPM_BUILD_ROOT
91 %{__make} -j1 install \
92 DESTDIR=$RPM_BUILD_ROOT
95 rm -rf $RPM_BUILD_ROOT
97 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
101 %defattr(644,root,root,755)
102 # COPYING contains not only LGPL text
103 %doc ANNOUNCE AUTHORS COPYING ChangeLog HISTORY NEWS README SUPPORT TESTS THANKS USERS
104 %attr(755,root,root) %{_libdir}/libpth.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libpth.so.20
108 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_libdir}/libpth.so
113 %{_aclocaldir}/pth.m4
119 %defattr(644,root,root,755)