1- Vendor: Microsoft Corporation
2- Distribution: Azure Linux
3-
41# disable python2 by default
52%bcond_with python2
63
74Name: 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
109Summary: Static and spece-efficient trie data structure library
1110
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
1714
18- BuildRequires: gcc
19- BuildRequires: gcc-c++
15+ BuildRequires: autoconf, automake, libtool
16+ BuildRequires: make
17+ BuildRequires: gcc
18+ BuildRequires: gcc-c++
2019BuildRequires: swig
2120BuildRequires: perl-devel
2221BuildRequires: perl-generators
2322%if %{with python2 }
2423BuildRequires: python2-devel
2524%endif
2625BuildRequires: python3-devel
26+ BuildRequires: python3-setuptools
2727BuildRequires: ruby-devel
2828
2929%description
@@ -97,46 +97,47 @@ Ruby language binding for groonga
9797
9898
9999%prep
100- %autosetup
100+ %autosetup -n %{ name }-trie-%{ version }
101101
102102
103103%build
104104%set_build_flags
105105
106+ autoreconf -i
106107%configure --disable-static
107108sed -i 's|^hardcode_libdir_flag_spec= .*|hardcode_libdir_flag_spec= ""|g' libtool
108109sed -i 's|^runpath_var= LD_RUN_PATH|runpath_var= DIE_RPATH_DIE|g' libtool
109- make %{? _smp_mflags }
110+ %{ make_build }
110111
111112# build Perl bindings
112113pushd 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 }
115116popd
116117
117118# build Python bindings
118119# Regenerate Python bindings
119- make --directory= bindings swig-python
120+ %{ make_build } --directory= bindings swig-python
120121
121122pushd bindings/python
122123%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"
124125%py2_build
125126%endif
126127
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"
128129%py3_build
129130popd
130131
131132# build Ruby bindings
132133# Regenerate ruby bindings
133134pushd bindings
134- make swig-ruby
135+ %{ make_build } swig-ruby
135136popd
136137
137138pushd 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 }
140141popd
141142
142143%install
@@ -156,6 +157,7 @@ pushd bindings/python
156157%py2_install
157158%endif
158159%py3_install
160+ rm -rf %{buildroot }/%{python3_sitearch }/marisa-0.0.0-py%{python3_version }.egg-info
159161popd
160162
161163# install Ruby bindings
@@ -172,9 +174,9 @@ rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/sample.pl
172174
173175
174176%files
175- %doc docs/style.css AUTHORS README docs/readme.en.html
177+ %doc docs/style.css AUTHORS README.md docs/readme.en.html
176178%lang(ja) %doc docs/readme.ja.html
177- %license COPYING
179+ %license COPYING.md
178180%{_libdir }/libmarisa.so.*
179181
180182%files devel
@@ -194,6 +196,7 @@ rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/sample.pl
194196%files perl
195197%{perl_vendorarch} /marisa.pm
196198%{perl_vendorarch} /auto/marisa
199+ %{perl_vendorarch} /benchmark.pl
197200
198201%if %{with python2 }
199202%files -n python2-%{name }
@@ -206,15 +209,101 @@ rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/sample.pl
206209%{python3_sitearch }/__pycache__/marisa*
207210%{python3_sitearch }/_marisa* .so
208211%{python3_sitearch }/marisa.py
209- %{python3_sitearch }/marisa-0.0.0-py3.? .egg-info
210212
211213%files ruby
212214%{ruby_vendorarchdir }/marisa.so
213215
214216%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
218307
219308* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-44
220309- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0 commit comments