]> git.pld-linux.org Git - packages/STLport.git/blob - STLport.spec
- outdated
[packages/STLport.git] / STLport.spec
1 Summary:        C++ standard library
2 Summary(pl):    Biblioteki standardowe C++
3 Name:           STLport
4 Version:        5.0.0
5 Release:        0.1
6 Epoch:          2
7 License:        distributable (see README.gz)
8 Group:          Libraries
9 Source0:        http://dl.sourceforge.net/stlport/%{name}-%{version}.tar.bz2
10 # Source0-md5:  5aefcbb0c30a91d50bb2d6c7b30e8393
11 Patch0:         %{name}-endianness.patch
12 #Patch0:                %{name}-nodebug.patch
13 #Patch1:                %{name}-soname.patch
14 #Patch2:                %{name}-gcc34.patch
15 #Patch3:                %{name}-4.5.3-gcc3stdexcept.patch
16 #Patch4:                %{name}-4.5.3-extra-cxxflags.patch
17 URL:            http://stlport.sourceforge.net/
18 BuildRequires:  libstdc++-devel >= 5:3.3.2
19 %requires_eq    libstdc++
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 STLport is a multiplatform implementation of C++ Standard Template
24 Library based on SGI STL. It's used by e.g. OpenOffice.
25
26 %description -l pl
27 STLport to wieloplatformowa implementacja standardowej biblioteki
28 szablonów (Standard Template Library) C++ oparta na SGI STL. Jest
29 u¿ywana m.in. przez OpenOffice.
30
31 %package devel
32 Summary:        STLport heades files, documentation
33 Summary(pl):    Pliki nag³ówkowe i dokumentacja do STLport
34 Group:          Development/Libraries
35 Requires:       %{name} = %{epoch}:%{version}-%{release}
36
37 %description devel
38 Header files and development documentation for STLport.
39
40 %description devel -l pl
41 Pliki nag³ówkowe i dokumentacja dla STLport.
42
43 %package static
44 Summary:        Static STLport libraries
45 Summary(pl):    Biblioteki statyczne do STLport
46 Group:          Development/Libraries
47 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
48
49 %description static
50 Static STLport libraries.
51
52 %description static -l pl
53 Biblioteki statyczne do STLport.
54
55 %prep
56 %setup -q -n %{name}
57 %patch0 -p1
58
59 #patch1 -p1
60 #patch2 -p1
61 #patch3 -p1
62 #patch4 -p1
63
64 %build
65 %{__make} -C build/lib -f gcc.mak \
66         release-shared \
67         release-static \
68         CXXFLAGS="%{rpmcxxflags}" \
69         CXX="%{__cxx}"
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{_includedir}
74
75 %{__make} -C build/lib -f gcc.mak \
76         install-release-shared \
77         install-release-static \
78         INSTALL_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
79         INSTALL_LIB_DIR=$RPM_BUILD_ROOT%{_libdir}
80
81 cp -a stlport $RPM_BUILD_ROOT%{_includedir}
82 rm -rf $RPM_BUILD_ROOT%{_includedir}/stlport/BC50
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92 %doc README
93 %attr(755,root,root) %{_libdir}/*.so.*.*
94 %attr(755,root,root) %{_libdir}/*.so
95
96 %files devel
97 %defattr(644,root,root,755)
98 %doc doc/{FAQ,*.txt}
99 %{_includedir}/stlport
100
101 %files static
102 %defattr(644,root,root,755)
103 %{_libdir}/*.a
This page took 0.160691 seconds and 3 git commands to generate.