Install with XMvn
This commit is contained in:
parent
93f7fe35ce
commit
13f7ff85f7
34
jna.spec
34
jna.spec
@ -1,6 +1,6 @@
|
|||||||
Name: jna
|
Name: jna
|
||||||
Version: 4.4.0
|
Version: 4.4.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Pure Java access to native libraries
|
Summary: Pure Java access to native libraries
|
||||||
# Most of code is dual-licensed under either LGPL 2.1 only or Apache
|
# Most of code is dual-licensed under either LGPL 2.1 only or Apache
|
||||||
# License 2.0. WeakIdentityHashMap.java was taken from Apache CXF,
|
# License 2.0. WeakIdentityHashMap.java was taken from Apache CXF,
|
||||||
@ -28,8 +28,7 @@ Patch3: 0004-Fix-javadoc-build.patch
|
|||||||
Requires: libffi
|
Requires: libffi
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: java-devel
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: jpackage-utils
|
|
||||||
BuildRequires: libffi-devel
|
BuildRequires: libffi-devel
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: ant-junit
|
BuildRequires: ant-junit
|
||||||
@ -94,27 +93,21 @@ ant -Dcompatibility=1.6 -Dplatform.compatibility=1.6 -Dcflags_extra.native="%{op
|
|||||||
find contrib -name build -exec rm -rf {} \; || :
|
find contrib -name build -exec rm -rf {} \; || :
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars
|
|
||||||
install -D -m 644 build/%{name}-min.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
||||||
install -d -m 755 %{buildroot}%{_javadir}/%{name}
|
|
||||||
find contrib -name '*.jar' -exec cp {} %{buildroot}%{_javadir}/%{name}/ \;
|
|
||||||
# NOTE: JNA has highly custom code to look for native jars in this
|
# NOTE: JNA has highly custom code to look for native jars in this
|
||||||
# directory. Since this roughly matches the jpackage guidelines,
|
# directory. Since this roughly matches the jpackage guidelines,
|
||||||
# we'll leave it unchanged.
|
# we'll leave it unchanged.
|
||||||
install -d -m 755 %{buildroot}%{_libdir}/%{name}
|
install -d -m 755 %{buildroot}%{_libdir}/%{name}
|
||||||
install -m 755 build/native*/libjnidispatch*.so %{buildroot}%{_libdir}/%{name}/
|
install -m 755 build/native*/libjnidispatch*.so %{buildroot}%{_libdir}/%{name}/
|
||||||
|
|
||||||
# install maven pom file
|
%mvn_file :jna jna jna/jna
|
||||||
install -Dm 644 pom-%{name}.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
||||||
install -Dm 644 pom-%{name}-platform.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}-platform.pom
|
|
||||||
|
|
||||||
# ... and maven depmap
|
%mvn_package :jna-platform contrib
|
||||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
%mvn_alias :jna-platform :platform
|
||||||
%add_maven_depmap JPP.%{name}-%{name}-platform.pom -f platform %{name}/%{name}-platform.jar -a "net.java.dev.jna:platform"
|
|
||||||
|
|
||||||
# javadocs
|
%mvn_artifact pom-jna.xml build/jna-min.jar
|
||||||
install -p -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
%mvn_artifact pom-jna-platform.xml contrib/platform/dist/jna-platform.jar
|
||||||
cp -a doc/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
|
||||||
|
%mvn_install -J doc/javadoc
|
||||||
|
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
@ -122,15 +115,16 @@ cp -a doc/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
|||||||
%license LICENSE LGPL2.1 AL2.0
|
%license LICENSE LGPL2.1 AL2.0
|
||||||
%{_libdir}/%{name}
|
%{_libdir}/%{name}
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%license LICENSE LGPL2.1 AL2.0
|
%license LICENSE LGPL2.1 AL2.0
|
||||||
%{_javadocdir}/%{name}
|
|
||||||
|
|
||||||
%files contrib -f .mfiles-platform
|
%files contrib -f .mfiles-contrib
|
||||||
%{_javadir}/%{name}
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 03 2017 Michael Simacek <msimacek@redhat.com> - 4.4.0-2
|
||||||
|
- Install with XMvn
|
||||||
|
|
||||||
* Tue Mar 28 2017 Michael Simacek <msimacek@redhat.com> - 4.4.0-1
|
* Tue Mar 28 2017 Michael Simacek <msimacek@redhat.com> - 4.4.0-1
|
||||||
- Update to upstream version 4.4.0
|
- Update to upstream version 4.4.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user