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