X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcamlp5.git;a=blobdiff_plain;f=camlp5.spec;h=6f9852a40cfe90b2a33b9afd21b6374ae1dfe10c;hp=494109846123dd11220abcc86200596ca1f9e2e2;hb=f95747ae58eaaba2df5d247130f7be90d78e2fc7;hpb=170a6c18a7cef9b760a6b1e9e5331b465d9d4ca4 diff --git a/camlp5.spec b/camlp5.spec index 4941098..6f9852a 100644 --- a/camlp5.spec +++ b/camlp5.spec @@ -1,18 +1,18 @@ Summary: Objective Caml Preprocessor Summary(pl.UTF-8): Preprocesor OCamla Name: camlp5 -Version: 5.11 -Release: 0.1 +Version: 6.02.2 +Release: 1 License: distributable Group: Development/Languages Source0: http://pauillac.inria.fr/~ddr/camlp5/distrib/src/%{name}-%{version}.tgz -# Source0-md5: 26d69abd669c5fda43dbf35074debc81 -Source1: http://pauillac.inria.fr/~ddr/camlp5/doc/pdf/%{name}-%{version}.pdf -# Source1-md5: 57cf4eb162568d9b755e8120a1b82d43 -Source2: http://pauillac.inria.fr/~ddr/camlp5/doc/htmlz/%{name}-%{version}.html.tgz -# Source2-md5: fcf3aa4d88a311aa27ff23e50c6f510f +# Source0-md5: b495bf26355451186c6725ee01add0da +#Source1: http://pauillac.inria.fr/~ddr/camlp5/doc/pdf/%{name}-%{version}.pdf +Source1: http://pauillac.inria.fr/~ddr/camlp5/doc/pdf/%{name}-6.00.pdf +# Source1-md5: b241eabfeb48f22b0fbd3e497198a76a URL: http://caml.inria.fr/ BuildRequires: db-devel >= 4.1 +BuildRequires: ocaml Requires: %{name} = %{epoch}:%{version}-%{release} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -58,87 +58,31 @@ Preprocesor OCamla - dokumentacja HTML. %prep %setup -q -cp %{SOURCE1} docs/camlp4.pdf -tar xzf %{SOURCE2} +cp %{SOURCE1} doc/camlp4.pdf %build -cp -f /usr/share/automake/config.sub config/gnu ./configure \ - -cc "%{__cc}" \ -bindir %{_bindir} \ - -libdir %{_libdir}/%{name} \ + -libdir %{_libdir}/ocaml \ -mandir %{_mandir}/man1 \ - -host %{_host} \ - %{!?with_tk:-no-tk} \ - -with-pthread \ - -x11lib %{_libdir} + -transitional -%{__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 +%{__make} -j1 world.opt +%{__make} -j1 -C doc/htmlp %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_includedir},%{_infodir},%{_examplesdir}/%{name}-{labltk-,}%{version}} -install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/site-lib %{__make} install \ BINDIR=$RPM_BUILD_ROOT%{_bindir} \ - LIBDIR=$RPM_BUILD_ROOT%{_libdir}/%{name} \ + LIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \ MANDIR=$RPM_BUILD_ROOT%{_mandir} -cat > $RPM_BUILD_ROOT%{_libdir}/%{name}/ld.conf <$RPM_BUILD_ROOT%{_mandir}/man1/$f +for f in camlp5o.opt.1 camlp5r.opt.1 mkcamlp5.1 ocpp5.1 \ + camlp5o.1 camlp5r.1 camlp5sch.1 mkcamlp5.opt.1 ; do + rm -f $RPM_BUILD_ROOT%{_mandir}/man1/$f + echo '.so camlp5.1' >$RPM_BUILD_ROOT%{_mandir}/man1/$f done %clean @@ -146,12 +90,11 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/camlp4* -%attr(755,root,root) %{_bindir}/mkcamlp4 -%{_libdir}/%{name}/camlp4 -%{_mandir}/man1/camlp4*.1* -%{_mandir}/man1/mkcamlp4.1* +%doc CHANGES DEVEL ICHANGES MODE README UPGRADING doc/camlp4.pdf +%attr(755,root,root) %{_bindir}/* +%{_libdir}/ocaml/%{name} +%{_mandir}/man1/* %files doc-html %defattr(644,root,root,755) -%doc docs/html/camlp4* +%doc doc/html/*