Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
716b50f9de | ||
|
|
a982446e66 |
1 changed files with 6 additions and 1 deletions
|
|
@ -81,12 +81,14 @@ binary patterns. Each description, a.k.a rule, consists of a set of strings
|
|||
and a Boolean expression which determine its logic.
|
||||
|
||||
|
||||
%if ! ( 0%{?rhel} && 0%{?rhel} <= 6 )
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
This package contains documentation for %{name}.
|
||||
%endif
|
||||
|
||||
|
||||
%package devel
|
||||
|
|
@ -132,10 +134,12 @@ autoreconf --force --install
|
|||
--htmldir=%{_datadir}/doc/%{name}/html
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%if ! ( 0%{?rhel} && 0%{?rhel} <= 6 )
|
||||
# build the HTML documentation
|
||||
pushd docs
|
||||
make html
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
|
|
@ -168,10 +172,11 @@ rm -f %{buildroot}%{_datadir}/doc/%{name}/html/.buildinfo
|
|||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
|
||||
%if ! ( 0%{?rhel} && 0%{?rhel} <= 6 )
|
||||
%files doc
|
||||
%license COPYING
|
||||
%doc docs/_build/html
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue