Ignore:
Timestamp:
Feb 13, 2015, 7:04:36 PM (11 years ago)
Author:
dmik
Message:

spec: help2man: Release 1.46.4-2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/help2man.spec

    r497 r539  
    88Summary:        Create simple man pages from --help output
    99Version:        1.46.4
    10 Release:        1%{?dist}
     10Release:        2%{?dist}
    1111Group:          Development/Tools
    1212License:        GPLv3+
     
    2525%{!?with_nls:BuildArch: noarch}
    2626
    27 #BuildRequires:  texinfo
     27BuildRequires:  texinfo
    2828#BuildRequires:  perl(Getopt::Long)
    2929#BuildRequires:  perl(POSIX)
     
    3535%{?with_nls:BuildRequires: perl(I18N::Langinfo)}
    3636
    37 #Requires(post): /sbin/install-info
    38 #Requires(preun): /sbin/install-info
     37# @todo Replace with `%info_requires` when it's available.
     38Requires(post): %{_sbindir}/install-info.exe
     39Requires(preun): %{_sbindir}/install-info.exe
    3940
    4041%description
     
    7071#%find_lang %name --with-man
    7172
    72 #%post
    73 #/sbin/install-info %{_infodir}/help2man.info %{_infodir}/dir 2>/dev/null || :
     73%post
     74# @todo Replace with `%info_post foobar.info` when it's available.
     75if [ -f %{_infodir}/help2man.info ]; then
     76    %{_sbindir}/install-info.exe %{_infodir}/help2man.info %{_infodir}/dir || :
     77fi
    7478
    75 #%preun
    76 #if [ $1 -eq 0 ]; then
    77 #  /sbin/install-info --delete %{_infodir}/help2man.info \
    78 #    %{_infodir}/dir 2>/dev/null || :
    79 #fi
     79%preun
     80# @todo Replace with `%info_preun foobar.info` when it's available.
     81if [ $1 -eq 0 ]; then
     82    # @todo: don't remove these comment lines! See http://trac.netlabs.org/rpm/ticket/118 for more info.
     83    #################################
     84    #################################
     85    if [ -f %{_infodir}/help2man.info ]; then
     86        %{_sbindir}/install-info.exe --delete %{_infodir}/help2man.info %{_infodir}/dir || :
     87    fi
     88fi
    8089
    8190# See above
     
    92101
    93102%changelog
     103* Fri Feb 13 2015 Dmitriy Kuminov <coding@dmik.org> 1.46.4-2
     104- Enable proper info file and locale data installation.
     105
    94106* Tue Jan 20 2015 Dmitriy Kuminov <coding@dmik.org> 1.46.4-1
    95107- Initial package for version 1.46.4.
Note: See TracChangeset for help on using the changeset viewer.