]>
Commit | Line | Data |
---|---|---|
17a58176 | 1 | Summary: C++ standard library |
c943f803 | 2 | Summary(pl.UTF-8): Biblioteki standardowe C++ |
17a58176 AM |
3 | Name: STLport4 |
4 | Version: 4.6.2 | |
5 | Release: 1 | |
6 | License: distributable (see README.gz) | |
7 | Group: Libraries | |
8 | Source0: http://www.stlport.com/archive/STLport-%{version}.tar.gz | |
9 | # Source0-md5: 4c01c84f1212369ceb369567ed06d1a2 | |
10 | Patch0: %{name}-nodebug.patch | |
11 | Patch1: %{name}-soname.patch | |
12 | Patch2: %{name}-gcc34.patch | |
13 | Patch3: %{name}-4.5.3-gcc3stdexcept.patch | |
14 | Patch4: %{name}-4.5.3-extra-cxxflags.patch | |
15 | URL: http://www.stlport.org/ | |
16 | BuildRequires: libstdc++-devel >= 5:3.3.2 | |
17 | %requires_eq libstdc++ | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | STLport is a multiplatform implementation of C++ Standard Template | |
22 | Library based on SGI STL. It's used by e.g. OpenOffice. | |
23 | ||
6b98ca21 | 24 | %description -l pl.UTF-8 |
17a58176 | 25 | STLport to wieloplatformowa implementacja standardowej biblioteki |
6b98ca21 JR |
26 | szablonów (Standard Template Library) C++ oparta na SGI STL. Jest |
27 | używana m.in. przez OpenOffice. | |
17a58176 AM |
28 | |
29 | %package devel | |
30 | Summary: STLport heades files, documentation | |
c943f803 | 31 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do STLport |
17a58176 AM |
32 | Group: Development/Libraries |
33 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files and development documentation for STLport. | |
37 | ||
6b98ca21 JR |
38 | %description devel -l pl.UTF-8 |
39 | Pliki nagłówkowe i dokumentacja dla STLport. | |
17a58176 AM |
40 | |
41 | %package static | |
42 | Summary: Static STLport libraries | |
c943f803 | 43 | Summary(pl.UTF-8): Biblioteki statyczne do STLport |
17a58176 AM |
44 | Group: Development/Libraries |
45 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static STLport libraries. | |
49 | ||
6b98ca21 | 50 | %description static -l pl.UTF-8 |
17a58176 AM |
51 | Biblioteki statyczne do STLport. |
52 | ||
53 | %prep | |
54 | %setup -q -n STLport-%{version} | |
55 | %patch0 -p1 | |
56 | %patch1 -p1 | |
57 | %patch2 -p1 | |
58 | %patch3 -p1 | |
59 | %patch4 -p1 | |
60 | ||
61 | %build | |
62 | %{__make} -C src -f gcc.mak \ | |
63 | CXXFLAGS="%{rpmcxxflags}" \ | |
64 | CXX="%{__cxx}" | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %{__make} -C src -f gcc.mak install \ | |
70 | INSTALLDIR=$RPM_BUILD_ROOT%{_prefix} \ | |
71 | INSTALLDIR_LIB=$RPM_BUILD_ROOT%{_libdir} | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc README | |
82 | %attr(755,root,root) %{_libdir}/*.so.*.* | |
83 | %attr(755,root,root) %{_libdir}/*.so | |
84 | ||
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %doc doc/{images,README.gcc.html,[a-z]*.html} | |
88 | %{_includedir}/stlport | |
89 | ||
90 | %files static | |
91 | %defattr(644,root,root,755) | |
92 | %{_libdir}/*.a |