3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: LHA (.lzh) file extract interface
7 Summary(pl.UTF-8): Interfejs do rozpakowywania plików LHA (.lzh)
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/lhafile/
14 Source0: https://files.pythonhosted.org/packages/source/l/lhafile/lhafile-%{version}.tar.gz
15 # Source0-md5: 5d916030a6623c12d12a1e4e05cb8939
16 URL: https://pypi.org/project/lhafile/
18 BuildRequires: python-devel >= 1:2.5
21 BuildRequires: python3-devel >= 1:3.2
23 BuildRequires: rpm-pythonprov
24 BuildRequires: rpmbuild(macros) >= 1.714
25 Requires: python-modules >= 1:2.5
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Extract LHA (.lzh) file extension. The interface is similar to the
30 zipfile module in the regular Python distribution.
32 %description -l pl.UTF-8
33 Rozszerzenie Pythona do rozpakowywania plików LHA (.lzh). Interfejs
34 jest podobny do modułu zipfile z dystrybucji Pythona.
36 %package -n python3-lhafile
37 Summary: LHA (.lzh) file extract interface
38 Summary(pl.UTF-8): Interfejs do rozpakowywania plików LHA (.lzh)
39 Group: Libraries/Python
40 Requires: python3-modules >= 1:3.2
42 %description -n python3-lhafile
43 Extract LHA (.lzh) file extension. The interface is similar to the
44 zipfile module in the regular Python distribution.
46 %description -n python3-lhafile -l pl.UTF-8
47 Rozszerzenie Pythona do rozpakowywania plików LHA (.lzh). Interfejs
48 jest podobny do modułu zipfile z dystrybucji Pythona.
51 %setup -q -n lhafile-%{version}
63 rm -rf $RPM_BUILD_ROOT
76 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
81 %doc COPYING.txt README
83 %attr(755,root,root) %{py_sitedir}/lzhlib.so
84 %{py_sitedir}/lhafile-%{version}-py*.egg-info
88 %files -n python3-lhafile
89 %defattr(644,root,root,755)
90 %doc COPYING.txt README
91 %{py3_sitedir}/lhafile
92 %attr(755,root,root) %{py3_sitedir}/lzhlib.cpython-*.so
93 %{py3_sitedir}/lhafile-%{version}-py*.egg-info