3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 %define module dictdiffer
7 Summary: Dictdiffer - a library that helps you to diff and patch dictionaries
8 Summary(pl.UTF-8): Dictdiffer - biblioteka pomagająca porównywać i łatać słowniki
10 # keep 0.8.x here for python2 support
14 Group: Libraries/Python
15 #Source0Download: https://pypi.org/simple/dictdiffer/
16 Source0: https://files.pythonhosted.org/packages/source/d/dictdiffer/%{module}-%{version}.tar.gz
17 # Source0-md5: 3185fe683d976282bf6313de14b7c7e9
18 URL: https://github.com/inveniosoftware/dictdiffer
20 BuildRequires: python-modules >= 1:2.7
21 BuildRequires: python-setuptools
24 BuildRequires: python3-modules >= 1:3.4
25 BuildRequires: python3-setuptools
27 BuildRequires: rpm-pythonprov
28 BuildRequires: rpmbuild(macros) >= 1.714
29 Requires: python-modules >= 1:2.7
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Dictdiffer is a helper module that helps you to diff and patch
37 %description -l pl.UTF-8
38 Dictdiffer to moduł pomocniczy, pomagający porównywać i łatać
41 %package -n python3-%{module}
42 Summary: Dictdiffer - a library that helps you to diff and patch dictionaries
43 Summary(pl.UTF-8): Dictdiffer - biblioteka pomagająca porównywać i łatać słowniki
44 Group: Libraries/Python
45 Requires: python3-modules >= 1:3.4
47 %description -n python3-%{module}
48 Dictdiffer is a helper module that helps you to diff and patch
51 %description -n python3-%{module} -l pl.UTF-8
52 Dictdiffer to moduł pomocniczy, pomagający porównywać i łatać
56 %setup -q -n %{module}-%{version}
68 rm -rf $RPM_BUILD_ROOT
81 rm -rf $RPM_BUILD_ROOT
85 %defattr(644,root,root,755)
86 %doc AUTHORS CHANGES CONTRIBUTING.rst MAINTAINERS README.rst
87 %{py_sitescriptdir}/%{module}
88 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
92 %files -n python3-%{module}
93 %defattr(644,root,root,755)
94 %doc AUTHORS CHANGES CONTRIBUTING.rst MAINTAINERS README.rst
95 %{py3_sitescriptdir}/%{module}
96 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info