# Conditional build:
%bcond_with static # build static rpmi (not supported at the moment)
%bcond_without pkgnameinautoreq # don't put package name in autogenerated dependancy
-%bcond_without doc # don't generate documentation with doxygen
+%bcond_without apidocs # don't generate documentation with doxygen
%bcond_without python # don't build python bindings
%bcond_without selinux # dont enable selinux support
# force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
Patch43: %{name}-perl_req-INC_dirs.patch
Patch44: %{name}-debuginfo.patch
Patch45: %{name}-beecrypt4.patch
+Patch46: %{name}-doxygen_hack.patch
Patch100: %{name}-pl.po.patch
URL: http://www.rpm.org/
Icon: rpm.gif
ò¦ÚÎÏÍÁΦÔΦ ÄÏÐÏͦÖΦ ÓËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ
ÐÏÂÕÄÏ×É RPM'¦×.
+%if %{with apidocs}
+%package apidocs
+Summary: apidocs
+Group: Documentation
+
+%description apidocs
+rpm apidocs generated by doxygen.
+%endif
+
%prep
%setup -q -n %{name}
%patch1 -p1
%patch43 -p0
%patch44 -p1
%patch45 -p1
+%patch46 -p1
%patch100 -p1
%patch3 -p1
debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt"
# %{!?with_static:rpm_LDFLAGS="\$(myLDFLAGS)"} \
+%{?with_docs:%{__make} doxygen}
%install
rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/builder
%attr(755,root,root) %{_bindir}/adapter.awk
%attr(755,root,root) %{_bindir}/pldnotify.awk
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc apidocs
+%endif