xref: /unit/pkg/rpm/Makefile.jsc-common (revision 1497:de07e42484ec)
1980Sdefan@nginx.comMODULES+=			jsc_common
2980Sdefan@nginx.comMODULE_SUFFIX_jsc_common=	jsc-common
3980Sdefan@nginx.com
4980Sdefan@nginx.comMODULE_SUMMARY_jsc_common=	Java shared packages for NGINX Unit
5980Sdefan@nginx.com
6980Sdefan@nginx.comMODULE_VERSION_jsc_common=	$(VERSION)
7980Sdefan@nginx.comMODULE_RELEASE_jsc_common=	1
8980Sdefan@nginx.com
91160Sdefan@nginx.comJAVA_ARCH_jsc_common=	$(shell /usr/lib/jvm/java-1.8.0/bin/java -XshowSettings 2>&1 | grep -F -e os.arch | sed -e 's/^.*= //')
101160Sdefan@nginx.com
11*1496St.nateldemoura@f5.comMODULE_CONFARGS_jsc_common=	java --home=/usr/lib/jvm/java-1.8.0 --lib-path=/usr/lib/jvm/jre-1.8.0/lib/$(JAVA_ARCH_jsc_common) --jars=/usr/share/unit-jsc-common/
12980Sdefan@nginx.comMODULE_MAKEARGS_jsc_common=	java
13980Sdefan@nginx.comMODULE_INSTARGS_jsc_common=	java-shared-install
14980Sdefan@nginx.com
15980Sdefan@nginx.comMODULE_SOURCES_jsc_common=	COPYRIGHT.unit-jsc-common
16980Sdefan@nginx.com
171338Smax.romanov@nginx.comBUILD_DEPENDS_jsc_common=	java-1.8.0-openjdk-devel curl
18980Sdefan@nginx.comBUILD_DEPENDS+=		$(BUILD_DEPENDS_jsc_common)
19980Sdefan@nginx.com
20980Sdefan@nginx.comdefine MODULE_DEFINITIONS_jsc_common
21980Sdefan@nginx.comBuildArch: noarch
22980Sdefan@nginx.comendef
23980Sdefan@nginx.comexport MODULE_DEFINITIONS_jsc_common
24980Sdefan@nginx.com
25980Sdefan@nginx.comdefine MODULE_FILES_jsc_common
26980Sdefan@nginx.com%dir %{_datadir}/unit-jsc-common
27980Sdefan@nginx.com%{_datadir}/unit-jsc-common/*
28980Sdefan@nginx.comendef
29980Sdefan@nginx.comexport MODULE_FILES_jsc_common
30980Sdefan@nginx.com
31980Sdefan@nginx.comdefine MODULE_POST_jsc_common
32980Sdefan@nginx.comcat <<BANNER
33980Sdefan@nginx.com----------------------------------------------------------------------
34980Sdefan@nginx.com
35980Sdefan@nginx.comThe $(MODULE_SUMMARY_jsc_common) have been installed.
36980Sdefan@nginx.com
37980Sdefan@nginx.comPlease find licenses and related information here:
38980Sdefan@nginx.com  /usr/share/doc/unit-jsc-common/COPYRIGHT
39980Sdefan@nginx.com
40980Sdefan@nginx.com----------------------------------------------------------------------
41980Sdefan@nginx.comBANNER
42980Sdefan@nginx.comendef
43980Sdefan@nginx.comexport MODULE_POST_jsc_common
44