SPECS (AC-branch): STLport.spec - add stlport-confing and stlport....

glen glen at pld-linux.org
Fri May 2 15:18:03 CEST 2008


Author: glen                         Date: Fri May  2 13:18:03 2008 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- add stlport-confing and stlport.pc; rel 3

---- Files affected:
SPECS:
   STLport.spec (1.72.2.6 -> 1.72.2.7) 

---- Diffs:

================================================================
Index: SPECS/STLport.spec
diff -u SPECS/STLport.spec:1.72.2.6 SPECS/STLport.spec:1.72.2.7
--- SPECS/STLport.spec:1.72.2.6	Fri May  2 14:59:54 2008
+++ SPECS/STLport.spec	Fri May  2 15:17:58 2008
@@ -5,12 +5,14 @@
 Summary(pl.UTF-8):	Biblioteki standardowe C++
 Name:		STLport
 Version:	5.1.2
-Release:	2
+Release:	3
 Epoch:		2
 License:	distributable (see README.gz)
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/stlport/%{name}-%{version}.tar.bz2
 # Source0-md5:	937b114455f304eb1cf7b9cc2ca103a3
+Source1:	stlport-config.in
+Source2:	stlport.pc.in
 Patch0:		%{name}-endianness.patch
 Patch1:		%{name}-gcc420_dirty_hack.patch
 Patch2:		%{name}-no_vendor_math_l.patch
@@ -61,7 +63,10 @@
 %patch2 -p1
 %patch3 -p1
 
-sed -i -e 's/= -O2$/= %{rpmcflags}/' build/Makefiles/gmake/gcc.mak
+%{__sed} -i -e 's/= -O2$/= %{rpmcflags}/' build/Makefiles/gmake/gcc.mak
+
+cp -a %{SOURCE1} stlport-config.in
+cp -a %{SOURCE2} stlport.pc.in
 
 %build
 %{__make} -C build/lib -f gcc.mak \
@@ -70,6 +75,18 @@
 	CC="%{__cc}" \
 	CXX="%{__cxx}"
 
+subst='
+	s, at prefix@,%{_prefix},g
+	s, at exec_prefix@,%{_exec_prefix},g
+	s, at libdir@,%{_libdir},g
+	s, at includedir@,%{_includedir},g
+	s, at ver@,%{version},g
+	s, at VERSION@,%{version},g
+'
+
+%{__sed} -e "$subst" stlport-config.in > stlport-config
+%{__sed} -e "$subst" stlport.pc.in > stlport.pc
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_includedir}
@@ -84,9 +101,13 @@
 rm -rf $RPM_BUILD_ROOT%{_includedir}/stlport/BC50
 
 # libstlport.so.5 is removed by ldconfig or *something*, so make .so point to real soname
-ln -sf $(cd $RPM_BUILD_ROOT%{_libdir}; echo libstlport.so.*.*.*) \
+ln -sf $(basename $RPM_BUILD_ROOT%{_libdir}/libstlport.so.*.*.*) \
 	$RPM_BUILD_ROOT%{_libdir}/libstlport.so
 
+install -d $RPM_BUILD_ROOT{%{_pkgconfigdir},%{_bindir}}
+cp -a stlport.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
+install stlport-config $RPM_BUILD_ROOT%{_bindir}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -105,7 +126,9 @@
 %defattr(644,root,root,755)
 %doc doc/{FAQ,*.txt}
 %attr(755,root,root) %{_libdir}/libstlport.so
+%attr(755,root,root) %{_bindir}/stlport-config
 %{_includedir}/stlport
+%{_pkgconfigdir}/stlport.pc
 
 %files static
 %defattr(644,root,root,755)
@@ -117,6 +140,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.72.2.7  2008-05-02 13:17:58  glen
+- add stlport-confing and stlport.pc; rel 3
+
 Revision 1.72.2.6  2008-05-02 12:59:54  glen
 - convert to utf8
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/STLport.spec?r1=1.72.2.6&r2=1.72.2.7&f=u



More information about the pld-cvs-commit mailing list