Commit b517bfb0 authored by Pietro Abate's avatar Pietro Abate

[r2006-05-05 14:59:40 by ngesbert] Updated spec file for CDuce 0.4.0

Original author: ngesbert
Date: 2006-05-05 14:59:40+00:00
parent f9bdab2d
......@@ -7,6 +7,7 @@ Source: cduce-%{version}.tar.gz
License: MIT
Group: Development/Languages
BuildRoot: %{_tmppath}/%{name}-root
Requires: pcre >= 4.5
%description
......@@ -19,7 +20,15 @@ issues, benchmarks, source code, mailing lists and forums
can be found on the CDuce website: http://www.cduce.org.
%prep
%setup -q
%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
%build
./configure --without-expat --without-curl --with-ocamlopt
......@@ -30,6 +39,13 @@ rm -rf %{buildroot}
make install_bin BINDIR=%{buildroot}%{_bindir}
make install_doc MANDIR=%{buildroot}%{_mandir} DOCDIR=%{buildroot}%{_docdir}/cduce
%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
}
%clean
rm -rf %{buildroot}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment