]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - ocaml.spec
- LICENSE in base (+few other common doc files), dune post-install cleanup example
[projects/template-specs.git] / ocaml.spec
index 2970d1c93302eaa9fc57a67c06cd68fb3cbf630d..1b26c3b24ac40ed8b491bd39aadd076ac147b222 100644 (file)
@@ -78,11 +78,18 @@ dune install --destdir=$RPM_BUILD_ROOT
 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 #cp -r foo bar $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+# cleanup after dune install
+## sources
+# %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/%{module}/*.ml
+## packaged as %doc
+#%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/%{module}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc CHANGES.md LICENSE.md README.md
 %attr(755,root,root) %{_libdir}/ocaml/stublibs/*.so
 %dir %{_libdir}/ocaml/%{module}
 %{_libdir}/ocaml/%{module}/META
@@ -93,7 +100,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%doc LICENSE
 %{_libdir}/ocaml/%{module}/*.cmi
 %{_libdir}/ocaml/%{module}/*.cmo
 %{_libdir}/ocaml/%{module}/*.cmt
This page took 0.11242 seconds and 4 git commands to generate.