Skip to content

Commit f752204

Browse files
committed
Upgrade: marisa version to 0.2.6
1 parent e8f8ab6 commit f752204

File tree

3 files changed

+118
-28
lines changed

3 files changed

+118
-28
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"marisa-0.2.4.tar.gz": "67a7a4f70d3cc7b0a85eb08f10bc3eaf6763419f0c031f278c1f919121729fb3"
3+
"marisa-0.2.6.tar.gz": "1063a27c789e75afa2ee6f1716cc6a5486631dcfcb7f4d56d6485d2462e566de"
44
}
55
}

SPECS-EXTENDED/marisa/marisa.spec

Lines changed: 115 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,26 @@ Distribution: Azure Linux
55
%bcond_with python2
66

77
Name: marisa
8-
Version: 0.2.4
9-
Release: 45%{?dist}
8+
Version: 0.2.6
9+
Release: 12%{?dist}
1010
Summary: Static and spece-efficient trie data structure library
1111

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
1715

18-
BuildRequires: gcc
19-
BuildRequires: gcc-c++
16+
BuildRequires: autoconf, automake, libtool
17+
BuildRequires: make
18+
BuildRequires: gcc
19+
BuildRequires: gcc-c++
2020
BuildRequires: swig
2121
BuildRequires: perl-devel
2222
BuildRequires: perl-generators
2323
%if %{with python2}
2424
BuildRequires: python2-devel
2525
%endif
2626
BuildRequires: python3-devel
27+
BuildRequires: python3-setuptools
2728
BuildRequires: ruby-devel
2829

2930
%description
@@ -97,46 +98,47 @@ Ruby language binding for groonga
9798

9899

99100
%prep
100-
%autosetup
101+
%autosetup -n %{name}-trie-%{version}
101102

102103

103104
%build
104105
%set_build_flags
105106

107+
autoreconf -i
106108
%configure --disable-static
107109
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
108110
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
109-
make %{?_smp_mflags}
111+
%{make_build}
110112

111113
# build Perl bindings
112114
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}
115117
popd
116118

117119
# build Python bindings
118120
# Regenerate Python bindings
119-
make --directory=bindings swig-python
121+
%{make_build} --directory=bindings swig-python
120122

121123
pushd bindings/python
122124
%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"
124126
%py2_build
125127
%endif
126128

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"
128130
%py3_build
129131
popd
130132

131133
# build Ruby bindings
132134
# Regenerate ruby bindings
133135
pushd bindings
134-
make swig-ruby
136+
%{make_build} swig-ruby
135137
popd
136138

137139
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}
140142
popd
141143

142144
%install
@@ -156,6 +158,7 @@ pushd bindings/python
156158
%py2_install
157159
%endif
158160
%py3_install
161+
rm -rf %{buildroot}/%{python3_sitearch}/marisa-0.0.0-py%{python3_version}.egg-info
159162
popd
160163

161164
# install Ruby bindings
@@ -172,9 +175,9 @@ rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/sample.pl
172175

173176

174177
%files
175-
%doc docs/style.css AUTHORS README docs/readme.en.html
178+
%doc docs/style.css AUTHORS README.md docs/readme.en.html
176179
%lang(ja) %doc docs/readme.ja.html
177-
%license COPYING
180+
%license COPYING.md
178181
%{_libdir}/libmarisa.so.*
179182

180183
%files devel
@@ -194,6 +197,7 @@ rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/sample.pl
194197
%files perl
195198
%{perl_vendorarch}/marisa.pm
196199
%{perl_vendorarch}/auto/marisa
200+
%{perl_vendorarch}/benchmark.pl
197201

198202
%if %{with python2}
199203
%files -n python2-%{name}
@@ -206,15 +210,101 @@ rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/sample.pl
206210
%{python3_sitearch}/__pycache__/marisa*
207211
%{python3_sitearch}/_marisa*.so
208212
%{python3_sitearch}/marisa.py
209-
%{python3_sitearch}/marisa-0.0.0-py3.?.egg-info
210213

211214
%files ruby
212215
%{ruby_vendorarchdir}/marisa.so
213216

214217
%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
218308

219309
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-44
220310
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12961,8 +12961,8 @@
1296112961
"type": "other",
1296212962
"other": {
1296312963
"name": "marisa",
12964-
"version": "0.2.4",
12965-
"downloadUrl": "https://marisa-trie.googlecode.com/files/marisa-0.2.4.tar.gz"
12964+
"version": "0.2.6",
12965+
"downloadUrl": "https://github.com/s-yata/marisa-trie/archive/refs/tags/v0.2.6.tar.gz"
1296612966
}
1296712967
}
1296812968
},

0 commit comments

Comments
 (0)