]> git.pld-linux.org Git - packages/npth.git/blame - npth.spec
- updated to 1.4; LGPL v2.1+ now
[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
851986ee 8Version: 1.4
02f32cf5 9Release: 1
851986ee 10License: LGPL v2.1+
77f4091b
JB
11Group: Libraries
12Source0: ftp://ftp.gnupg.org/gcrypt/npth/%{name}-%{version}.tar.bz2
851986ee 13# Source0-md5: 76cef5542e0db6a339cf960641ed86f8
3bd7e031 14URL: https://www.gnupg.org/software/npth/
77f4091b
JB
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18nPth is the New GNU Portable Threads Library. This is a library to
19provide the GNU Pth API and thus a non-preemptive threads
20implementation.
21
22In contrast to GNU Pth it is based on the system's standard threads
23implementation. This allows the use of libraries which are not
24compatible to GNU Pth. Experience with a Windows Pth emulation showed
25that this is a solid way to provide a co-routine based framework.
26
27%description -l pl.UTF-8
28nPth (New GNU Portable Threads Library) to nowa przenośna biblioteka
29wątków GNU. Jej celem jest dostarczenie API GNU Pth, a tym samym
30implementacji niewywłaszczalnych wątków.
31
32W przeciwieństwie do GNU Pth jest oparta na standardowej systemowej
33implementacji wątków. Pozwala to na używanie bibliotek
34niekompatybilnych z GNU Pth (doświadczenia z emulacją Pth na Windows
35pokazały, że to jest solidna metoda zapewnienia szkieletu opartego na
36korutynach).
37
38%package devel
39Summary: Header files for nPth library
40Summary(pl.UTF-8): Pliki nagłówkowe biblioteki nPth
41Group: Development/Libraries
42Requires: %{name} = %{version}-%{release}
43
44%description devel
45Header files for nPth library.
46
47%description devel -l pl.UTF-8
48Pliki nagłówkowe biblioteki nPth.
49
50%package static
51Summary: Static nPth library
52Summary(pl.UTF-8): Statyczna biblioteka nPth
53Group: Development/Libraries
54Requires: %{name}-devel = %{version}-%{release}
55
56%description static
57Static nPth library.
58
59%description static -l pl.UTF-8
60Statyczna biblioteka nPth.
61
62%prep
63%setup -q
64
65%build
66%configure \
67 %{?with_static_libs:--enable-static}
68%{__make}
69
70%install
71rm -rf $RPM_BUILD_ROOT
72
73%{__make} install \
74 DESTDIR=$RPM_BUILD_ROOT
75
76%clean
77rm -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
This page took 0.653629 seconds and 4 git commands to generate.