packages: root/root.spec - add script to extract the list of include files ...

lisu lisu at pld-linux.org
Thu Dec 16 12:58:27 CET 2010


Author: lisu                         Date: Thu Dec 16 11:58:27 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add script to extract the list of include files in a subpackage

---- Files affected:
packages/root:
   root.spec (1.45 -> 1.46) 

---- Diffs:

================================================================
Index: packages/root/root.spec
diff -u packages/root/root.spec:1.45 packages/root/root.spec:1.46
--- packages/root/root.spec:1.45	Thu Dec 16 12:30:41 2010
+++ packages/root/root.spec	Thu Dec 16 12:58:22 2010
@@ -19,6 +19,8 @@
 Group:		Applications/Engineering
 Source0:	ftp://root.cern.ch/root/%{name}_v%{version}.source.tar.gz
 # Source0-md5:	fc30b6410295ae2df9e74064fc84539d
+# Script to extract the list of include files in a subpackage
+Source1:	%{name}-includelist
 Patch0:		%{name}-docs.patch
 Patch1:		%{name}-namespaces.patch
 Patch2:		%{name}-make_version.patch
@@ -174,6 +176,9 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
 # Remove some junk
 #%%{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/BUILDSYSTEM
 #%%{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ChangeLog-2-24
@@ -181,8 +186,22 @@
 #%%{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README.ALIEN
 #%%{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README.MONALISA
 
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
+# Create includelist files ...
+for module in `find * -name Module.mk` ; do
+	module=`dirname $module`
+	make -f %{SOURCE1} includelist MODULE=$module
+done
+
+# ... and merge some of them
+cat includelist-core-[^w]* > includelist-core
+cat includelist-io-io >> includelist-core
+cat includelist-geom-geom* > includelist-geom
+cat includelist-roofit-* > includelist-roofit
+cat includelist-gui-qt* > includelist-gui-qt
+cat includelist-graf2d-x11ttf >> includelist-graf2d-x11
+cat includelist-gui-guihtml >> includelist-gui-gui
+cat includelist-io-xmlparser >> includelist-io-xml
+cat includelist-proof-proofplayer >> includelist-proof-proof
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -216,7 +235,7 @@
 %defattr(644,root,root,755)
 #%%doc %{_docdir}/%{name}-%{version}/html
 
-%files core
+%files core -f includelist-core
 %defattr(644,root,root,755)
 #%%doc %{_docdir}/%{name}-%{version}/CREDITS
 #%%doc %{_docdir}/%{name}-%{version}/README
@@ -241,7 +260,7 @@
 %dir %{_includedir}/%{name}/Math
 %{_aclocaldir}/root.m4
 
-%files graf-asimage
+%files graf-asimage -f includelist-graf2d-asimage
 %defattr(644,root,root,755)
 %{_libdir}/%{name}/libASImage.*
 %{_libdir}/%{name}/libASImageGui.*
@@ -252,6 +271,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.46  2010/12/16 11:58:22  lisu
+- add script to extract the list of include files in a subpackage
+
 Revision 1.45  2010/12/16 11:30:41  lisu
 - comment out docs in %%files for now
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/root/root.spec?r1=1.45&r2=1.46&f=u



More information about the pld-cvs-commit mailing list