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