From 170a6c18a7cef9b760a6b1e9e5331b465d9d4ca4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Mon, 16 Feb 2009 12:05:48 +0000 Subject: [PATCH] - initial revision Changed files: camlp5.spec -> 1.1 --- camlp5.spec | 157 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100644 camlp5.spec diff --git a/camlp5.spec b/camlp5.spec new file mode 100644 index 0000000..4941098 --- /dev/null +++ b/camlp5.spec @@ -0,0 +1,157 @@ +Summary: Objective Caml Preprocessor +Summary(pl.UTF-8): Preprocesor OCamla +Name: camlp5 +Version: 5.11 +Release: 0.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 +URL: http://caml.inria.fr/ +BuildRequires: db-devel >= 4.1 +Requires: %{name} = %{epoch}:%{version}-%{release} +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers +tools for syntax (grammars) and the ability to modify the concrete +syntax of the language (quotations, syntax extensions). + +Camlp4 can parse normal Ocaml concrete syntax or any other +user-definable syntax. As an example, an alternative syntax is +provided, named revised, because it tries to fix some small problems +of the normal syntax. + +Camlp4 can pretty print the normal Ocaml concrete syntax or the +revised one. It is therefore always possible to have a version of your +sources compilable by the Objective Caml compiler without +preprocessing. + +%description -l pl.UTF-8 +Camlp4 jest preprocesorem OCamla. Oferuje narzędzia do manipulowania +składnią (gramatyki) oraz możliwość modyfikowania oryginalnej składni +języka (cytowania, rozszerzenia). + +Camlp4 może sparsować oryginalną składnię Ocamla lub dowolną inną +definiowalną przez użytkownika. Jako przykład podana jest alternatywna +składnia (revised syntax), która próbuje poprawić drobne problemy +występujące w składni oryginalnej. + +Camlp4 umie ładnie formatować źródła zarówno w oryginalnej jak i +poprawionej składni OCamla. Potrafi także tłumaczyć programy z jednej +składni na drugą. + +%package doc-html +Summary: Objective Caml Preprocessor - HTML documentation +Summary(pl.UTF-8): Preprocesor OCamla - dokumentacja HTML +Group: Development/Languages + +%description doc-html +Objective Caml Preprocessor - HTML documentation. + +%description doc-html -l pl.UTF-8 +Preprocesor OCamla - dokumentacja HTML. + +%prep +%setup -q +cp %{SOURCE1} docs/camlp4.pdf +tar xzf %{SOURCE2} + +%build +cp -f /usr/share/automake/config.sub config/gnu +./configure \ + -cc "%{__cc}" \ + -bindir %{_bindir} \ + -libdir %{_libdir}/%{name} \ + -mandir %{_mandir}/man1 \ + -host %{_host} \ + %{!?with_tk:-no-tk} \ + -with-pthread \ + -x11lib %{_libdir} + +%{__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}} +install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/site-lib + +%{__make} install \ + BINDIR=$RPM_BUILD_ROOT%{_bindir} \ + LIBDIR=$RPM_BUILD_ROOT%{_libdir}/%{name} \ + MANDIR=$RPM_BUILD_ROOT%{_mandir} + +cat > $RPM_BUILD_ROOT%{_libdir}/%{name}/ld.conf <$RPM_BUILD_ROOT%{_mandir}/man1/$f +done + +%clean +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* + +%files doc-html +%defattr(644,root,root,755) +%doc docs/html/camlp4* -- 2.43.0