build API docs

f41
David Tardon 9 years ago
parent 36ad514ebc
commit f2868447af

@ -16,6 +16,7 @@ Source0: http://kohei.us/files/orcus/src/%{name}-%{version}.tar.xz
Source1: LICENSE Source1: LICENSE
BuildRequires: boost-devel BuildRequires: boost-devel
BuildRequires: doxygen
%if %{with convtools} %if %{with convtools}
BuildRequires: help2man BuildRequires: help2man
BuildRequires: pkgconfig(libixion-0.11) BuildRequires: pkgconfig(libixion-0.11)
@ -68,6 +69,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
Python 3 bindings for %{name}. Python 3 bindings for %{name}.
%endif %endif
%package doc
Summary: API documentation for %{name}
%description doc
API documentation for %{name}.
%prep %prep
%autosetup -p1 %autosetup -p1
cp %{SOURCE1} . cp %{SOURCE1} .
@ -107,6 +114,9 @@ install -m 0755 -d %{buildroot}/%{_mandir}/man1
install -p -m 0644 orcus-*.1 %{buildroot}/%{_mandir}/man1 install -p -m 0644 orcus-*.1 %{buildroot}/%{_mandir}/man1
%endif %endif
# build documentation
make build-doc-doxygen
%check %check
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
make check %{?_smp_mflags} make check %{?_smp_mflags}
@ -173,6 +183,11 @@ make check %{?_smp_mflags}
%{python3_sitelib}/orcus/json.py %{python3_sitelib}/orcus/json.py
%endif %endif
%files doc
%license LICENSE
%dir %{_pkgdocdir}
%doc doc/html
%changelog %changelog
* Tue Mar 08 2016 David Tardon <dtardon@redhat.com> - 0.11.0-1 * Tue Mar 08 2016 David Tardon <dtardon@redhat.com> - 0.11.0-1
- new upstream release - new upstream release

Loading…
Cancel
Save