2012/1/17  <r...@mageia.org>:
> Revision 197460 Author matteo Date 2012-01-17 17:27:19 +0100 (Tue, 17 Jan
> 2012)
>
> Log Message
>
> - axel-kapt man pages provided by axel-kapt package
>
> Modified Paths
>
> cauldron/axel/current/SPECS/axel.spec
>
> Modified: cauldron/axel/current/SPECS/axel.spec
> ===================================================================
> --- cauldron/axel/current/SPECS/axel.spec     2012-01-17 16:12:33 UTC (rev
> 197459)
> +++ cauldron/axel/current/SPECS/axel.spec     2012-01-17 16:27:19 UTC (rev
> 197460)
> @@ -30,9 +30,9 @@
>  %install
>  rm -rf %{buildroot}
>  %makeinstall_std
> -install -d -m 0755 %{buildroot}%{_datadir}/applications
> -install -c -m 0755 gui/kapt/%{name}-kapt   %{buildroot}%{_bindir}/
> -install -c -m 0644 gui/kapt/%{name}-kapt.1
> %{buildroot}%{_datadir}/man/man1/
> +install -D -d -m 0755 %{buildroot}%{_datadir}/applications
> +install -D -m 0755 gui/kapt/%{name}-kapt   %{buildroot}%{_bindir}/
> +install -D -m 0644 gui/kapt/%{name}-kapt.1
> %{buildroot}%{_datadir}/man/man1/
>
>  xz -9 %{buildroot}%{_datadir}/man/man1/%{name}-kapt.1
>
> @@ -48,7 +48,8 @@
>  %doc API README COPYING CREDITS %{name}rc.example
>  %{_bindir}/%{name}
>  %config(noreplace) %{_sysconfdir}/%{name}rc
> -%{_mandir}/*
> +%{_mandir}/man1/%{name}.1.xz
> +%{_mandir}/zh_CN/man1/%{name}.1.xz
>
>  %package kapt
>  Summary:        GUI for axel
> @@ -65,4 +66,4 @@
>  %files kapt
>  %{_bindir}/%{name}-kapt
>  %{_datadir}/applications/%{name}-kapt.desktop
> -
> +%{_mandir}/man1/%{name}-kapt.1.xz
>

A little hint: don't hardcode man page extension as we could change
the compression someday -> file extension changes -> you need to edit
every .spec by hand where the extension is hardcoded. Use wildcards
instead.

Reply via email to