diff --git a/diff-match-patch-20200713.tar.gz b/diff-match-patch-20200713.tar.gz deleted file mode 100644 index 97a68b6680b64ed24fda8824c7ad43ba497c227f..0000000000000000000000000000000000000000 Binary files a/diff-match-patch-20200713.tar.gz and /dev/null differ diff --git a/diff-match-patch-20230430.tar.gz b/diff-match-patch-20230430.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..88e04bfd5b7b4e4a802672a1fb02cd09b1b3b968 Binary files /dev/null and b/diff-match-patch-20230430.tar.gz differ diff --git a/python-diff-match-patch.spec b/python-diff-match-patch.spec index aecdc9ce005ded2a2cc8d44e183d11e93c04ee19..fd17547c83f1870bb968ca90dafbe6113098e337 100644 --- a/python-diff-match-patch.spec +++ b/python-diff-match-patch.spec @@ -1,22 +1,21 @@ %global _empty_manifest_terminate_build 0 Name: python-diff-match-patch -Version: 20200713 +Version: 20230430 Release: 1 Summary: Repackaging of Google's Diff Match and Patch libraries. Offers robust algorithms to perform the operations required for synchronizing plain text. License: Apache-2.0 URL: https://github.com/diff-match-patch-python/diff-match-patch -Source0: https://files.pythonhosted.org/packages/f0/1e/48ba888757d3f63ff35536e3e73e05c8a20d701e2b4fcbe4b17c29a2408d/diff-match-patch-20200713.tar.gz +Source0: https://files.pythonhosted.org/packages/48/40/7f0b68e3578453d1ccd3638cfd9682b515b9d22730903a88615f1ee92352/diff-match-patch-20230430.tar.gz BuildArch: noarch - %description The Diff Match and Patch libraries offer robust algorithms to perform the operations required for synchronizing plain text. %package -n python3-diff-match-patch Summary: Repackaging of Google's Diff Match and Patch libraries. Offers robust algorithms to perform the operations required for synchronizing plain text. -Provides: python-diff-match-patch +Provides: python-diff-match-patch = %{version}-%{release} BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3-pip python3-wheel python3-flit %description -n python3-diff-match-patch The Diff Match and Patch libraries offer robust algorithms to perform the operations required for synchronizing plain text. @@ -27,45 +26,31 @@ Provides: python3-diff-match-patch-doc The Diff Match and Patch libraries offer robust algorithms to perform the operations required for synchronizing plain text. %prep -%autosetup -n diff-match-patch-20200713 +%autosetup -n diff-match-patch-%{version} %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install diff-match-patch==%{version} install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . +if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi -%files -n python3-diff-match-patch -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-diff-match-patch +%{python3_sitelib}/* -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Sat May 06 2023 wangjunqi - 20230430-1 +- Update package to version 20230430 + * Thu Sep 09 2021 Python_Bot - 20200713.1-1 - Package Init