# - consider using system libmagic not internal libfmagic
# (but internal has different method of passing output)
# - after ac drop amd64 patch and make x86_64 generic arch + subarchs amd64 and ia32e
-# - ? make putting packages names in autogenerating dependacies as runtime option
#
# 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 apidocs # don't generate documentation with doxygen
+%bcond_without pkgnameinautoreq # don't put package name in autogenerated dependancy
%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"
BuildRequires: beecrypt-devel >= %{beecrypt_ver}
BuildRequires: bzip2-devel >= 1.0.1
BuildRequires: db-devel >= %{reqdb_ver}
-%{?with_doc:BuildRequires: doxygen}
+%{?with_apidocs:BuildRequires: doxygen}
BuildRequires: elfutils-devel
BuildRequires: findutils
BuildRequires: gettext-devel >= 0.11.4-2
ÐÏÂÕÄÏ×É RPM'¦×.
%if %{with apidocs}
-%package apidocs
-Summary: apidocs
-Group: Documentation
+%package apidocs
+Summary: rpm API documentation and guides
+Summary(pl): Documentacja API rpm i przewodniki.
+Group: Documentation
%description apidocs
-rpm apidocs generated by doxygen.
+Documentation for rpm API and guides in html format generated
+from rpm sources by doxygen.
+
+%description apidocs -l pl
+Dokumentacja API rpm oraz przewodniki w formacie html generowana
+ze ¼rode³ rpm przez doxygen.
%endif
%prep
CPP="%{__newcpp}" \
--enable-shared \
--enable-static \
- %{?with_doc:--with-apidocs} \
+ %{?with_apidoc:--with-apidocs} \
%{?with_pkgnameinautoreq:--enable-adding-packages-names-in-autogenerated-dependancies} \
%{?with_python:--with-python=auto} \
%{!?with_python:--without-python} \
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm}
+install -d $RPM_BUILD_ROOT{/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
%attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
%attr(755,root,root) %{_rpmlibdir}/tgpg
%attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
-
-%files utils-perl
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_rpmlibdir}/rpmdiff*
-# not here
-#%%{_rpmlibdir}/rpm.daily
-#%%{_rpmlibdir}/rpm.log
-#%%{_rpmlibdir}/rpm.xinetd
-
%{_mandir}/man8/rpm2cpio.8*
%{_mandir}/man8/rpmdeps.8*
%{_mandir}/man8/rpmcache.8*
%lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
%lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
+%files utils-perl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_rpmlibdir}/rpmdiff*
+# not here
+#%%{_rpmlibdir}/rpm.daily
+#%%{_rpmlibdir}/rpm.log
+#%%{_rpmlibdir}/rpm.xinetd
+
+
%if %{with static}
%files utils-static
%defattr(644,root,root,755)