-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathqore.spec-opensuse
211 lines (181 loc) · 6.68 KB
/
qore.spec-opensuse
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
#
# spec file for package qore
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2014 - 2023 David Nichols <[email protected]>
# Copyright (c) 2014 Petr Vanek <[email protected]>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define module_dir %{_libdir}/qore-modules
Name: qore
Version: 2.0.0
Release: 0
Summary: Multithreaded Programming Language
License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MIT
Group: Development/Languages/Other
Url: http://qore.org
Source: https://github.com/qorelanguage/qore/releases/download/release-%{version}/qore-%{version}.tar.bz2
Patch: qore-libtool-2.4.6.patch
BuildRequires: automake
BuildRequires: bison
BuildRequires: bzip2
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: flex >= 2.5.31
BuildRequires: gcc-c++
BuildRequires: gmp-devel
BuildRequires: libbz2-devel
BuildRequires: libtool
BuildRequires: mpfr-devel
BuildRequires: openssl-devel
BuildRequires: pcre-devel
BuildRequires: pkg-config
BuildRequires: zlib-devel
Requires: %{_bindir}/env
Requires(post): shared-mime-info
Requires(postun): shared-mime-info
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Qore is a scripting language supporting threading and embedded logic, designed
for applying a flexible scripting-based approach to enterprise interface
development but is also useful as a general purpose language.
%package -n libqore12
Summary: The libraries for the qore runtime and qore clients
License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MIT
Group: Development/Languages/Other
Provides: qore-module(abi)%{?_isa} = 1.4
Provides: qore-module(abi)%{?_isa} = 1.3
%description -n libqore12
Qore is a scripting language supporting threading and embedded logic, designed
for applying a flexible scripting-based approach to enterprise interface
development but is also useful as a general purpose language.
This package provides the qore library required for all clients using qore
functionality.
%files -n libqore12
%defattr(-,root,root,-)
%{_libdir}/libqore.so.12.5.0
%{_libdir}/libqore.so.12
%doc COPYING.LGPL COPYING.GPL COPYING.MIT README-LICENSE
%post -n libqore12 -p /sbin/ldconfig
%postun -n libqore12 -p /sbin/ldconfig
%package doc
Summary: API documentation, programming language reference, and Qore example programs
License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MIT
Group: Documentation/HTML
%description doc
Qore is a scripting language supporting threading and embedded logic, designed
for applying a flexible scripting-based approach to enterprise interface
development but is also useful as a general purpose language.
This package provides the HTML documentation for the Qore programming language
and also for user modules delivered with Qore and also example programs.
%files doc
%defattr(-,root,root,-)
%doc docs/lang docs/modules/* examples/ README.md README-MODULES RELEASE-NOTES AUTHORS ABOUT
%package devel
Summary: The header files needed to compile programs using the qore library
License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MIT
Group: Development/Languages/C and C++
Requires: libqore12 = %{version}-%{release}
%description devel
Qore is a scripting language supporting threading and embedded logic, designed
for applying a flexible scripting-based approach to enterprise interface
development but is also useful as a general purpose language.
This package provides header files needed to compile client programs using the
Qore library.
%files devel
%defattr(-,root,root,-)
%{_bindir}/qpp
%{_bindir}/qdx
%{_bindir}/qjar
%{_libdir}/libqore.so
%{_libdir}/pkgconfig/qore.pc
%dir %{_libdir}/cmake
%{_libdir}/cmake/Qore
%{_includedir}/*
%{_datadir}/qore
%{_datadir}/qore/*
%package devel-doc
Summary: C++ API documentation for the qore library
License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MIT
Group: Documentation/HTML
Requires: libqore12 = %{version}-%{release}
%description devel-doc
Qore is a scripting language supporting threading and embedded logic, designed
for applying a flexible scripting-based approach to enterprise interface
development but is also useful as a general purpose language.
%files devel-doc
%defattr(-,root,root,-)
%doc docs/library/html/*
%package misc-tools
Summary: Miscellaneous user tools writen in Qore Programming Language
License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MIT
Group: Development/Tools/Other
Requires: qore = %{version}-%{release}
BuildArch: noarch
%description misc-tools
This package contains tool for working with:
- REST APIs
- SQL Databases
%files misc-tools
%defattr(-,root,root,-)
%{_bindir}/qdp
%{_bindir}/qget
%{_bindir}/rest
%{_bindir}/sfrest
%{_bindir}/saprest
%{_bindir}/sqlutil
%{_bindir}/schema-reverse
%prep
%setup -q
%patch -p1
# silence the executable warning for examples
find examples -type f|xargs chmod 644
%build
aclocal
autoreconf -fi
%if "%_lib" == "lib64"
c64=--enable-64bit
%endif
%configure --disable-debug --disable-static $c64
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_prefix}/bin
mkdir -p %{buildroot}/%{module_dir}/%{version}
mkdir -p %{buildroot}%{_prefix}/man/man1
make install prefix=%{_prefix} DESTDIR=%{buildroot}
rm %{buildroot}/%{_libdir}/libqore.la
%fdupes -s docs
# mime info
cp addon/freedesktop/qore.xml %{buildroot}/%{_datadir}/mime/packages
%check
export QORE_MODULE_DIR=qlib
./qore examples/test/qore/threads/background.qtest
./qore examples/test/qore/threads/deadlock.qtest
./qore examples/test/qore/threads/max-threads-count.qtest
./qore examples/test/qore/threads/set_thread_init.qtest
./qore examples/test/qore/threads/thread-object.qtest
./qore examples/test/qore/threads/thread-resources.qtest
./qore examples/test/qore/threads/tld.qtest
%post
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null
%postun
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null
%files
%defattr(-,root,root,-)
%{_bindir}/qore
%{_bindir}/qdbg*
%{module_dir}
%dir %{_datadir}/qore-modules
%{_datadir}/qore-modules/%{version}
%{_datadir}/mime/packages/qore.xml
%{_mandir}/man1/qore.1.*
%changelog