remove python2
This commit is contained in:
parent
0d0013d96d
commit
7c97cf8935
26
marisa.spec
26
marisa.spec
@ -1,13 +1,13 @@
|
|||||||
Name: marisa
|
Name: marisa
|
||||||
Version: 0.2.4
|
Version: 0.2.4
|
||||||
Release: 37
|
Release: 38
|
||||||
Summary: Matching Algorithm with Recursively Implemented StorAge
|
Summary: Matching Algorithm with Recursively Implemented StorAge
|
||||||
|
|
||||||
License: BSD or LGPLv2+
|
License: BSD or LGPLv2+
|
||||||
URL: https://code.google.com/p/marisa-trie
|
URL: https://code.google.com/p/marisa-trie
|
||||||
Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/marisa-trie/%{name}-%{version}.tar.gz
|
Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/marisa-trie/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: swig perl-devel perl-generators python3-devel ruby-devel python2-devel
|
BuildRequires: swig perl-devel perl-generators python3-devel ruby-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
MARISA is a static and space-efficient trie data structure. And libmarisa is a C++
|
MARISA is a static and space-efficient trie data structure. And libmarisa is a C++
|
||||||
@ -24,16 +24,6 @@ Obsoletes: %{name}-tools < %{version}-%{release}
|
|||||||
The marisa-devel package contains libraries and header files for
|
The marisa-devel package contains libraries and header files for
|
||||||
developing applications that use marisa.
|
developing applications that use marisa.
|
||||||
|
|
||||||
%package -n python2-marisa
|
|
||||||
Summary: Python2 bindings for marisa
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
Provides: %{name}-python = %{version}-%{release}
|
|
||||||
Obsoletes: %{name}-python < %{version}-%{release}
|
|
||||||
%{?python_provide:%python_provide python2-marisa}
|
|
||||||
|
|
||||||
%description -n python2-marisa
|
|
||||||
Python2 bindings for marisa.
|
|
||||||
|
|
||||||
%package -n python3-marisa
|
%package -n python3-marisa
|
||||||
Summary: Python3 bindings for marisa
|
Summary: Python3 bindings for marisa
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -76,10 +66,6 @@ cd -
|
|||||||
%make_build --directory=bindings swig-python
|
%make_build --directory=bindings swig-python
|
||||||
|
|
||||||
cd bindings/python
|
cd bindings/python
|
||||||
%{__python2} setup.py build_ext --include-dirs="%{_builddir}/marisa-%{version}/lib" \
|
|
||||||
--library-dirs="%{_builddir}/marisa-%{version}/lib/.libs"
|
|
||||||
%py2_build
|
|
||||||
|
|
||||||
%{__python3} setup.py build_ext --include-dirs="%{_builddir}/marisa-%{version}/lib" \
|
%{__python3} setup.py build_ext --include-dirs="%{_builddir}/marisa-%{version}/lib" \
|
||||||
--library-dirs="%{_builddir}/marisa-%{version}/lib/.libs"
|
--library-dirs="%{_builddir}/marisa-%{version}/lib/.libs"
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -104,7 +90,6 @@ cd bindings/perl
|
|||||||
cd -
|
cd -
|
||||||
|
|
||||||
cd bindings/python
|
cd bindings/python
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
@ -131,10 +116,6 @@ find $RPM_BUILD_ROOT -name 'perllocal.pod' -delete
|
|||||||
%{_libdir}/{*.so,pkgconfig/*.pc}
|
%{_libdir}/{*.so,pkgconfig/*.pc}
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
|
||||||
%files -n python2-marisa
|
|
||||||
%{python2_sitearch}/{_marisa.so,marisa.py*}
|
|
||||||
%{python2_sitearch}/marisa-0.0.0-py2.?.egg-info
|
|
||||||
|
|
||||||
%files -n python3-marisa
|
%files -n python3-marisa
|
||||||
%{python3_sitearch}/__pycache__/marisa*
|
%{python3_sitearch}/__pycache__/marisa*
|
||||||
%{python3_sitearch}/{_marisa*.so,marisa.py}
|
%{python3_sitearch}/{_marisa*.so,marisa.py}
|
||||||
@ -149,6 +130,9 @@ find $RPM_BUILD_ROOT -name 'perllocal.pod' -delete
|
|||||||
%{ruby_vendorarchdir}/marisa.so
|
%{ruby_vendorarchdir}/marisa.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 Ge Wang <wangge20@huawei.com> - 0.2.4-38
|
||||||
|
- remove python2
|
||||||
|
|
||||||
* Thu Dec 12 2019 daiqianwen <daiqianwen@huawei.com> - 0.2.4-37
|
* Thu Dec 12 2019 daiqianwen <daiqianwen@huawei.com> - 0.2.4-37
|
||||||
- Package init
|
- Package init
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user