cduce.spec 2.16 KB
Newer Older
1 2
Summary: a language for fast and type safe processing of XML documents.
Name: cduce
3
Version: 0.4.0
4 5
Release: 1
URL: http://www.cduce.org/
6
Source: cduce-%{version}.tar.gz
7
License: MIT
8 9
Group: Development/Languages
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 18 19 20 21 22

A  complete  documentation,  reference  manual,  tutorial,
technical   articles  on  implementation  and  theoretical
issues, benchmarks, source code, mailing lists and  forums
can be found on the CDuce website: http://www.cduce.org.

%prep
23 24 25 26 27 28 29 30 31
%setup -D -q
cat > find_requires.sh << EOF
#!/bin/sh
/usr/lib/rpm/find-requires | fgrep -v libpcre.so.3
exit 0
EOF
chmod +x find_requires.sh

%define __find_requires %_builddir/%name-%version/find_requires.sh
32 33

%build
34 35
./configure --without-expat --without-curl --with-ocamlopt
make 
36 37

%install
38 39 40
rm -rf %{buildroot}
make install_bin BINDIR=%{buildroot}%{_bindir}
make install_doc MANDIR=%{buildroot}%{_mandir} DOCDIR=%{buildroot}%{_docdir}/cduce
41

42 43 44 45 46 47 48
%post
[ -a /lib/libpcre.so.3 -o -a /usr/lib/libpcre.so.3 ] || {
  { { LIBPCRE0=/lib/libpcre.so.0 && [ -a $LIBPCRE0 ]; } ||
    { LIBPCRE0=/usr/lib/libpcre.so.0 && [ -a $LIBPCRE0 ]; }
  } && ln -s $LIBPCRE0 /usr/lib/libpcre.so.3
}

49
%clean
50
rm -rf %{buildroot}
51 52 53

%files
%defattr(-,root,root)
54
%{_docdir}/cduce
55 56
%{_bindir}/cduce
%{_bindir}/dtd2cduce
57
%{_mandir}/man1/*cduce.1*
58 59

%changelog
60 61 62
* Fri Apr  7 2006 Nils Gesbert <nils.gesbert@ens.fr> 0.4.0
  Updated the spec file for cduce 0.4.0

63 64 65 66 67 68
* Mon Sep  1 2003 Giuseppe Castagna <Giuseppe.Castagna@ens.fr>
0.1.1
  * Various bug fixes  (expat might now work)
  * Sequencing operator   e1;e2  (equivalent to: let [] = e1 in e2)
  * Encoded references

69 70 71 72 73 74 75 76 77 78 79 80
* Fri Jul  4 2003 Giuseppe Castagna <Giuseppe.Castagna@ens.fr>
0.1.0
  * Support for XML Namespaces
  * Better support for expat; clean Makefile
  * Get rid of ;; and let fun in examples
  * Optional ; for record in attribute position (values and types/patterns)
  * Split --dump into --load and --save
  * Better handling of strings (specific node in AST)
  * Map, transform: tail-recursive implementation
  * Preliminary support for XML Schema
  * Various bug fixes

81 82