| 1 |
Summary: a language for fast and type safe processing of XML documents.
|
| 2 |
Name: cduce
|
| 3 |
Version: 0.4.0
|
| 4 |
Release: 1
|
| 5 |
URL: http://www.cduce.org/
|
| 6 |
Source: cduce-%{version}.tar.gz
|
| 7 |
License: MIT
|
| 8 |
Group: Development/Languages
|
| 9 |
BuildRoot: %{_tmppath}/%{name}-root
|
| 10 |
Requires: pcre >= 4.5
|
| 11 |
|
| 12 |
%description
|
| 13 |
|
| 14 |
CDuce is a functional language for fast and type safe
|
| 15 |
processing of XML documents.
|
| 16 |
|
| 17 |
A complete documentation, reference manual, tutorial,
|
| 18 |
technical articles on implementation and theoretical
|
| 19 |
issues, benchmarks, source code, mailing lists and forums
|
| 20 |
can be found on the CDuce website: http://www.cduce.org.
|
| 21 |
|
| 22 |
%prep
|
| 23 |
%setup -D -q
|
| 24 |
cat > find_requires.sh << EOF
|
| 25 |
#!/bin/sh
|
| 26 |
/usr/lib/rpm/find-requires | fgrep -v libpcre.so.3
|
| 27 |
exit 0
|
| 28 |
EOF
|
| 29 |
chmod +x find_requires.sh
|
| 30 |
|
| 31 |
%define __find_requires %_builddir/%name-%version/find_requires.sh
|
| 32 |
|
| 33 |
%build
|
| 34 |
./configure --without-expat --without-curl --with-ocamlopt
|
| 35 |
make
|
| 36 |
|
| 37 |
%install
|
| 38 |
rm -rf %{buildroot}
|
| 39 |
make install_bin BINDIR=%{buildroot}%{_bindir}
|
| 40 |
make install_doc MANDIR=%{buildroot}%{_mandir} DOCDIR=%{buildroot}%{_docdir}/cduce
|
| 41 |
|
| 42 |
%post
|
| 43 |
[ -a /lib/libpcre.so.3 -o -a /usr/lib/libpcre.so.3 ] || {
|
| 44 |
{ { LIBPCRE0=/lib/libpcre.so.0 && [ -a $LIBPCRE0 ]; } ||
|
| 45 |
{ LIBPCRE0=/usr/lib/libpcre.so.0 && [ -a $LIBPCRE0 ]; }
|
| 46 |
} && ln -s $LIBPCRE0 /usr/lib/libpcre.so.3
|
| 47 |
}
|
| 48 |
|
| 49 |
%clean
|
| 50 |
rm -rf %{buildroot}
|
| 51 |
|
| 52 |
%files
|
| 53 |
%defattr(-,root,root)
|
| 54 |
%{_docdir}/cduce
|
| 55 |
%{_bindir}/cduce
|
| 56 |
%{_bindir}/dtd2cduce
|
| 57 |
%{_mandir}/man1/*cduce.1*
|
| 58 |
|
| 59 |
%changelog
|
| 60 |
* Fri Apr 7 2006 Nils Gesbert <nils.gesbert@ens.fr> 0.4.0
|
| 61 |
Updated the spec file for cduce 0.4.0
|
| 62 |
|
| 63 |
* Mon Sep 1 2003 Giuseppe Castagna <Giuseppe.Castagna@ens.fr>
|
| 64 |
0.1.1
|
| 65 |
* Various bug fixes (expat might now work)
|
| 66 |
* Sequencing operator e1;e2 (equivalent to: let [] = e1 in e2)
|
| 67 |
* Encoded references
|
| 68 |
|
| 69 |
* Fri Jul 4 2003 Giuseppe Castagna <Giuseppe.Castagna@ens.fr>
|
| 70 |
0.1.0
|
| 71 |
* Support for XML Namespaces
|
| 72 |
* Better support for expat; clean Makefile
|
| 73 |
* Get rid of ;; and let fun in examples
|
| 74 |
* Optional ; for record in attribute position (values and types/patterns)
|
| 75 |
* Split --dump into --load and --save
|
| 76 |
* Better handling of strings (specific node in AST)
|
| 77 |
* Map, transform: tail-recursive implementation
|
| 78 |
* Preliminary support for XML Schema
|
| 79 |
* Various bug fixes
|
| 80 |
|
| 81 |
|
| 82 |
|