@@ -5,25 +5,26 @@ Distribution: Azure Linux
5
5
%bcond_with python2
6
6
7
7
Name: marisa
8
- Version: 0.2.4
9
- Release: 45 %{?dist }
8
+ Version: 0.2.6
9
+ Release: 12 %{?dist }
10
10
Summary: Static and spece-efficient trie data structure library
11
11
12
- License: BSD or LGPLv2+
13
- URL: https://code.google.com/p/marisa-trie
14
- # Currently the working URL is
15
- # https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/marisa-trie/%%{name}-%%{version}.tar.gz
16
- Source0: https://marisa-trie.googlecode.com/files/%{name }-%{version }.tar.gz
12
+ License: BSD-2-Clause OR LGPL-2.1 -or-later
13
+ URL: https://github.com/s-yata/marisa-trie
14
+ Source0: https://github.com/s-yata/marisa-trie/archive/refs/tags/v%{version }.tar.gz#/%{name}-%{version}.tar.gz
17
15
18
- BuildRequires: gcc
19
- BuildRequires: gcc-c++
16
+ BuildRequires: autoconf, automake, libtool
17
+ BuildRequires: make
18
+ BuildRequires: gcc
19
+ BuildRequires: gcc-c++
20
20
BuildRequires: swig
21
21
BuildRequires: perl-devel
22
22
BuildRequires: perl-generators
23
23
%if %{with python2 }
24
24
BuildRequires: python2-devel
25
25
%endif
26
26
BuildRequires: python3-devel
27
+ BuildRequires: python3-setuptools
27
28
BuildRequires: ruby-devel
28
29
29
30
%description
@@ -97,46 +98,47 @@ Ruby language binding for groonga
97
98
98
99
99
100
%prep
100
- %autosetup
101
+ %autosetup -n %{ name }-trie-%{ version }
101
102
102
103
103
104
%build
104
105
%set_build_flags
105
106
107
+ autoreconf -i
106
108
%configure --disable-static
107
109
sed -i 's|^hardcode_libdir_flag_spec= .*|hardcode_libdir_flag_spec= ""|g' libtool
108
110
sed -i 's|^runpath_var= LD_RUN_PATH|runpath_var= DIE_RPATH_DIE|g' libtool
109
- make %{? _smp_mflags }
111
+ %{ make_build }
110
112
111
113
# build Perl bindings
112
114
pushd bindings/perl
113
- %{__perl} Makefile.PL INC= "-I%{_builddir }/%{name }-%{version }/lib " LIBS= "-L%{_builddir }/%{name }-%{version }/lib/.libs -lmarisa" INSTALLDIRS= vendor
114
- make %{? _smp_mflags }
115
+ %{__perl} Makefile.PL INC= "-I%{_builddir }/%{name }-trie- %{version }/include " LIBS= "-L%{_builddir }/%{name }-trie- %{version }/lib/%{ name } /.libs -lmarisa" INSTALLDIRS= vendor
116
+ %{ make_build }
115
117
popd
116
118
117
119
# build Python bindings
118
120
# Regenerate Python bindings
119
- make --directory= bindings swig-python
121
+ %{ make_build } --directory= bindings swig-python
120
122
121
123
pushd bindings/python
122
124
%if %{with python2 }
123
- %{__python2} setup.py build_ext --include-dirs= "%{_builddir }/%{name }-%{version }/lib " --library-dirs= "%{_builddir }/%{name }-%{version }/lib/.libs"
125
+ %{__python2} setup.py build_ext --include-dirs= "%{_builddir }/%{name }-trie- %{version }/include " --library-dirs= "%{_builddir }/%{name }-trie- %{version }/lib/%{ name } /.libs"
124
126
%py2_build
125
127
%endif
126
128
127
- %{__python3} setup.py build_ext --include-dirs= "%{_builddir }/%{name }-%{version }/lib " --library-dirs= "%{_builddir }/%{name }-%{version }/lib/.libs"
129
+ %{__python3} setup.py build_ext --include-dirs= "%{_builddir }/%{name }-trie- %{version }/include " --library-dirs= "%{_builddir }/%{name }-trie- %{version }/lib/%{ name } /.libs"
128
130
%py3_build
129
131
popd
130
132
131
133
# build Ruby bindings
132
134
# Regenerate ruby bindings
133
135
pushd bindings
134
- make swig-ruby
136
+ %{ make_build } swig-ruby
135
137
popd
136
138
137
139
pushd bindings/ruby
138
- ruby extconf.rb --with-opt-include= "%{_builddir }/%{name }-%{version }/lib " --with-opt-lib= "%{_builddir }/%{name }-%{version }/lib/.libs" --vendor
139
- make
140
+ ruby extconf.rb --with-opt-include= "%{_builddir }/%{name }-trie- %{version }/include " --with-opt-lib= "%{_builddir }/%{name }-trie- %{version }/lib/%{ name } /.libs" --vendor
141
+ %{ make_build }
140
142
popd
141
143
142
144
%install
@@ -156,6 +158,7 @@ pushd bindings/python
156
158
%py2_install
157
159
%endif
158
160
%py3_install
161
+ rm -rf %{buildroot }/%{python3_sitearch }/marisa-0.0.0-py%{python3_version }.egg-info
159
162
popd
160
163
161
164
# install Ruby bindings
@@ -172,9 +175,9 @@ rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/sample.pl
172
175
173
176
174
177
%files
175
- %doc docs/style.css AUTHORS README docs/readme.en.html
178
+ %doc docs/style.css AUTHORS README.md docs/readme.en.html
176
179
%lang(ja) %doc docs/readme.ja.html
177
- %license COPYING
180
+ %license COPYING.md
178
181
%{_libdir }/libmarisa.so.*
179
182
180
183
%files devel
@@ -194,6 +197,7 @@ rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/sample.pl
194
197
%files perl
195
198
%{perl_vendorarch} /marisa.pm
196
199
%{perl_vendorarch} /auto/marisa
200
+ %{perl_vendorarch} /benchmark.pl
197
201
198
202
%if %{with python2 }
199
203
%files -n python2-%{name }
@@ -206,15 +210,101 @@ rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/sample.pl
206
210
%{python3_sitearch }/__pycache__/marisa*
207
211
%{python3_sitearch }/_marisa* .so
208
212
%{python3_sitearch }/marisa.py
209
- %{python3_sitearch }/marisa-0.0.0-py3.? .egg-info
210
213
211
214
%files ruby
212
215
%{ruby_vendorarchdir }/marisa.so
213
216
214
217
%changelog
215
- * Mon Mar 15 2021 Henry Li <lihl@microsoft.com> - 0.2.4-45
216
- - Initial CBL-Mariner import from Fedora 32 (license: MIT).
217
- - Fix distro condition checking
218
+ * Mon Apr 28 2025 Archana Shettigar <v-shettigara@microsoft.com> - 0.2.6-12
219
+ - Initial Azure Linux import from Fedora 41 (license: MIT).
220
+ - License verified
221
+
222
+ * Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-11
223
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
224
+
225
+ * Wed Jun 12 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.2.6-10
226
+ - Perl 5.40 rebuild
227
+
228
+ * Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.2.6-9
229
+ - Rebuilt for Python 3.13
230
+
231
+ * Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-8
232
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
233
+
234
+ * Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-7
235
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
236
+
237
+ * Wed Jan 03 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.2.6-6
238
+ - Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.3
239
+
240
+ * Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-5
241
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
242
+
243
+ * Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.2.6-4
244
+ - Perl 5.38 rebuild
245
+
246
+ * Mon Jun 26 2023 Python Maint <python-maint@redhat.com> - 0.2.6-3
247
+ - Rebuilt for Python 3.12
248
+
249
+ * Tue Jun 20 2023 Peng Wu <pwu@redhat.com> - 0.2.6-2
250
+ - Migrate to SPDX license
251
+
252
+ * Mon Jun 19 2023 Peng Wu <pwu@redhat.com> - 0.2.6-1
253
+ - Update to 0.2.6
254
+ - Resolves: RHBZ#2215688
255
+
256
+ * Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.2.4-61
257
+ - Rebuilt for Python 3.12
258
+
259
+ * Thu Jun 8 2023 Peng Wu <pwu@redhat.com> - 0.2.4-60
260
+ - Add BuildRequires python3-setuptools
261
+ - Use make_build macro instead of just make
262
+ - Resolves: RHBZ#2048094, RHBZ#2155002
263
+
264
+ * Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-59
265
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
266
+
267
+ * Wed Jan 04 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.2.4-58
268
+ - Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.2
269
+
270
+ * Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-57
271
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
272
+
273
+ * Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.2.4-56
274
+ - Rebuilt for Python 3.11
275
+
276
+ * Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.2.4-55
277
+ - Perl 5.36 rebuild
278
+
279
+ * Thu Jan 27 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.2.4-54
280
+ - F-36: rebuild against ruby31
281
+
282
+ * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-53
283
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
284
+
285
+ * Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-52
286
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
287
+
288
+ * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.2.4-51
289
+ - Rebuilt for Python 3.10
290
+
291
+ * Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.2.4-50
292
+ - Perl 5.34 rebuild
293
+
294
+ * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-49
295
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
296
+
297
+ * Wed Jan 06 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.2.4-48
298
+ - F-34: rebuild against ruby 3.0
299
+
300
+ * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-47
301
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
302
+
303
+ * Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.2.4-46
304
+ - Perl 5.32 rebuild
305
+
306
+ * Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.4-45
307
+ - Rebuilt for Python 3.9
218
308
219
309
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-44
220
310
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0 commit comments