3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 %define module dictdiffer
7 Summary: Dictdiffer is a library that helps you to diff and patch dictionaries
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/dictdiffer/
14 Source0: https://files.pythonhosted.org/packages/source/d/dictdiffer/%{module}-%{version}.tar.gz
15 # Source0-md5: 3185fe683d976282bf6313de14b7c7e9
16 URL: https://github.com/inveniosoftware/dictdiffer
18 BuildRequires: python-modules >= 1:2.7
19 BuildRequires: python-setuptools
22 BuildRequires: python3-modules >= 1:3.4
23 BuildRequires: python3-setuptools
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python-modules >= 1:2.7
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Dictdiffer is a helper module that helps you to diff and patch
35 %package -n python3-%{module}
36 Summary: Dictdiffer is a library that helps you to diff and patch dictionaries
37 Group: Libraries/Python
38 Requires: python3-modules >= 1:3.4
40 %description -n python3-%{module}
41 Dictdiffer is a helper module that helps you to diff and patch
45 %setup -q -n %{module}-%{version}
57 rm -rf $RPM_BUILD_ROOT
70 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
75 %doc AUTHORS CHANGES CONTRIBUTING.rst MAINTAINERS README.rst
76 %{py_sitescriptdir}/%{module}
77 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
81 %files -n python3-%{module}
82 %defattr(644,root,root,755)
83 %doc AUTHORS CHANGES CONTRIBUTING.rst MAINTAINERS README.rst
84 %{py3_sitescriptdir}/%{module}
85 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info