msrb pushed to jffi (f22). "Install version-less symlink for .so file"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 08:42:55 UTC 2015
>From 4b64555a8796792fb3b98445727d1455bf002b7d Mon Sep 17 00:00:00 2001
From: Michal Srb <msrb at redhat.com>
Date: Fri, 20 Feb 2015 20:22:26 +0100
Subject: Install version-less symlink for .so file
diff --git a/jffi.spec b/jffi.spec
index 00da88f..1d3bd06 100644
--- a/jffi.spec
+++ b/jffi.spec
@@ -1,8 +1,9 @@
%global cluster jnr
+%global sover 1.2
Name: jffi
Version: 1.2.7
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Java Foreign Function Interface
License: LGPLv3+ or ASL 2.0
@@ -70,6 +71,9 @@ cp -p dist/jffi-*-Linux.jar archive/
# install *.so
install -dm 755 %{buildroot}%{_libdir}/%{name}
cp -rp target/jni/* %{buildroot}%{_libdir}/%{name}/
+# create version-less symlink for .so file
+sofile=`find %{buildroot}%{_libdir}/%{name} -name lib%{name}-%{sover}.so`
+ln -sr ${sofile} `dirname ${sofile}`/lib%{name}.so
%check
# skip tests on s390 until https://bugzilla.redhat.com/show_bug.cgi?id=1084914 is resolved
@@ -90,6 +94,9 @@ ant -Duse.system.libffi=1 test
%doc COPYING.GPL COPYING.LESSER LICENSE
%changelog
+* Fri Feb 20 2015 Michal Srb <msrb at redhat.com> - 1.2.7-5
+- Install version-less symlink for .so file
+
* Fri Feb 20 2015 Michal Srb <msrb at redhat.com> - 1.2.7-4
- Fix rpmlint warnings
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/jffi.git/commit/?h=f22&id=4b64555a8796792fb3b98445727d1455bf002b7d
More information about the scm-commits
mailing list