cduce-expat.spec 1.99 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Summary: a language for fast and type safe processing of XML documents.
Name: cduce
Version: 0.1.0
Release: 1
URL: http://www.cduce.org/
Source : http://www.cduce.org/download/%{name}-%{version}.tar.gz
License: Qt Public Licence version 1.0
Group: Development/Languages
BuildRoot: %{_tmppath}/%{name}-root
Requires: ocaml >= 3.06    
Requires: findlib >= 0.8   
Requires: pcre-ocaml 
Requires: ocamlnet  >= 0.96
Requires: pxp >= 1.1.9
Requires: expat >= 1.95.6

%description
18
19
20

CDuce,  is a functional language for fast and type safe
processing  of XML documents.
21
22
23
24
25
26
27

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
28
rm -rf $RPM_BUILD_ROOT
29
30
31
32
33
34
35
%setup -q

%build
cd expat
make all   
make install
cd ..
36
make cduce dtd2cduce webpages EXPAT=true PHP=false NATIVE=true PXP_WLEX=false
37
38

%install
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1

install -s -m 755 cduce $RPM_BUILD_ROOT%{_bindir}/cduce
install -s -m 755 dtd2cduce $RPM_BUILD_ROOT%{_bindir}/dtd2cduce
install -m 644 doc/cduce.1 $RPM_BUILD_ROOT%{_mandir}/man1/cduce.1

%post
cd %{_docdir}/%{name}-%{version}/www
ln -s ../img ./
cd ..
ln -s www/manual.html ./


%postun
rm -rf  %{_docdir}/%{name}-%{version}
56
57
58
59
60
61

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
62
%doc README CHANGES web/www web/img
63
64
65

%{_bindir}/cduce
%{_bindir}/dtd2cduce
66
%{_mandir}/man1/cduce.1*
67
68

%changelog
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