-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqore-python-module.spec
More file actions
120 lines (94 loc) · 3.21 KB
/
Copy pathqore-python-module.spec
File metadata and controls
120 lines (94 loc) · 3.21 KB
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
%{?_datarootdir: %global mydatarootdir %_datarootdir}
%{!?_datarootdir: %global mydatarootdir %{buildroot}/usr/share}
%global module_api %(qore --latest-module-api 2>/dev/null)
%global module_dir %{_libdir}/qore-modules
%global user_module_dir %{mydatarootdir}/qore-modules/
Name: qore-python-module
Version: 1.2.0
Release: 1
Summary: Qorus Integration Engine - Qore Python module
License: MIT
Group: Productivity/Networking/Other
Url: https://qoretechnologies.com
Source: qore-python-module-%{version}.tar.bz2
BuildRequires: gcc-c++
%if 0%{?el7}
BuildRequires: devtoolset-7-gcc-c++
%endif
BuildRequires: cmake >= 3.5
%if 0%{?suse_version} || 0%{?fedora} || 0%{?sles_version} || 0%{?el9}
BuildRequires: python3-devel >= 3.8
Requires: python3 >= 3.8
%else
%if 0%{?redhat} || 0%{?centos}
BuildRequires: python38-devel
Requires: python38
%endif
%endif
BuildRequires: qore-devel >= 1.12.4
BuildRequires: qore-stdlib >= 1.12.4
BuildRequires: qore >= 1.12.4
BuildRequires: doxygen
Requires: qore-module(abi)%{?_isa} = %{module_api}
Requires: %{_bindir}/env
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains the Python module for the Qore Programming Language.
%prep
%setup -q
%build
%if 0%{?el7}
# enable devtoolset7
. /opt/rh/devtoolset-7/enable
unset PYTHONPATH
%endif
export CXXFLAGS="%{?optflags}"
alias python=/usr/bin/python3
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}
%check
qore -l ./python-api-%{module_api}.qmod test/python.qtest -v
%package doc
Summary: python module for Qore
Group: Development/Languages/Other
%description doc
python module for the Qore Programming Language.
This RPM provides API documentation, test and example programs
%files doc
%defattr(-,root,root,-)
%doc docs/python test/*.qtest
%changelog
* Sun Dec 25 2022 David Nichols <[email protected]>
- updated to version 1.2.0
* Tue Dec 20 2022 David Nichols <[email protected]>
- updated to version 1.1.7
* Tue Dec 6 2022 David Nichols <[email protected]>
- updated to version 1.1.6
* Sat Dec 3 2022 David Nichols <[email protected]>
- updated to version 1.1.5
* Wed Jan 26 2022 David Nichols <[email protected]>
- updated to version 1.1.4
* Thu Jan 20 2022 David Nichols <[email protected]>
- updated to version 1.1.3
* Tue Jan 18 2022 David Nichols <[email protected]>
- updated to version 1.1.2
* Sun Oct 31 2021 David Nichols <[email protected]>
- updated to version 1.1.1
* Wed Oct 27 2021 David Nichols <[email protected]>
- updated to version 1.1.0
* Tue Oct 12 2021 David Nichols <[email protected]>
- updated to version 1.0.7
* Fri Oct 8 2021 David Nichols <[email protected]>
- updated to version 1.0.6
* Tue Oct 5 2021 David Nichols <[email protected]>
- updated to version 1.0.5
* Sat Oct 2 2021 David Nichols <[email protected]>
- updated to version 1.0.4
* Sun Aug 15 2021 David Nichols <[email protected]>
- initial version