forked from pool/python-lxml
- Simpler PDF install
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=34
This commit is contained in:
committed by
Git OBS Bridge
parent
28bec3bf63
commit
509c19ed0f
@@ -53,18 +53,17 @@ This package contains documentation for lxml (HTML and PDF).
|
||||
|
||||
%prep
|
||||
%setup -q -n lxml-%{version}
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
install -Dm0644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}-doc/lxml-%{version}.pdf # Install PDF into docdir
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc doc/html
|
||||
%{_docdir}/%{name}-doc/lxml-%{version}.pdf
|
||||
%doc doc/html lxmldoc-%{version}.pdf
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
Reference in New Issue
Block a user