Ignore:
Timestamp:
Mar 9, 2018, 2:16:58 PM (8 years ago)
Author:
Silvan Scherrer
Message:

spec: help2man: Release version 1.47.6-1.

File:
1 edited

Legend:

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

    r624 r1350  
    77Name:           help2man
    88Summary:        Create simple man pages from --help output
    9 Version:        1.46.4
    10 Release:        2%{?dist}
     9Version:        1.47.6
     10Release:        1%{?dist}
    1111Group:          Development/Tools
    1212License:        GPLv3+
    1313URL:            http://www.gnu.org/software/help2man
    14 #Source:         ftp://ftp.gnu.org/gnu/help2man/help2man-%{version}.tar.xz
    15 
    16 %define svn_url     http://svn.netlabs.org/repos/ports/help2man/trunk
    17 %define svn_rev     980
    18 
    19 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    20 
    21 BuildRequires: gcc make subversion zip
    2214
    2315%bcond_with nls
     
    2517%{!?with_nls:BuildArch: noarch}
    2618
    27 BuildRequires:  texinfo
    28 #BuildRequires:  perl(Getopt::Long)
    29 #BuildRequires:  perl(POSIX)
    30 #BuildRequires:  perl(Text::ParseWords)
    31 #BuildRequires:  perl(Text::Tabs)
    32 #BuildRequires:  perl(strict)
    33 %{?with_nls:BuildRequires: perl(Locale::gettext) /usr/bin/msgfmt}
     19Vendor:         bww bitwise works GmbH
     20%scm_source github http://github.com/bitwiseworks/%{name}-os2 %{version}-os2
     21
     22BuildRequires:  perl-generators
     23BuildRequires:  perl(Getopt::Long)
     24BuildRequires:  perl(POSIX)
     25BuildRequires:  perl(Text::ParseWords)
     26BuildRequires:  perl(Text::Tabs)
     27BuildRequires:  perl(strict)
     28%{?with_nls:BuildRequires: perl(Locale::gettext) /@unixroot/usr/bin/msgfmt.exe}
    3429%{?with_nls:BuildRequires: perl(Encode)}
    3530%{?with_nls:BuildRequires: perl(I18N::Langinfo)}
    3631
    37 # @todo Replace with `%info_requires` when it's available.
    3832Requires(post): %{_sbindir}/install-info.exe
    3933Requires(preun): %{_sbindir}/install-info.exe
     
    4842
    4943%prep
    50 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
    51 %setup -q
    52 %else
    53 %setup -n "%{name}-%{version}" -Tc
    54 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
    55 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
    56 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
    57 %endif
     44%scm_setup
    5845
    5946# Create files necessary for configure
    60 bootstrap.sh
     47autoreconf -fvi
    6148
    6249%build
     
    6653%install
    6754rm -rf $RPM_BUILD_ROOT
    68 # Disable install_l10n for now since it depends on Perl(Locale:gettext) which is missing ATM
    69 #make install_l10n DESTDIR=$RPM_BUILD_ROOT
     55make install_l10n DESTDIR=$RPM_BUILD_ROOT
    7056make install DESTDIR=$RPM_BUILD_ROOT
    71 #%find_lang %name --with-man
     57%find_lang %name --with-man
    7258
    7359%post
    74 # @todo Replace with `%info_post foobar.info` when it's available.
    7560if [ -f %{_infodir}/help2man.info ]; then
    7661    %{_sbindir}/install-info.exe %{_infodir}/help2man.info %{_infodir}/dir || :
     
    7863
    7964%preun
    80 # @todo Replace with `%info_preun foobar.info` when it's available.
    8165if [ $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     #################################
    8566    if [ -f %{_infodir}/help2man.info ]; then
    8667        %{_sbindir}/install-info.exe --delete %{_infodir}/help2man.info %{_infodir}/dir || :
     
    8869fi
    8970
    90 # See above
    91 #%files -f %name.lang
    92 %files
    93 %doc README NEWS THANKS COPYING
     71%files -f %name.lang
     72%doc README NEWS THANKS
     73%license COPYING
    9474%{_bindir}/help2man
    9575%{_infodir}/*
     
    10181
    10282%changelog
     83* Fri Dec 01 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.47.6-1
     84- update to vendor version 1.47.6
     85- use proper scm macros
     86- change the way we bootstrap
     87
    10388* Fri Feb 13 2015 Dmitriy Kuminov <coding@dmik.org> 1.46.4-2
    10489- Enable proper info file and locale data installation.
Note: See TracChangeset for help on using the changeset viewer.