[packages/ocaml-idl] - fix META install - rel 2
baggins
baggins at pld-linux.org
Tue Mar 23 22:07:58 CET 2021
commit dbad7f89bd4fcca1310cb11ffbf3fe275136f4c2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Mar 23 22:07:40 2021 +0100
- fix META install
- rel 2
ocaml-idl.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/ocaml-idl.spec b/ocaml-idl.spec
index 2baaeca..0e34032 100644
--- a/ocaml-idl.spec
+++ b/ocaml-idl.spec
@@ -13,7 +13,7 @@ Summary(pl.UTF-8): CamlIDL - generator kodu zaślepek oraz wiązania COM dla OCa
%define shortversion %(echo %{version} | tr -d .)
Name: ocaml-idl
Version: 1.09
-Release: 1
+Release: 2
License: QPL v1.0 (compiler), LGPL v2 (library)
Group: Libraries
Source0: https://github.com/xavierleroy/camlidl/archive/camlidl%{shortversion}/camlidl-%{version}.tar.gz
@@ -133,7 +133,7 @@ cp -a tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__rm} -r $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/{comp,dispatch}
install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/camlidl
-cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/camlidl/META <<EOF
+cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/idl/META <<EOF
requires = ""
version = "%{version}"
directory = "+idl"
@@ -141,6 +141,7 @@ archive(byte) = "com.cma"
archive(native) = "com.cmxa"
linkopts = ""
EOF
+ln -sr $RPM_BUILD_ROOT%{_libdir}/ocaml/{idl,site-lib/camlidl}/META
%clean
rm -rf $RPM_BUILD_ROOT
@@ -154,6 +155,7 @@ rm -rf $RPM_BUILD_ROOT
%doc htmlman LICENSE README Changes
%attr(755,root,root) %{_bindir}/camlidl
%dir %{_libdir}/ocaml/idl
+%{_libdir}/ocaml/idl/META
%{_libdir}/ocaml/idl/com.cma
%{_libdir}/ocaml/idl/com.cmi
%if %{with ocaml_opt}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-idl.git/commitdiff/dbad7f89bd4fcca1310cb11ffbf3fe275136f4c2
More information about the pld-cvs-commit
mailing list