From d36d12d5f6e03ab966cd58a7caef194cf9def6f5954c65836f4458aa84a8a9ef Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Fri, 2 Sep 2011 16:59:34 +0000 Subject: [PATCH] Accepting request 80714 from home:vuntz:branches:GNOME:Factory Install man pages OBS-URL: https://build.opensuse.org/request/show/80714 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/colord?expand=0&rev=12 --- colord.changes | 3 +++ colord.spec | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/colord.changes b/colord.changes index 07f7ceb..2049be9 100644 --- a/colord.changes +++ b/colord.changes @@ -48,6 +48,9 @@ Fri Sep 2 08:20:51 UTC 2011 - vuntz@opensuse.org + Updated translations. - Add gobject-introspection-devel and vala BuildRequires to build introspection data and vala bindings. +- Manually install pre-built man pages, since the build system + cannot install them if docbook2man is not there (and we don't + want to add a BuildRequires on it since it's big). ------------------------------------------------------------------- Mon Jul 11 12:43:32 CEST 2011 - vuntz@opensuse.org diff --git a/colord.spec b/colord.spec index 2e60001..c9e3731 100644 --- a/colord.spec +++ b/colord.spec @@ -84,6 +84,15 @@ make %{?_smp_mflags} %install %make_install find %{buildroot} -type f -name '*.la' -delete -print +# Manually install prebuilt man pages, since we don't have docbook2man +pushd man +test ! -f %{buildroot}%{_mandir}/man1/* +for man in *.1; do + install -m 644 ${man} %{buildroot}%{_mandir}/man1/ +done +# Check we only have man1 pages to install +test ! -f *.[2-9] +popd %find_lang %{name} %clean @@ -108,8 +117,9 @@ find %{buildroot} -type f -name '*.la' -delete -print %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.* %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service %{_datadir}/polkit-1/actions/org.freedesktop.color.policy -#%%{_mandir}/man1/cd-create-profile.1* -#%%{_mandir}/man1/colormgr.1* +%{_mandir}/man1/cd-create-profile.1%{?ext_man} +%{_mandir}/man1/cd-fix-profile.1%{?ext_man} +%{_mandir}/man1/colormgr.1%{?ext_man} %files -n libcolord1 %defattr(-, root, root)