[projects/template-specs] - LICENSE in base (+few other common doc files), dune post-install cleanup example
qboosh
qboosh at pld-linux.org
Sat Sep 25 17:16:16 CEST 2021
commit fa3b60ecb43931ecf0beb3efe27324ada2551d08
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Sep 25 17:21:06 2021 +0200
- LICENSE in base (+few other common doc files), dune post-install cleanup example
ocaml.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/ocaml.spec b/ocaml.spec
index 2970d1c..1b26c3b 100644
--- a/ocaml.spec
+++ b/ocaml.spec
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/fa3b60ecb43931ecf0beb3efe27324ada2551d08
More information about the pld-cvs-commit
mailing list