-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpth.spec
71 lines (50 loc) · 1.59 KB
/
pth.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Name: pth
Summary: The GNU Portable Threads library
Version: 2.0.7
Release: 7
License: LGPLv2+
URL: http://www.gnu.org/software/pth/
Source0: ftp://ftp.gnu.org/gnu/pth/pth-%{version}.tar.gz
Source1: ftp://ftp.gnu.org/gnu/pth/pth-%{version}.tar.gz.sig
Patch0: pth-2.0.7-dont-remove-gcc-g.patch
Patch1: pth-2.0.7-fixbuildlinux.patch
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Pth is a very portable POSIX/ANSI-C based library for Unix platforms
which provides non-preemptive priority-based scheduling for multiple
threads of execution ("multithreading") inside server applications.
All threads run in the same address space of the server application,
but each thread has it's own individual program-counter, run-time
stack, signal mask and errno variable.
%package devel
Summary: Development headers and libraries for GNU Pth
Requires: %{name} = %{version}-%{release}
%description devel
Development headers and libraries for GNU Pth.
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%configure --disable-static ac_cv_func_sigstack='no'
# this is necessary; without it make -j fails
make pth_p.h
make %{?_smp_mflags}
%install
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%license COPYING
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%doc HACKING
%doc ANNOUNCE AUTHORS ChangeLog HISTORY NEWS PORTING README
%doc SUPPORT TESTS THANKS USERS
%{_bindir}/*
%{_includedir}/*
%{_libdir}/*.so
%{_mandir}/*/*
%{_datadir}/aclocal/*