Commit d88991e5153998da949f59fbcb0e5406bf85e0fd
1 parent
9c9c9a2e
Exists in
master
and in
5 other branches
Empacotando novo módulo java
Showing
2 changed files
with
31 additions
and
0 deletions
Show diff stats
Makefile.in
| ... | ... | @@ -361,6 +361,9 @@ install-oxt: |
| 361 | 361 | install-php: |
| 362 | 362 | @$(MAKE) -C src/php install |
| 363 | 363 | |
| 364 | +install-java: | |
| 365 | + @$(MAKE) -C src/java install | |
| 366 | + | |
| 364 | 367 | install-plugin-rexx: |
| 365 | 368 | @$(MAKE) BINDIR=../../../.bin LIB3270_CFLAGS="-I../../src/include" -C src/plugins/rx3270 install |
| 366 | 369 | ... | ... |
pw3270.spec.in
| ... | ... | @@ -36,6 +36,7 @@ |
| 36 | 36 | %define _redhat %(test -e /etc/redhat-release && echo 1 || echo 0) |
| 37 | 37 | %define _php %(which php-config 2> /dev/null > /dev/null && echo 1 || echo 0) |
| 38 | 38 | %define _bldreq gtk3-devel libopenssl-devel |
| 39 | +%define _java 1 | |
| 39 | 40 | |
| 40 | 41 | %if 0%{?_php} |
| 41 | 42 | %define phpmajor %(php-config --version | cut -d. -f1) |
| ... | ... | @@ -106,6 +107,10 @@ BuildRequires: ucpp |
| 106 | 107 | BuildRequires: php-devel |
| 107 | 108 | %endif |
| 108 | 109 | |
| 110 | +%if 0%{?_java} | |
| 111 | +BuildRequires: java-devel | |
| 112 | +%endif | |
| 113 | + | |
| 109 | 114 | BuildRequires: rsvg-view |
| 110 | 115 | |
| 111 | 116 | %description |
| ... | ... | @@ -196,6 +201,21 @@ Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ |
| 196 | 201 | |
| 197 | 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 | 219 | #---[ Build & Install ]----------------------------------------------------------------------------------------------- |
| 200 | 220 | |
| 201 | 221 | %prep |
| ... | ... | @@ -305,6 +325,14 @@ rm -rf $RPM_BUILD_ROOT |
| 305 | 325 | %{_libdir}/php%{phpmajor}/extensions/tn3270.so |
| 306 | 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 | 336 | #---[ Scripts ]------------------------------------------------------------------------------------------------------- |
| 309 | 337 | |
| 310 | 338 | %post | ... | ... |