]> git.pld-linux.org Git - packages/STLport.git/blob - STLport.spec
- now it works with minor == 0 too (e.g. gcc-4.0.x).
[packages/STLport.git] / STLport.spec
1 Summary:        C++ standard library
2 Summary(pl):    Biblioteki standardowe C++
3 Name:           STLport
4 Version:        4.6.2
5 Release:        3
6 Epoch:          2
7 License:        distributable (see README.gz)
8 Group:          Libraries
9 Source0:        http://www.stlport.com/archive/%{name}-%{version}.tar.gz
10 # Source0-md5:  4c01c84f1212369ceb369567ed06d1a2
11 Patch0:         %{name}-nodebug.patch
12 Patch1:         %{name}-soname.patch
13 Patch2:         %{name}-gcc34.patch
14 Patch3:         %{name}-4.5.3-gcc3stdexcept.patch
15 Patch4:         %{name}-4.5.3-extra-cxxflags.patch
16 URL:            http://www.stlport.org/
17 BuildRequires:  libstdc++-devel >= 5:3.3.2
18 %requires_eq    libstdc++
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 STLport is a multiplatform implementation of C++ Standard Template
23 Library based on SGI STL. It's used by e.g. OpenOffice.
24
25 %description -l pl
26 STLport to wieloplatformowa implementacja standardowej biblioteki
27 szablonów (Standard Template Library) C++ oparta na SGI STL. Jest
28 u¿ywana m.in. przez OpenOffice.
29
30 %package devel
31 Summary:        STLport heades files, documentation
32 Summary(pl):    Pliki nag³ówkowe i dokumentacja do STLport
33 Group:          Development/Libraries
34 Requires:       %{name} = %{epoch}:%{version}-%{release}
35
36 %description devel
37 Header files and development documentation for STLport.
38
39 %description devel -l pl
40 Pliki nag³ówkowe i dokumentacja dla STLport.
41
42 %package static
43 Summary:        Static STLport libraries
44 Summary(pl):    Biblioteki statyczne do STLport
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
47
48 %description static
49 Static STLport libraries.
50
51 %description static -l pl
52 Biblioteki statyczne do STLport.
53
54 %prep
55 %setup -q
56 %patch0 -p1
57 %patch1 -p1
58 %patch2 -p1
59 %patch3 -p1
60 %patch4 -p1
61
62 %build
63 CXXFLAGS="%{rpmcflags}" \
64 %{__make} -C src -f gcc.mak
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
This page took 0.031056 seconds and 3 git commands to generate.