SPECS: ocaml.spec - install camlp4 manuals again

qboosh qboosh at pld-linux.org
Sun Aug 5 10:06:48 CEST 2007


Author: qboosh                       Date: Sun Aug  5 08:06:48 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- install camlp4 manuals again

---- Files affected:
SPECS:
   ocaml.spec (1.113 -> 1.114) 

---- Diffs:

================================================================
Index: SPECS/ocaml.spec
diff -u SPECS/ocaml.spec:1.113 SPECS/ocaml.spec:1.114
--- SPECS/ocaml.spec:1.113	Tue Jul 31 11:23:47 2007
+++ SPECS/ocaml.spec	Sun Aug  5 10:06:43 2007
@@ -344,6 +344,9 @@
 %{__make} -j1 world bootstrap opt.opt CFLAGS="%{rpmcflags} -Wall"
 %{__make} -C tools objinfo CFLAGS="%{rpmcflags} -Wall" -j1
 
+# broken build system
+sed -e 's,LIBDIR,%{_libdir},' camlp4/man/camlp4.1.tpl > camlp4/man/camlp4.1
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_includedir},%{_infodir},%{_examplesdir}/%{name}-{labltk-,}%{version}}
@@ -400,6 +403,12 @@
 # install info pages
 cp -f infoman/*.gz $RPM_BUILD_ROOT%{_infodir}
 
+# broken build system
+install camlp4/man/camlp4.1 $RPM_BUILD_ROOT%{_mandir}/man1
+for f in camlp4o.1 camlp4r.1 mkcamlp4.1 camlp4o.opt.1 camlp4r.opt.1 ; do
+	echo '.so camlp4.1' >$RPM_BUILD_ROOT%{_mandir}/man1/$f
+done
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -509,13 +518,11 @@
 
 %files camlp4
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*camlp4*
-#%attr(755,root,root) %{_bindir}/ocpp
-# Not installed since 3.05, is it needed?
-#%attr(755,root,root) %{_bindir}/odyl
+%attr(755,root,root) %{_bindir}/camlp4*
+%attr(755,root,root) %{_bindir}/mkcamlp4
 %{_libdir}/%{name}/camlp4
-#%{_mandir}/man*/*camlp4*
-#%{_mandir}/man*/*ocpp*
+%{_mandir}/man1/camlp4*.1*
+%{_mandir}/man1/mkcamlp4.1*
 
 %files camlp4-doc-html
 %defattr(644,root,root,755)
@@ -540,6 +547,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.114  2007/08/05 08:06:43  qboosh
+- install camlp4 manuals again
+
 Revision 1.113  2007/07/31 09:23:47  arekm
 - rel 2; rebuild with db4.6
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ocaml.spec?r1=1.113&r2=1.114&f=u



More information about the pld-cvs-commit mailing list