[jffi] Install *.so file to %{_libdir}/%{name}/
Michal Srb
msrb at fedoraproject.org
Fri Feb 20 13:57:18 UTC 2015
commit 824acd56c8fa363d1ee7a74ee5739000fe2958b6
Author: Michal Srb <msrb at redhat.com>
Date: Fri Feb 20 14:56:54 2015 +0100
Install *.so file to %{_libdir}/%{name}/
jffi.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/jffi.spec b/jffi.spec
index d00620e..4227867 100644
--- a/jffi.spec
+++ b/jffi.spec
@@ -2,7 +2,7 @@
Name: jffi
Version: 1.2.7
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Java Foreign Function Interface
License: LGPLv3+ or ASL 2.0
@@ -67,6 +67,10 @@ cp -p dist/jffi-*-Linux.jar archive/
%install
%mvn_install
+# install *.so
+install -dm 755 %{buildroot}%{_libdir}/%{name}
+cp -rp target/jni/* %{buildroot}%{_libdir}/%{name}/
+
%check
# skip tests on s390 until https://bugzilla.redhat.com/show_bug.cgi?id=1084914 is resolved
%ifnarch s390
@@ -79,12 +83,16 @@ ant -Duse.system.libffi=1 test
%doc COPYING.GPL COPYING.LESSER LICENSE
%files native -f .mfiles-native
+%{_libdir}/%{name}
%doc COPYING.GPL COPYING.LESSER LICENSE
%files javadoc -f .mfiles-javadoc
%doc COPYING.GPL COPYING.LESSER LICENSE
%changelog
+* Fri Feb 20 2015 Michal Srb <msrb at redhat.com> - 1.2.7-3
+- Install *.so file to %{_libdir}/%{name}/
+
* Tue Feb 17 2015 Michal Srb <msrb at redhat.com> - 1.2.7-2
- Build jffi-native
- Introduce javadoc subpackage
More information about the scm-commits
mailing list