diff --git a/diff-match-patch-20200713.tar.gz b/diff-match-patch-20200713.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..422c593b928d8385f81f320de67bb9c3b306dd87 Binary files /dev/null and b/diff-match-patch-20200713.tar.gz differ diff --git a/diff-match-patch.spec b/diff-match-patch.spec new file mode 100644 index 0000000000000000000000000000000000000000..069df67cf3fe5957c795a8c8b575042b05b91c9f --- /dev/null +++ b/diff-match-patch.spec @@ -0,0 +1,70 @@ +%global _empty_manifest_terminate_build 0 +Name: python-diff-match-patch +Version: 20200713 +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 +URL: https://github.com/diff-match-patch-python/diff-match-patch +Source0: https://github.com/diff-match-patch-python/diff-match-patch/archive/v20200713/diff-match-patch-20200713.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 +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description -n python3-diff-match-patch + +%package help +Summary: Development documents and examples for diff-match-patch +Provides: python3-diff-match-patch-doc +%description help +Development documents and examples for diff-match-patch + +%prep +%autosetup -n diff-match-patch-20200713 + +%build +%py3_build + +%install +%py3_install +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 . + +%files -n python3-diff-match-patch -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Jul 02 2021 liliang - 20200713-1 +- Init project \ No newline at end of file