]>
Commit | Line | Data |
---|---|---|
85ab0156 | 1 | Summary: A minimal & complete Object-Oriented (OO) thread interface |
ddffa0ec | 2 | Summary(pl.UTF-8): Minimalny ale kompletny interfejs wątków w programowaniu OO |
85ab0156 | 3 | Name: OpenThreads |
de5325c6 | 4 | Version: 1.3 |
20d73827 | 5 | Release: 1 |
85ab0156 | 6 | License: LGPL |
7 | Group: Libraries | |
55cf357d | 8 | Source0: http://dl.sourceforge.net/openscenegraph/%{name}-%{version}.tar.gz |
de5325c6 | 9 | # Source0-md5: a1d792ae4ce38590ff498e0c7d9ad939 |
346cf6e9 | 10 | Source1: %{name}.pc |
c4e32ed3 | 11 | Patch0: %{name}-soname.patch |
40dc9c03 | 12 | URL: http://openthreads.sourceforge.net/ |
f0547b04 | 13 | BuildRequires: libstdc++-devel |
d9e143ca | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
85ab0156 | 15 | |
16 | %description | |
17 | This library is intended to provide a minimal & complete | |
18 | Object-Oriented (OO) thread interface for C++ programmers. It is | |
19 | loosely modeled on the Java thread API, and the POSIX Threads | |
20 | standards. | |
21 | ||
84d12984 JR |
22 | %description -l pl.UTF-8 |
23 | Biblioteka jest przeznaczona do udostępniania minimalnego ale pełnego | |
24 | interfejsu obiektowo zorientowanych (OO) wątków dla programistów C++. | |
25 | Bazuje na modelu API wątków w Javie oraz na standardzie wątków POSIX. | |
85ab0156 | 26 | |
27 | %package devel | |
28 | Summary: OpenThreads devel files | |
ddffa0ec | 29 | Summary(pl.UTF-8): Biblioteki programistyczne OpenThreads |
85ab0156 | 30 | Group: Development/Libraries |
bdfc8f72 | 31 | Requires: %{name} = %{version}-%{release} |
f0547b04 | 32 | Requires: libstdc++-devel |
85ab0156 | 33 | |
34 | %description devel | |
35 | OpenThreads devel files. | |
36 | ||
84d12984 | 37 | %description devel -l pl.UTF-8 |
85ab0156 | 38 | Biblioteki programistyczne OpenThreads. |
39 | ||
40 | %prep | |
41 | %setup -q -n %{name} | |
c4e32ed3 | 42 | %patch0 -p0 |
85ab0156 | 43 | |
44 | %build | |
45 | %{__make} \ | |
46 | CXX="%{__cxx} %{rpmcflags} -fPIC" | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
40dc9c03 | 50 | |
85ab0156 | 51 | %{__make} install \ |
994548e7 JB |
52 | INST_LOCATION=$RPM_BUILD_ROOT%{_prefix} \ |
53 | INST_LIBS=$RPM_BUILD_ROOT%{_libdir} | |
54 | ||
f8897930 | 55 | ln -sf `basename $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so.*` $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so |
994548e7 | 56 | |
346cf6e9 | 57 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
01159611 | 58 | sed -e 's,^libdir=.*,libdir=%{_libdir},' %{SOURCE1} >$RPM_BUILD_ROOT%{_pkgconfigdir}/openthreads.pc |
85ab0156 | 59 | |
60 | %clean | |
f8897930 | 61 | rm -rf $RPM_BUILD_ROOT |
62 | ||
63 | %post -p /sbin/ldconfig | |
64 | %postun -p /sbin/ldconfig | |
85ab0156 | 65 | |
66 | %files | |
67 | %defattr(644,root,root,755) | |
c4e32ed3 | 68 | %attr(755,root,root) %{_libdir}/lib%{name}.so.*.* |
85ab0156 | 69 | |
70 | %files devel | |
71 | %defattr(644,root,root,755) | |
72 | %doc AUTHORS.txt ChangeLog README.txt TODO.txt | |
73 | %attr(755,root,root) %{_libdir}/lib%{name}.so | |
74 | %{_includedir}/%{name} | |
346cf6e9 | 75 | %{_pkgconfigdir}/openthreads.pc |