[packages/python-diff_match_patch] new, version 20121119

glen glen at pld-linux.org
Thu May 5 21:33:51 CEST 2016


commit 3f6e30a3e5ecdd515c562eec3988463fc3ee6cbc
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu May 5 22:32:44 2016 +0300

    new, version 20121119
    
    created with pyp2rpm-2.0.0

 python-diff_match_patch.spec | 87 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 87 insertions(+)
---
diff --git a/python-diff_match_patch.spec b/python-diff_match_patch.spec
new file mode 100644
index 0000000..aee67ce
--- /dev/null
+++ b/python-diff_match_patch.spec
@@ -0,0 +1,87 @@
+# This is an unofficial package of the Python versions for PyPI
+# https://bitbucket.org/spookylukey/diff-match-patch for packaging issues.
+#
+# Conditional build:
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+%define		module	diff_match_patch
+Summary:	The Diff Match and Patch libraries
+Name:		python-%{module}
+Version:	20121119
+Release:	1
+License:	ASL
+Group:		Libraries/Python
+Source0:	https://pypi.python.org/packages/22/82/46eaeab04805b4fac17630b59f30c4f2c8860988bcefd730ff4f1992908b/diff-match-patch-%{version}.tar.gz
+# Source0-md5:	08e02cad82dda942b09ee248772fe143
+URL:		https://code.google.com/p/google-diff-match-patch/
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires:	python-modules
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-devel
+BuildRequires:	python3-setuptools
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Diff Match and Patch libraries offer robust algorithms to perform
+the operations required for synchronizing plain text.
+
+%package -n python3-%{module}
+Summary:	The Diff Match and Patch libraries
+Group:		Libraries/Python
+Requires:	python3-modules
+
+%description -n python3-%{module}
+The Diff Match and Patch libraries offer robust algorithms to perform
+the operations required for synchronizing plain text.
+
+%prep
+%setup -q -n diff-match-patch-%{version}
+
+# Remove bundled egg-info
+%{__rm} -r python2/diff_match_patch.egg-info
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+%py_install
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python3}
+%files
+%defattr(644,root,root,755)
+%doc README.original.txt README.rst
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README.original.txt README.rst
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-diff_match_patch.git/commitdiff/3f6e30a3e5ecdd515c562eec3988463fc3ee6cbc



More information about the pld-cvs-commit mailing list