SPECS: xerces-c.spec - make install the right way
baggins
baggins at pld-linux.org
Fri Feb 10 15:16:36 CET 2006
Author: baggins Date: Fri Feb 10 14:16:36 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- make install the right way
---- Files affected:
SPECS:
xerces-c.spec (1.26 -> 1.27)
---- Diffs:
================================================================
Index: SPECS/xerces-c.spec
diff -u SPECS/xerces-c.spec:1.26 SPECS/xerces-c.spec:1.27
--- SPECS/xerces-c.spec:1.26 Fri Feb 10 13:47:08 2006
+++ SPECS/xerces-c.spec Fri Feb 10 15:16:31 2006
@@ -4,7 +4,7 @@
Name: xerces-c
Version: 2.7.0
%define ver %(echo %{version} | tr . _)
-Release: 0.1
+Release: 0.2
License: Apache
Group: Applications/Publishing/XML
Source0: http://www.apache.org/dist/xml/xerces-c/source/%{name}-src_%{ver}.tar.gz
@@ -62,13 +62,12 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-# Only one file?
-install lib/lib*.so $RPM_BUILD_ROOT%{_libdir}
-
-# I put all stuff from that dir, maybe some can be omitted
-cp -a include/xercesc $RPM_BUILD_ROOT%{_includedir}
+%{__make} -C src/xercesc install \
+ XERCESCROOT=`pwd` \
+ PREFIX=%{_prefix} \
+ DESTDIR=$RPM_BUILD_ROOT
cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -81,10 +80,11 @@
%files
%defattr(644,root,root,755)
%doc LICENSE.txt credits.txt
-%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
%files devel
%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
%{_includedir}/*
%files doc
@@ -98,6 +98,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.27 2006/02/10 14:16:31 baggins
+- make install the right way
+
Revision 1.26 2006/02/10 12:47:08 baggins
- 2.7.0
- removed obsolete patches
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/xerces-c.spec?r1=1.26&r2=1.27&f=u
More information about the pld-cvs-commit
mailing list