!3 remove python2 of package liblouis
From: @wang--ge Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
ca70112503
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
Name: liblouis
|
Name: liblouis
|
||||||
Version: 3.7.0
|
Version: 3.7.0
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Braille translation and back-translation library
|
Summary: Braille translation and back-translation library
|
||||||
License: LGPLv3+ and GPLv3+
|
License: LGPLv3+ and GPLv3+
|
||||||
URL: http://liblouis.org
|
URL: http://liblouis.org
|
||||||
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||||
Patch0000: 0001-fix-memory-issue-introduced-with-GCC9.patch
|
Patch0000: 0001-fix-memory-issue-introduced-with-GCC9.patch
|
||||||
BuildRequires: chrpath gcc help2man texinfo texinfo-tex texlive-eurosym
|
BuildRequires: chrpath gcc help2man texinfo texinfo-tex texlive-eurosym
|
||||||
BuildRequires: texlive-xetex python2-devel python3-devel
|
BuildRequires: texlive-xetex python3-devel
|
||||||
Provides: bundled(gnulib) = 20130621
|
Provides: bundled(gnulib) = 20130621
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -29,7 +29,7 @@ The liblouis-devel package contains libraries and header files for developing ap
|
|||||||
%package utils
|
%package utils
|
||||||
Summary: Command-line utilities to test liblouis
|
Summary: Command-line utilities to test liblouis
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: python2-louis = %{version}-%{release}
|
Requires: python3-louis = %{version}-%{release}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
|
|
||||||
%description utils
|
%description utils
|
||||||
@ -47,17 +47,6 @@ Obsoletes: liblouis-doc < %{version}-%{release}
|
|||||||
%description help
|
%description help
|
||||||
The liblouis-help package conatins manual pages and documents for liblouis.
|
The liblouis-help package conatins manual pages and documents for liblouis.
|
||||||
|
|
||||||
%package -n python2-louis
|
|
||||||
Summary: Python 2 language bindings for liblouis
|
|
||||||
BuildArch: noarch
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
Obsoletes: %{name}-python < 2.6.2-3
|
|
||||||
Provides: %{name}-python = %{version}-%{release}
|
|
||||||
%{?python_provide:%python_provide python2-louis}
|
|
||||||
|
|
||||||
%description -n python2-louis
|
|
||||||
This package provides Python 2 language bindings for liblouis.
|
|
||||||
|
|
||||||
%package -n python3-louis
|
%package -n python3-louis
|
||||||
Summary: Python 3 language bindings for %{name}
|
Summary: Python 3 language bindings for %{name}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -87,10 +76,6 @@ rm -rf %{buildroot}/%{_bindir}/lou_maketable*
|
|||||||
rm -rf %{buildroot}/%{_defaultdocdir}/%{name}/
|
rm -rf %{buildroot}/%{_defaultdocdir}/%{name}/
|
||||||
cd python/louis
|
cd python/louis
|
||||||
|
|
||||||
install -d %{buildroot}%{python2_sitelib}/louis
|
|
||||||
install -pm 0644 __init__.py %{buildroot}%{python2_sitelib}/louis/
|
|
||||||
%py_byte_compile %{__python2} %{buildroot}%{python2_sitelib}/louis
|
|
||||||
|
|
||||||
install -d %{buildroot}%{python3_sitelib}/louis
|
install -d %{buildroot}%{python3_sitelib}/louis
|
||||||
install -pm 0644 __init__.py %{buildroot}%{python3_sitelib}/louis/
|
install -pm 0644 __init__.py %{buildroot}%{python3_sitelib}/louis/
|
||||||
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/louis/
|
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/louis/
|
||||||
@ -126,14 +111,13 @@ done
|
|||||||
%doc README NEWS ChangeLog TODO doc/%{name}.{html,txt,pdf}
|
%doc README NEWS ChangeLog TODO doc/%{name}.{html,txt,pdf}
|
||||||
%{_mandir}/man1/lou_*.1*
|
%{_mandir}/man1/lou_*.1*
|
||||||
|
|
||||||
%files -n python2-louis
|
|
||||||
%doc python/README
|
|
||||||
%{python2_sitelib}/louis/
|
|
||||||
|
|
||||||
%files -n python3-louis
|
%files -n python3-louis
|
||||||
%{python3_sitelib}/louis/
|
%{python3_sitelib}/louis/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 Ge Wang <wangge20@huawei.com> - 3.7.0-4
|
||||||
|
- remove python2
|
||||||
|
|
||||||
* Thu May 21 2020 yanan li <liyanan032@huawei.com> - 3.7.0-3
|
* Thu May 21 2020 yanan li <liyanan032@huawei.com> - 3.7.0-3
|
||||||
- Fixed memory leaks created by block scope compound literals.
|
- Fixed memory leaks created by block scope compound literals.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user