summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Moskal2001-10-22 11:04:44 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit50c466e9e0b6fd289816ec0c40234049e685c174 (patch)
tree9a16cca62ad5d88ac1639bc6605f14a0ce152783
parent365feafc3849549331a8149b24e5ee4de8466750 (diff)
downloadsmlnj-50c466e9e0b6fd289816ec0c40234049e685c174.zip
smlnj-50c466e9e0b6fd289816ec0c40234049e685c174.tar.gz
done. stbr
Changed files: smlnj.spec -> 1.2
-rw-r--r--smlnj.spec63
1 files changed, 55 insertions, 8 deletions
diff --git a/smlnj.spec b/smlnj.spec
index 5b51817..ae39ea1 100644
--- a/smlnj.spec
+++ b/smlnj.spec
@@ -1,16 +1,27 @@
Summary: Standard ML of New Jersey
+Summary(pl): Standard ML z New Jersey
Name: smlnj
Version: 110.0.7
Release: 1
Epoch: 1
-License: distributable
+License: BSD-like
Group: Development/Languages
Source0: %{name}-%{version}.tar.bz2
-#URL:
+URL: http://cm.bell-labs.com/cm/cs/what/smlnj/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: tetex-latex
+BuildRequires: tetex-dvips
%description
-SML/NJ.
+Standard ML of New Jersey is most popular implementation of Standard
+Meta Language (SML). It is compilant with SML'97 specification. SML is
+functional language from ML family (like CAML).
+
+%description -l pl
+Standard ML z New Jersey jest najbardzieh popularną implementacją
+języka SML (Standard Meta Language). Jest ona kompatybilna ze
+specyfikacją SML'97. SML jest językiem funkcjonalnym z rodziny ML
+(jak CAML).
%prep
%setup -q
@@ -36,22 +47,58 @@ done
ln -sf %{_libdir}/smlnj/bin/{ml-{burg,lex,yacc},sml,sml-cm} \
$RPM_BUILD_ROOT%{_prefix}/bin
-gzip -9nf 110*
+# documetation... gotta extract from src/ tree
+rm -rf docs
+mkdir docs
+# CM
+cp src/cm/Doc/manual.ps docs/cm.ps
+mkdir docs/cm
+cp src/cm/Doc/HTML/*.{html,css,gif} docs/cm
+# CML
+cp -a src/cml/doc/HTML docs/cml
+cp src/cml/doc/Hardcopy/manual.ps docs/cml.ps
+# ml-burg
+cp src/ml-burg/doc/doc.ps docs/ml-burg.ps
+# ml-lex
+cd src/ml-lex
+latex lexgen.tex
+dvips lexgen.dvi -o ml-lex.ps
+cd ../..
+cp src/ml-lex/ml-lex.ps docs/
+cp src/ml-lex/mlex_int.doc docs/ml-lex-int.txt
+# ml-yacc
+cd src/ml-yacc/doc
+latex mlyacc.tex
+dvips mlyacc.dvi -o ml-yacc.ps
+cd ../../..
+cp src/ml-yacc/doc/ml-yacc.ps docs/
+cp src/ml-yacc/doc/tech.doc docs/ml-yacc-tech.txt
+cp -a src/ml-yacc/examples docs/ml-yacc-examples
+# smlnj-lib
+cp -a src/smlnj-lib/Doc/HTML docs/smlnj-lib
+
+# get rid of docs from src/ tree...
+rm -rf $RPM_BUILD_ROOT%{_libdir}/smlnj/src/*/{Doc,doc}
+
+cp 110* docs/
+rm docs/110-README.html
+gzip -9nf docs/110* docs/*.ps docs/*.txt
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc *.gz
+%doc docs/*
%{_prefix}/bin/*
%dir %{_libdir}/smlnj
%dir %{_libdir}/smlnj/bin
-%{_libdir}/smlnj/bin/.arch-n-opsys
%{_libdir}/smlnj/bin/.heap
+%attr(755,root,root) %{_libdir}/smlnj/bin/.arch-n-opsys
%attr(755,root,root) %{_libdir}/smlnj/bin/.run-sml
%dir %{_libdir}/smlnj/bin/.run
%attr(755,root,root) %{_libdir}/smlnj/bin/.run/*
%{_libdir}/smlnj/bin/*
-%{_libdir}/smlnj/lib
-%{_libdir}/smlnj/src
+# I guess it is not needed...
+#%{_libdir}/smlnj/lib
+#%{_libdir}/smlnj/src