-
Notifications
You must be signed in to change notification settings - Fork 1
/
qore-jni-module.spec
127 lines (101 loc) · 3.29 KB
/
qore-jni-module.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
%{?_datarootdir: %global mydatarootdir %_datarootdir}
%{!?_datarootdir: %global mydatarootdir %{buildroot}/usr/share}
%global module_dir %{_libdir}/qore-modules
%global user_module_dir %{mydatarootdir}/qore-modules/
Name: qore-jni-module
Version: 2.3.2
Release: 1
Summary: Qorus Integration Engine - Qore jni module
License: MIT
Group: Productivity/Networking/Other
Url: https://qoretechnologies.com
Source: qore-jni-module-%{version}.tar.bz2
BuildRequires: gcc-c++
%if 0%{?el7}
BuildRequires: devtoolset-7-gcc-c++
%endif
BuildRequires: cmake >= 3.5
BuildRequires: qore-devel >= 1.19
BuildRequires: qore-stdlib >= 1.19
BuildRequires: qore >= 1.19
BuildRequires: java-17-openjdk-devel
BuildRequires: unzip
BuildRequires: doxygen
%if 0%{?suse_version}
%if 0%{?sles_version} && %{?sles_version} <= 10
BuildRequires: bzip2
%else
BuildRequires: libbz2-devel
%endif
%else
BuildRequires: bzip2-devel
%endif
Requires: %{_bindir}/env
Requires: qore >= 1.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: java-17-openjdk-devel
Requires: java-17-openjdk
%if 0%{?el8}
# disable automatic library dependencies due to broken java 11 lib handling in centos 8
AutoReqProv: no
%endif
%description
This package contains the jni module for the Qore Programming Language.
%prep
%setup -q
%build
%if 0%{?el7}
# enable devtoolset7
. /opt/rh/devtoolset-7/enable
%endif
export CXXFLAGS="%{?optflags}"
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DCMAKE_SKIP_RPATH=1 -DCMAKE_SKIP_INSTALL_RPATH=1 -DCMAKE_SKIP_BUILD_RPATH=1 -DCMAKE_PREFIX_PATH=${_prefix}/lib64/cmake/Qore .
make %{?_smp_mflags}
make %{?_smp_mflags} docs
sed -i 's/#!\/usr\/bin\/env qore/#!\/usr\/bin\/qore/' test/*.qtest
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%{module_dir}
%{user_module_dir}
%{_bindir}/qjava2jar
%{_bindir}/qjavac
%dir /usr/share/qore/java
/usr/share/qore/java/qore-jni-compiler.jar
/usr/share/qore/java/qore-jni.jar
%package doc
Summary: jni module for Qore
Group: Development/Languages/Other
%description doc
jni module for the Qore Programming Language.
This RPM provides API documentation, test and example programs
%files doc
%defattr(-,root,root,-)
%doc docs/jni test/*.qtest test/*.jar test/*.java
%changelog
* Thu Sep 14 2023 David Nichols <david@qore.org>
- updated to version 2.3.2
* Sun Aug 27 2023 David Nichols <david@qore.org>
- updated to version 2.3.1
* Fri Aug 18 2023 David Nichols <david@qore.org>
- updated to version 2.3.0
* Thu Aug 3 2023 David Nichols <david@qore.org>
- updated to version 2.2.1
* Tue Aug 1 2023 David Nichols <david@qore.org>
- updated to version 2.2.0
* Sun Mar 19 2023 David Nichols <david@qore.org>
- updated to version 2.1.1
* Tue Jan 24 2023 David Nichols <david@qore.org>
- updated to version 2.1.0
* Mon Dec 19 2022 David Nichols <david@qore.org>
- updated to version 2.0.11
* Sat Oct 29 2022 David Nichols <david@qore.org>
- updated to version 2.0.10
* Sat Sep 17 2022 David Nichols <david@qore.org>
- updated to version 2.0.9
* Tue Aug 9 2022 David Nichols <david@qore.org>
- updated to version 2.0.8
* Thu Apr 21 2022 David Nichols <david@qore.org>
- updated to version 2.0.7
* Thu Jan 27 2022 David Nichols <david@qore.org>
- initial spec file for 2.0.6 release