Commit d88991e5153998da949f59fbcb0e5406bf85e0fd

Authored by perry.werneck@gmail.com
1 parent 9c9c9a2e

Empacotando novo módulo java

Showing 2 changed files with 31 additions and 0 deletions   Show diff stats
@@ -361,6 +361,9 @@ install-oxt: @@ -361,6 +361,9 @@ install-oxt:
361 install-php: 361 install-php:
362 @$(MAKE) -C src/php install 362 @$(MAKE) -C src/php install
363 363
  364 +install-java:
  365 + @$(MAKE) -C src/java install
  366 +
364 install-plugin-rexx: 367 install-plugin-rexx:
365 @$(MAKE) BINDIR=../../../.bin LIB3270_CFLAGS="-I../../src/include" -C src/plugins/rx3270 install 368 @$(MAKE) BINDIR=../../../.bin LIB3270_CFLAGS="-I../../src/include" -C src/plugins/rx3270 install
366 369
pw3270.spec.in
@@ -36,6 +36,7 @@ @@ -36,6 +36,7 @@
36 %define _redhat %(test -e /etc/redhat-release && echo 1 || echo 0) 36 %define _redhat %(test -e /etc/redhat-release && echo 1 || echo 0)
37 %define _php %(which php-config 2> /dev/null > /dev/null && echo 1 || echo 0) 37 %define _php %(which php-config 2> /dev/null > /dev/null && echo 1 || echo 0)
38 %define _bldreq gtk3-devel libopenssl-devel 38 %define _bldreq gtk3-devel libopenssl-devel
  39 +%define _java 1
39 40
40 %if 0%{?_php} 41 %if 0%{?_php}
41 %define phpmajor %(php-config --version | cut -d. -f1) 42 %define phpmajor %(php-config --version | cut -d. -f1)
@@ -106,6 +107,10 @@ BuildRequires: ucpp @@ -106,6 +107,10 @@ BuildRequires: ucpp
106 BuildRequires: php-devel 107 BuildRequires: php-devel
107 %endif 108 %endif
108 109
  110 +%if 0%{?_java}
  111 +BuildRequires: java-devel
  112 +%endif
  113 +
109 BuildRequires: rsvg-view 114 BuildRequires: rsvg-view
110 115
111 %description 116 %description
@@ -196,6 +201,21 @@ Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ @@ -196,6 +201,21 @@ Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@
196 201
197 %endif 202 %endif
198 203
  204 +%if 0%{?_java}
  205 +
  206 +%package java
  207 +Summary: Java class to interact with pw3270
  208 +Group: Development/Libraries/PHP
  209 +Requires: lib3270 = @PACKAGE_VERSION@
  210 +
  211 +%description java
  212 +Java class for lib3270/pw3270 interaction.
  213 +
  214 +Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@
  215 +
  216 +%endif
  217 +
  218 +
199 #---[ Build & Install ]----------------------------------------------------------------------------------------------- 219 #---[ Build & Install ]-----------------------------------------------------------------------------------------------
200 220
201 %prep 221 %prep
@@ -305,6 +325,14 @@ rm -rf $RPM_BUILD_ROOT @@ -305,6 +325,14 @@ rm -rf $RPM_BUILD_ROOT
305 %{_libdir}/php%{phpmajor}/extensions/tn3270.so 325 %{_libdir}/php%{phpmajor}/extensions/tn3270.so
306 %endif 326 %endif
307 327
  328 +%if 0%{?_java}
  329 +%files java
  330 +%defattr(-,root,root)
  331 +%{_jnidir}/libjni3270.so
  332 +%{_jvmjardir}/pw3270.jar
  333 +%endif
  334 +
  335 +
308 #---[ Scripts ]------------------------------------------------------------------------------------------------------- 336 #---[ Scripts ]-------------------------------------------------------------------------------------------------------
309 337
310 %post 338 %post