commit e332c216ebc97f3d20b4465c35bd0d758fc6d4ab Author: Jakub Bogusz <qbo...@pld-linux.org> Date: Wed Sep 27 19:12:43 2023 +0200
- use _gidocdir for apidocs gcr4.spec | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) --- diff --git a/gcr4.spec b/gcr4.spec index 4625f01..4fc83cb 100644 --- a/gcr4.spec +++ b/gcr4.spec @@ -1,6 +1,6 @@ # # Conditional build: -%bcond_without apidocs # do not build and package API docs +%bcond_without apidocs # API documentation Summary: GObject and GUI library for high level crypto parsing and display Summary(pl.UTF-8): Biblioteka GObject i GUI do wysokopoziomowej analizy i wyĆwietlania danych kryptograficznych @@ -28,7 +28,7 @@ BuildRequires: openssh-clients BuildRequires: p11-kit-devel >= 0.19.0 BuildRequires: pkgconfig BuildRequires: rpm-build >= 4.6 -BuildRequires: rpmbuild(macros) >= 2.011 +BuildRequires: rpmbuild(macros) >= 2.029 BuildRequires: systemd-devel BuildRequires: tar >= 1:1.22 BuildRequires: vala >= 2:0.20.0 @@ -132,9 +132,10 @@ rm -rf $RPM_BUILD_ROOT %ninja_install -C build -# FIXME: where to package gi-docgen generated docs? -install -d $RPM_BUILD_ROOT%{_gtkdocdir} -%{__mv} $RPM_BUILD_ROOT%{_docdir}/{gck-2,gcr-4} $RPM_BUILD_ROOT%{_gtkdocdir} +%if %{with apidocs} +install -d $RPM_BUILD_ROOT%{_gidocdir} +%{__mv} $RPM_BUILD_ROOT%{_docdir}/{gck-2,gcr-4} $RPM_BUILD_ROOT%{_gidocdir} +%endif # not supported by glibc (as of 2.37) %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie @@ -195,6 +196,6 @@ rm -rf $RPM_BUILD_ROOT %if %{with apidocs} %files apidocs %defattr(644,root,root,755) -%{_gtkdocdir}/gck-2 -%{_gtkdocdir}/gcr-4 +%{_gidocdir}/gck-2 +%{_gidocdir}/gcr-4 %endif ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/gcr4.git/commitdiff/e332c216ebc97f3d20b4465c35bd0d758fc6d4ab _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit