]> git.pld-linux.org Git - packages/python-html2text.git/blame - python-html2text.spec
up to 2016.1.8
[packages/python-html2text.git] / python-html2text.spec
CommitLineData
eef52307
JP
1#
2# Conditional build:
3%bcond_without python2 # Python 2 package
4%bcond_without python3 # Python 3 package
5
6%define module html2text
7Summary: A HTML to markdown-structured text converter
8Name: python-%{module}
fbc335a8
JP
9Version: 2016.1.8
10Release: 1
eef52307
JP
11License: GPL v3
12Group: Libraries/Python
13Source0: https://pypi.python.org/packages/source/h/html2text/%{module}-%{version}.tar.gz
fbc335a8 14# Source0-md5: a1e9b15c2ad5643c95fe790fd4a5df61
eef52307
JP
15URL: https://github.com/Alir3z4/html2text/
16%if %{with python2}
17BuildRequires: python-modules
18%endif
19%if %{with python3}
20BuildRequires: python3-Cython
21BuildRequires: python3-modules
22BuildRequires: python3-setuptools
23%endif
24BuildRequires: rpm-pythonprov
ab29caca 25BuildRequires: rpmbuild(macros) >= 1.710
a5a75d23 26BuildArch: noarch
eef52307
JP
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30A HTML to markdown-structured text converter.
31
32%package -n python3-%{module}
33Summary: A HTML to markdown-structured text converter
34Group: Libraries/Python
35
36%description -n python3-%{module}
37A HTML to markdown-structured text converter.
38
39%prep
40%setup -q -n %{module}-%{version}
41
42%build
43%if %{with python2}
19e0b478 44%py_build
eef52307
JP
45%endif
46%if %{with python3}
19e0b478 47%py3_build
eef52307
JP
48%endif
49
50%install
51rm -rf $RPM_BUILD_ROOT
52
53%if %{with python2}
19e0b478 54%py_install
eef52307
JP
55
56%py_postclean
57%endif
58
59%if %{with python3}
19e0b478 60%py3_install
eef52307
JP
61%endif
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%if %{with python2}
67%files
68%defattr(644,root,root,755)
69%dir %{py_sitescriptdir}/html2text
70%{py_sitescriptdir}/html2text/*.py[co]
71%{py_sitescriptdir}/html2text-*.egg-info
72%endif
73
74%if %{with python3}
75%files -n python3-%{module}
76%defattr(644,root,root,755)
77%dir %{py3_sitescriptdir}/html2text
78%{py3_sitescriptdir}/html2text/*.py
79%{py3_sitescriptdir}/html2text/__pycache__
80%{py3_sitescriptdir}/html2text-*.egg-info
81%endif
This page took 0.063546 seconds and 4 git commands to generate.